Skip to content

Commit fdbc4ec

Browse files
committed
typo
1 parent 90e87d7 commit fdbc4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/futamura/futamura.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"end\n",
289289
"```\n",
290290
"\n",
291-
"which is a direct translation of the original program `[->>+<<]>[->+<]`. (There's also `ptr` variable in the interpreter, tracking the current location of the brainfuck pointer, but in this case we can elide that too.) Both `while` loops here are 'really' the same `while` loop [inside our interpreter](https://github.com/MikeInnes/Mjolnir.jl/blob/78f5b5614dbab7a90463ccf409b50ad2816e9662/examples/futamura/brainfuck.jl#L50-L52), but the loop gets specialised twice for both the loops in our brainfuck code. Similarly, our multiplcation program `[->[->>+<<]>>[-<+<+>>]<<<]` gets compiled to the lowered version of\n",
291+
"which is a direct translation of the original program `[->>+<<]>[->+<]`. (There's also `ptr` variable in the interpreter, tracking the current location of the brainfuck pointer, but in this case we can elide that too.) Both `while` loops here are 'really' the same `while` loop [inside our interpreter](https://github.com/MikeInnes/Mjolnir.jl/blob/78f5b5614dbab7a90463ccf409b50ad2816e9662/examples/futamura/brainfuck.jl#L50-L52), but the loop gets specialised twice for both the loops in our brainfuck code. Similarly, our multiplication program `[->[->>+<<]>>[-<+<+>>]<<<]` gets compiled to the lowered version of\n",
292292
"\n",
293293
"```julia\n",
294294
"while tape[1] != 0\n",

0 commit comments

Comments
 (0)