Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Wrapper for the libjit just-in-time compiler library
Ruby C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext
lib
sample
test
.gitignore
COPYING
LGPL
LICENSE
README
Rakefile
VERSION
generate_rdoc.rb
metaconfig
post-install.rb Run tests and build documentation as part of setup process.
post-setup.rb
publish_rdoc.rb
ruby-libjit.gemspec
run_tests.rb
setup.rb

README

Ruby-libjit
: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 ftp://ftp.gnu.org/gnu/dotgnu/libjit/libjit-0.1.2.tar.gz
  $ 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:

  http://rubystuff.org/ludicrous/

Something went wrong with that request. Please try again.