Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

acme (189)

  (email not shown publicly)

Leon Brocard (aka acme) is an orange-loving Perl eurohacker with many varied contributions to the Perl community, including the GraphViz module on the CPAN. YAPC::Europe was all his fault. He is still looking for a Perl Monger group he can start which begins with the letter 'D'.

Journal of acme (189)

Thursday May 30, 2002
10:25 AM

BF interpreter

[ #5307 ]
"Start small, young grasshopper" the small old man with the white hair and the cane used to tell me. I want to do interpreters and compilers in Parrot. So rather than starting with a huge language like, well, BASIC, I've started with BF. BF is turing complete in eight instructions, but I feel the language designer may have shot himself in the foot by actually calling it Brainf**k. So I tappitty tap on the key board and look what comes out.

Never complain that Perl is hard to read. Here is a sample BF program:


So, what language next?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • IIRC, someone (Sean O'Rourke? I'm not sure) had the idea to port Befunge [] to Parrot.
  • Didn't we decide you were going to do this next?

    Of course we were in the pub when this idea was voiced, and we've never been good at remembering things we've decided down the pub...

    • To be honest, this seems like a lot of work for very little gain, (apart from silly licensing issues) seeing that Ming [] already contains an ActionScript compiler. Oh, and flasm [] looks quite interesting too. The ActionScript virtual machine is actually a little like Parrot.
  • If you're going to write interpreters for an as-yet unfinished VM, my opinion is that you need to get kinda silly about it, and start getting 'meta'. So, my suggestions would be: * A Parrot compatible virtual machine written in Parrot. It could run itself. * A Parrot assembler interpreter. :-D