Why Nostr? What is Njump?
2024-09-19 02:40:27

Devine Lu Linvega on Nostr: Today in chaotic batshit crazy computing: A stack-machine can be implemented in ...

Today in chaotic batshit crazy computing: A stack-machine can be implemented in #Fractran, but it's not for the faint of heart.

The theory is that we can keep a stack of zeros and ones in a single register using binary encoding for that number, a little like Church encoding but with bit-shifting.

- Pushing a 0 onto the stack is equivalent to doubling the number.
- Pushing a 1 is equivalent to doubling and adding 1.
- Popping is equivalent to dividing by 2, where the remainder is the value
Author Public Key
npub193rs4wavjkjfe58dtvaeuc50lksahvpuzn9t5x3zt2dchuwun40sgeeyhc