News for hackers. Stuff that matters.
Re:Brainfuck compiler in brainfuck by michael_h on Friday July 10, 2009 @10:30AM (#697702)
How much patience is necessary for something like this? If I could start a slow clap, I would.
Re:Brainfuck compiler in brainfuck by andyn on Friday July 10, 2009 @12:45PM (#697954)
I think you could write some sort of simple language that would get expanded into BF.

e.g.

  +6 -> ++++++
Re:Brainfuck compiler in brainfuck by silentbicycle on Friday July 10, 2009 @01:08PM (#698001)
You could compile to brainfuck, treating it as a very simple virtual machine. It's just simplified to the point of being incredibly inefficient, like factoring Church-encoded numbers with Prolog's unification, rather than using its built-in mathematical primitives.

(Whether the bf compiler was actually written or just generated by compiling to bf is neither here nor there.)

Re:Brainfuck compiler in brainfuck by tetha on Friday July 10, 2009 @06:56PM (#698558)
in fact, there is work on a gcc-backend which outputs brainfuck (name's gcc-bf)