What is Nostr?
John Regehr /
npub1er4…x9ky
2024-09-13 22:21:04

John Regehr on Nostr: BrainFuck is sort of Turing-machine-inspired: it's a tape machine rather than a stack ...

BrainFuck is sort of Turing-machine-inspired: it's a tape machine rather than a stack machine. in the variant we're implementing, the tape is an array of chars. since in C and C++ and also in LLVM IR the char * type is a wildcard pointer that bypasses type-based aliasing, checkout the crappy codegen we get from operations on an array of chars, compared to the better code we get by operating instead on an array of structs, each of which contains just a char

https://gcc.godbolt.org/z/sEecqEW6z
Author Public Key
npub1er4sdt6lf8959np3qlvv2ev78kyyndxw2lzc7ut6c05upmme757s4kx9ky