You may or may not know, but printf is a Turing-complete language, once you exploit all the strange and wonderful format characters in it (especially %n). But who has time to write code as printf modifiers? Now, thanks to [sebsite], you can at least write in a slightly higher level assembly language and compile to printf. Practical? No. Cool? Undeniably.
As an example, the page shows fizzbuzz written in the assembler:
<pre><code>alias i, fizz, buzz ->fizz ([i] + 1) % 3 == 0 ->buzz ([i] + 1) % 5 == 0 ->i [i] + 1 ->exit [i] == 100 [i] if !![i] & ![fizz] & ![buzz] "Fizz" if [fizz] "Buzz" if [buzz] "\n" if [i]</code></pre> <pre>
The alias keyword defines constants and, owing to default values, sets i to zero, fizz to one, and buzz to 2. The “arrow” statements store a result into a variable (so the first assignment sets the resulting value into fizz).







