First cut of a REBOL implementation of a brainf#ck interpretter
Author |
Message |
btiffin
|
Posted: Sun Mar 22, 2009 2:41 am Post subject: First cut of a REBOL implementation of a brainf#ck interpretter |
|
|
As advertised in the sources; John got this down to 232 bytes of REBOL compressed binary.
http://www.rebol.org/view-script.r?script=bf.r
Get a copy of REBOL at http://rebol.com, install it (well run it, installation not required)
code: |
>> do http://www.rebol.org/library/scripts/bf.r
>> bf "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."
Hello World!
|
Our Geomol is one proficient programmer; he wrote this in a couple of hours today. It might have bugs in it.
My apologies for not using the proper name in the Subject line of the post, just one of those things for a public forum.
Cheers
Edit; typo |
|
|
|
|
|
Sponsor Sponsor
|
|
|
saltpro15
|
Posted: Sun Mar 22, 2009 11:37 am Post subject: RE:First cut of a REBOL implementation of a brainf#ck interpretter |
|
|
you have me interested in learning REBOL btiffin, you know where I might find some good documentation or tut's ? |
|
|
|
|
|
btiffin
|
|
|
|
|
saltpro15
|
Posted: Sun Mar 22, 2009 7:48 pm Post subject: RE:First cut of a REBOL implementation of a brainf#ck interpretter |
|
|
Ah thanks man, this looks promising Nothing like diving into a new language |
|
|
|
|
|
btiffin
|
Posted: Sun Mar 22, 2009 10:09 pm Post subject: RE:First cut of a REBOL implementation of a brainf#ck interpretter |
|
|
Umm, be prepared for "now for something completely different".
It can take a while to come to grips with REBOL values and the concept of words just being words until REDUCE is invoked. REBOL truly allows code is data and data is code. That freaks some people out.
REBOL, at a glance, seems that it has very little syntax, but their is a plethora of datatype syntaxes and powerful semantics that coincides with those syntaxes.
And again, the real help is in a closed, by invite only, very focused Altme world. Just ask. The nature of "by invite only" means that the discussions are usually on topic, and Altme is a great little piece of software.
Cheers |
|
|
|
|
|
|
|