Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Wrapper for the libjit just-in-time compiler library
Ruby C
Branch: master

Bumped version number.

latest commit 9898f0a90e
Paul Brannan authored
Failed to load latest commit information.
ext No longer using method data to avoid memory leak (it was too complicated
sample Use simplified form for signature.
test Fixed tests to run on 64-bit.
COPYING Updated license.
LICENSE Updated license.
README Put the version number in a file VERSION.
Rakefile Added Rakefile.
VERSION Bumped version number.
generate_rdoc.rb Added missing file.
metaconfig Added --without-tests option.
post-install.rb Run tests and build documentation as part of setup process.
post-setup.rb Fixes for 1.9.3
publish_rdoc.rb Use rsync instead of scp to copy files.
ruby-libjit.gemspec Fixed parse error.
run_tests.rb Fixed to work with latest miniunit.
setup.rb Added --without-tests option.


:include: VERSION

Copyright (C) 2009 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.

To install it:

  gem install ruby-libjit

but you'll probably need to install libjit itself first (see below).

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
  $ tar xvfz libjit-0.1.2.tar.gz
  $ cd libjit-0.1.2
  $ ./configure
  $ make
  $ sudo make install

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

Something went wrong with that request. Please try again.