News for hackers. Stuff that matters.
Re:Bootstrapping from Hex to Bison to GCC by NieDzejkob on Tuesday May 04, 2021 @09:11AM (#27037188)
Except that brainfuck was actively designed to make programming difficult, and as you can only increment and decrement, the performance is abysmal.
Re:Bootstrapping from Hex to Bison to GCC by fjfaase on Wednesday May 05, 2021 @04:40AM (#27047575)
The performance argument is not a real issue if it is only used as a replacement for sed/xxd combination. And yes, it was designed to make programming difficult, but one could argue that it is easier to verify manually than machine code, because machine code requires you to know the whole x86 instruction set, which I understand, is rather large, taking into account all the extensions. I suspect that these exentions are not used in the stage0 code, but we still have to verify that they are not used.
Re:Bootstrapping from Hex to Bison to GCC by kragen on Tuesday May 04, 2021 @10:47AM (#27038173)
You can make more efficient BF interpreters and compilers that recognize common patterns and optimize them.