News for hackers. Stuff that matters.
Re:The Siren Song of Little Languages by machinestops on Monday January 13, 2025 @04:26AM (#42681615)
I struggle to take such an article seriously when it cites Brainfuck as an example. A common use of Brainfuck isn't to write programs, but rather to prove that it is possible to write programs. This isn't exactly comparable with small Lisps or Forth.
Re:The Siren Song of Little Languages by rausr on Monday January 13, 2025 @06:04AM (#42682211)
I work in the same building as Urban Mueller (creator of BF). He told me the point of BF was to implement a compiler ;)
Re:The Siren Song of Little Languages by InDubioProRubio on Monday January 13, 2025 @06:32AM (#42682371)
He told me its there to import geometry from standard formats into marching cubes and then octrees.
Re:The Siren Song of Little Languages by jhonsrid on Monday January 13, 2025 @09:53AM (#42684012)
You can write a program that takes BF code as input and outputs valid C source that would execute it in less than 20 lines of well formatted ANSI C using nothing more than putchar, getchar, while, pointer inc/dec and dereference, so I can imagine a full compiler for it would be super simple too.

(Though I bet an optimising compiler would be a _little_ more complicated) ;)