Brainfuck compiler in brainfuck
code.google.com
code.google.com
http://code.google.com/p/awib/source/browse/builds/awib-1.0r...
Brainfuck tutorial:
http://www.jsoftware.com/jwiki/Essays/Incunabulum
Also, unlike Brainfuck, unlambda, lolcode, malborge, etc., J and related languages are used for real work. They're just really dense, like regular expressions for vector/matrix math.
K is also fun, but considerably less fun to toy around with now that GUI functionality was taken out of the standard lib.
It got me interested in the language, but rather than trying to rewrite it, I decided to go through "J For C Programmers" (http://www.jsoftware.com/help/jforc/contents.htm) on my lunch breaks. The APL language family has several interesting ideas, the fanatically terse syntax is just the first one everybody notices.
There's an unpacked and commented version of it here, FWIW: http://www.kuro5hin.org/comments/2002/8/30/175531/763/1#1
I'm not criticizing it anyway. His K is very clean... usually.
edit: I do wish he'd be a little less terse in the code for interfacing with other C code. Just as a favor to us normal humans.
,[.,]e.g.
+6 -> ++++++(Whether the bf compiler was actually written or just generated by compiling to bf is neither here nor there.)
Am I missing something/is this part of the joke/is it just a typo? It's... ah... messing with my mind a little.
(I'm guessing it's just a typo.)
That would be something to read.
It would sure look different, though.
See also:
* Project Euler (http://projecteuler.net/), for math problems
* Programming Praxis (http://programmingpraxis.com/)
Day 163: Project complete. Strength nearly gone. Must.. complete... evaluation.... Data structures, godawful... string handling, non-existent... writing a brainfuck interpreter, gigantic pain in the ass.... Conclusion: this better get me laid. Oh sh.. signal lost
If that doesn't work for you think of it as art. Not everything has to have a direct purpose.
If it was fun developing or fun doeing something so strange, than this was the purpose.
I really don't like it if purpose is reduced to getting richer, making career or impressing other people.
If people think that's the purpose, than they might loose the purpose of life.
At least I'm impressed.
Also nice ascii art.
Its not educational, its b0w b3f0r3 m4h sk1llz!
I must also agree with one of the posts here... It is art. Its geek art but it really is art. Judges who say source code is not art should also admit michalengelo was just some asshole who put grafitti on some holy buildings.
Michelangelo's frescoes were commissioned. I utterly fail to see why anyone should admit they were graffiti.
> Michelangelo's frescoes were commissioned. I utterly fail to see why anyone should admit they were graffiti.
The negatives confuse the sentence, but that was his point. Michelangelo's works were not graffiti, and similarly source code should be considered art, even if it is geek art.
o) Sequences of '-','<','>' and '+' are contracted into single instructions. E.g. "----" is replaced with a single ADD(4).
SUB(4)?