Hacker News new | ask | show | jobs
by lakpan 924 days ago
How do you implement a compiler in 6 lines of code, let alone 6 lines of BF code?
1 comments

Whitespace is ignored in Brainfuck, so just write the compiler in brainfuck and then strip all but 6 newlines.
I think lines should be hard wrapped at around 100 or 120. Linus prefers 100 for example.
This is such a Brainfuck answer