evan.musing << current

life and tech stuff by Evan Phoenix

Archiving loading now in trunk

with 2 comments

Today I merged the archive loading code from a branch into trunk. The archive loading allows rubinius to load code directly from a .rba (ruby archive). .rba’s are really just zip files with recompiled .rbc inside them. Archive loading is really important for stuff like the kernel and compiler because it allows all the code for them to be contained in one file and used all together.

I’ve also cleaned up the argument’s to ./shotgun/rubinius. The kernel is no longer specified on as the first argument, it’s either detected in a specific directory (currenly just runtime/kernel.rba) or is specified directly in the KERNEL environment variable.

Thirdly, I’ve checked in a kernel.rba and compiler.rba which people can use without going through the hoops of generating their own. I’ve modified the Rakefile so that build:all now only builds ./shotgun/rubinius and therefore uses the checked in version of kernel.rba and compiler.rba.

The upshot of all this change is that it should be a lot easier for people to out of the box get rubinius running simple code.

shell$ svn co http://code.fallingsnow.net/svn/rubinius/trunk rbx
shell$ cd rbx
shell$ rake build:all
shell$ ./shotgun/rubinius -e "puts 'hello rubinius'"

I’ll be restructuring the kernel code in rubinius in the next few days to clean up things further. This cleanup should allow people to work on the core classes and methods a bit more easily.

Thanks to everyone who’s submitted patchs and commited code to the project!


Written by evanphx

January 19, 2007 at 9:14 pm

Posted in Uncategorized

2 Responses

Subscribe to comments with RSS.

  1. Didn’t quite work that easily for me (Mac OS X). Once I got the sydparse gem installed, rake still choked. Then I gave up.

    Regardless, keep up the fine work. I have high hopes for rubinius where I have almost none for the main distribution.

    Stephen Waits

    January 20, 2007 at 9:38 am

  2. The missing step for me was to install mdoc2man from “http://www.opensource.apple.com/darwinsource/Current/ruby-22.2.2/ruby/mdoc2man.rb” as (in my case) ~/bin/mdoc2man. Once I did that rake build:all succeeded and I was able to run Rubinius. Coolness :)

    Matt Mower

    January 21, 2007 at 3:52 am


Leave a Reply