|
You are here |
www.r-statistics.com | ||
| | | | |
ochagavia.nl
|
|
| | | | | Advent of code has come and passed, what should I do now with so much free time? Fear not! The JIT calculator challenge is here. 1. The challenge Back when Rust was in its infancy, the official website featured an example program to showcase the language's syntax. It was a toy calculator, implemented as an interpreter in 20 lines of code. Why talk about website archaeology, though? We are not here for nostalgia's sake, are we? | |
| | | | |
eli.thegreenplace.net
|
|
| | | | | ||
| | | | |
willhbr.net
|
|
| | | | | You can use features of tmux to implement a Turing-complete instruction set, allowing you to compile code that runs in tmux by moving windows. I feel like I really have to emphasise this: I'm not running a command-line program in tmux, or using tmux to launch a program. I can get tmux to run real code by switching between windows. Watch a demo of it in action below or on YouTube: This whole mess started when I solved an issue... | |
| | | | |
bernsteinbear.com
|
|
| | | Picture this: you're sitting there, writing a compiler, when all of a sudden you have to generate assembly. You have some intermediate representation (IR) but now you have to turn virtual registers into machine registers. This is called register allocation. | ||