Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 First cut of a REBOL implementation of a brainf#ck interpretter
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
btiffin




PostPosted: 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
Sponsor
sponsor
saltpro15




PostPosted: 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




PostPosted: Sun Mar 22, 2009 3:10 pm   Post subject: Re: First cut of a REBOL implementation of a brainf#ck interpretter

Yayy! Smile

The docs I read are a bit out of date, but still good for learning...

http://rebol.com/docs.html
and I use
http://rebol.com/docs/core23/rebolcore.html
http://rebol.com/docs/view-guide.html
but the main docs page also has a link to the core guide as a PDF

And the new REBOL/3 docs are linked from within the alpha binary with
>> docs
and also at http://www.rebol.com/r3/docs/

http://rebol.org is the library of sample and some production ready scripts
and some are documented. I've added a fair boatload of learner docs, all listed at
http://www.rebol.org/cpt-recent-docs.r

Our wiki site is http://rebol.net/wiki

But if you really want "in", I'll get you an account on our by invitation only Altme REBOL world. The software for the Alternate Messaging is at http://altme.com/download.html

Cheers,
Brian
saltpro15




PostPosted: 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 Very Happy Nothing like diving into a new language
btiffin




PostPosted: 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
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: