[REBOL] Re: a funny language - "ETA"
From: chaz:innocent at: 5-Feb-2002 9:12
Thanks for the implementation! There is much to study in it!
----- Original Message -----
From: "Frank Sievertsen" <[fsievert--uos--de]>
To: "Chris" <[chris--starforge--demon--co--uk]>
Cc: <[rebol-list--rebol--com]>
Sent: Monday, February 04, 2002 4:13 AM
Subject: [REBOL] Re: a funny language - "ETA"
An other 8-commands language ist brainfuck.
http://www.muppetlabs.com/~breadbox/bf/
Only the characters [],.+-<> are used.
Example-Implementation:
>> do http://proton.cl-ki.uni-osnabrueck.de/REBOL/brainfuck.r
>> brainfuck/program
== {[ >++++ [<++++++++>-] <.,]}
>> brainfuck/run "HELLO^@"
== {hello}
>> brainfuck/program: {>,[>,]<[.<]}
== ">,[>,]<[.<]"
>> brainfuck/run "Hello^@"
== "olleH"
And it can make rebol-functions out of the brainfuc-programs:
>> a: brainfuck/rebol-func
>> a "Hello^@"
== "olleH"
I tried to use this implementation for genetic algorithms. I was able to
learn some simple programs like "reverse" "uppercase" etc.
Have fun
Frank