| layout | page |
|---|---|
| title | Cool Stuff |
| permalink | /stuff/ |
[Try it in the browser!]({% post_url 2025-12-13-Ants %})
{: width="60%"}
[Try it in the browser!]({% post_url 2023-09-15-GameOfLife %})
{: width="60%"}
[Read about it!]({% post_url 2023-02-26-macrofrick %})
macro_rules! frick {
( $( $code:tt )* ) => {
let mut mem: [u8; 30_000] = [0; 30_000];
let mut ptr = 0;
$(
instr!(mem ptr $code);
)*
};[Read about it!]({% post_url 2021-07-11-Puffin %})
// recursively computes factorial of n
fact = fn(n) {
if (n < 2) {
return 1;
}
return n * fact(n - 1);
};
// Take a number from stdin, and compute the factorial
print(fact(input_num("Factorial: ")));