Skip to content
TiMBuS edited this page Sep 13, 2010 · 33 revisions

Fun: An even happier Joy.

‘Fun’ is an implementation (or some might say bastardization) of the elegant functional stack-based language ‘joy.’ It is mostly a pet project that I spent far too much time on, but will hopefully result in a usable, enjoyable fun language for people to play with.
A lot of the underlying mechanics are implemented, and the language is already fairly usable right now. All that needs doing for the most part is adding built-in functions, and the rest is just tidying up the underlying nuts and bolts.

Installing fun

Fun is hosted on, and so requires the Parrot Virtual Machine to be installed if you want to compile and run it. There are instructions for downloading the source code and compiling it on their website, and it is fairly straightforward. I would recommend getting it from their svn trunk located at https://svn.perl.org/parrot/trunk. You will need Perl 5 and an ANSI-compliant C89 compiler to build both Parrot and Fun.
Once you have downloaded Parrot, make sure you have permissions to the ‘languages’ directory, change to it, and then checkout a copy of fun from github. You will need to parrot to generate the fun makefile which can be done with a full parrot reconfigure or by using tools/dev/reconfigure.pl --step=gen::languages --languages=fun

The whole process on linux can be done like so:
bq.

svn co https://svn.perl.org/parrot/trunk parrot
cd parrot/languages/
git clone git://github.com/TiMBuS/fun.git
cd ..
perl Configure.pl
make
cd languages/fun
make</pre>

After that, invoke the REPL by using ../../parrot fun.pbc

Project Status

Well, it works…

Fun links

[[Whats so fun about it?]]

Clone this wiki locally