You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Aleksey Demakov d6a3603aac Update readmes 9 years ago
..
ext add Paul Brannan's ruby-libjit 16 years ago
lib add Paul Brannan's ruby-libjit 16 years ago
sample add Paul Brannan's ruby-libjit 16 years ago
test add Paul Brannan's ruby-libjit 16 years ago
README Update readmes 9 years ago
generate_rdoc.rb add Paul Brannan's ruby-libjit 16 years ago
metaconfig add Paul Brannan's ruby-libjit 16 years ago
post-install.rb add Paul Brannan's ruby-libjit 16 years ago
post-setup.rb add Paul Brannan's ruby-libjit 16 years ago
ruby-libjit.gemspec add Paul Brannan's ruby-libjit 16 years ago
run_tests.rb add Paul Brannan's ruby-libjit 16 years ago
setup.rb add Paul Brannan's ruby-libjit 16 years ago

README

Ruby-libjit 0.1.0
Copyright (C) 2008 Paul Brannan

Ruby-libjit is a wrapper for the libjit library. It provides basic
functionality for jit-compiling functions, including integrating those
functions as callable methods from within Ruby. Abstractions are also
provided so that jit code may be written in a ruby-like manner.

Please see the file COPYING for license information.

A simple example:

:include: sample/simple.rb

Looping structures and other abstractions are provided to make writing
jit code easier:

:include: sample/fib.rb

To build ruby-libjit, you will need to install libjit. If it is not
available pre-compiled for your platform, you may build the latest
release like this:

$ wget ftp://ftp.gnu.org/gnu/dotgnu/pnet/libjit-0.1.0.tar.gz
$ tar xvfz libjit-0.1.0.tar.gz
$ cd libjit-0.1.0
$ ./configure
$ make
$ sudo make install

Or the latest development version like this:

$ git clone git://git.savannah.gnu.org/libjit.git
$ cd libjit
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

To build ruby-libjit, run setup.rb:

$ ruby setup.rb config
$ ruby setup.rb setup
$ sudo ruby setup.rb install

For a more complete JIT framework and compiler for Ruby code, please
take a look at Ludicrous:

http://rubystuff.org/ludicrous/