3 ms·
Shouldn't the point of doing something as practically useless as compiling brainfuck be to do it in the most difficult way possible? I'm more impressed by a br
by DonHopkins 5y ago
Shouldn't the point of doing something as practically useless as compiling brainfuck be to do it in the most difficult way possible?
I'm more impressed by a brainfuck compiler written in brainfuck.
https://news.ycombinator.com/item?id=697501 https://news.ycombinator.com/item?id=697501
https://github.com/matslina/awib https://github.com/matslina/awib
Awib is a brainfuck compiler entirely written in brainfuck.
Awib implements several optimization strategies and its compiled output outperforms that of many other brainfuck compilers
Awib is itself a 4-language polyglot and can be run/compiled as brainfuck, Tcl, C and bash
Awib has 6 separate backends and is capable of compiling brainfuck source code to Linux executables (i386) and five programming languages: C, Tcl, Go, Ruby and Java
- user-the-name 5y agoThe original point of Brainfuck was actually exactly to make the smallest possible compiler for a Turing-complete language. The original was 240 bytes, and created an executable directly.
- blacksqr 5y agoBrainfuck interpreter written in Tcl: https://wiki.tcl-lang.org/page/Brainfuck https://wiki.tcl-lang.org/page/Brainfuck Brainfuck-to-Tcl transpiler: https://wiki.tcl-lang.org/page/Brainfuck-to-Tcl+transpiler https://wiki.tcl-lang.org/page/Brainfuck-to-Tcl+transpiler