Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
Fancy is a dynamic, pure object-oriented programming language inspired by Smalltalk, Ruby, Io and Erlang.
The syntax is a mix of those languages but should be most familiar to Smalltalk and Ruby programmers.
How to get started
First of all, you’ll need Rubinius installed on your system. The easiest way to do so is installing it via rvm ( http://rvm.beginrescueend.com/ ):
We suggest using the latest version of Rubinius from the git repository (rbx-head). You’ll need at least version 1.2.1 though.
$ rvm install rbx-head
$ rvm use rbx-head
Now, get the latest code here from Github.
$ git clone git://github.com/bakkdoor/fancy.git
$ cd fancy
Then build fancy and let the FancySpecs run
$ rake && rake test
You should see all tests pass. If that’s not the case, please do file an issue here on Github.
You can try out some of the example files in the examples/ directory.
$ bin/fancy examples/hello_world.fy
Samples & Tutorials
Also, there’s a RosettaCode.org page dedicated to Fancy, including some common code samples written in Fancy compared to other languages.
Fancy tries to be as much Fancy as possible. This means that its standard library is in great part written in itself. You can have a look at the lib/ code if you want to get a feeling for how fancy feels and works.