Skip to content
This repository

MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X core technologies such as the Objective-C runtime and garbage collector, the LLVM compiler infrastructure and the Foundation and ICU frameworks.

Fetching latest commit…

Cannot retrieve the latest commit at this time

benchmark
bin
data
ext
framework committing experimental branch content
include
lib
misc
mspec
onig
rakelib
sample-macruby
sample committing experimental branch content
spec
test-macruby
test
test_vm
tool
.cvsignore
.document
.gitignore
COPYING
GPL committing experimental branch content
HACKING.rdoc
LEGAL
LGPL committing experimental branch content
MacRuby.m
README.rdoc
Rakefile
TODO
array.c
auto_zone_1060.h
b.rb
bench.rb
bignum.c
bridgesupport.cpp
bridgesupport.h
bs.c
bs.h
bs_lex.h fixed compilation on Leopard
bs_struct_readers.c statically generate the struct reader methods, 128 seems necessary at…
class.c
compar.c
compiler.cpp
compiler.h
complex.c
cont.c
dir.c
dispatcher.cpp
distruby.rb committing experimental branch content
dln.c
dln.h .rbo files are now initialized using a gcc constructor instead of an …
dmydln.c committing experimental branch content
dmyencoding.c committing experimental branch content
dmyext.c committing experimental branch content
dmytranscode.c committing experimental branch content
dtrace.d removed the insn__entry and insn__return probes now that yarv is gone
encoding.c
enum.c
enumerator.c
error.c
eval.c
eval_error.c
eval_jump.c
eval_safe.c
file.c
gc-stub.m
gc.c
gcd.c
gem_prelude.rb
gen_bs_struct_readers.rb statically generate the struct reader methods, 128 seems necessary at…
golf_prelude.rb committing experimental branch content
hash.c
id.c
id.h
inits.c
instruby.rb
io.c
keywords committing experimental branch content
lex.c.blt committing experimental branch content
lex.c.src committing experimental branch content
lgamma_r.c committing experimental branch content
llvm.h
load.c
main.cpp
markgc.c
marshal.c
math.c
numeric.c
objc.h
objc.m
object.c
pack.c
parse.y
prec.c
prelude.rb
proc.c
process.c
random.c
range.c
rational.c
re.c
ruby.1 committing experimental branch content
ruby.c
rubyc.1
rubytest.rb committing experimental branch content
runruby.rb committing experimental branch content
signal.c
sprintf.cpp
st.c
string.c
struct.c
test_vm.rb
thread.c
thread_pthread.h
time.c
transcode.c
transcode_data.h
util.c
variable.c
version.c
version.h
vm.cpp
vm.h
vm_eval.c
vm_method.c
README.rdoc

MacRuby

MacRuby is a Ruby implementation based on Mac OS X technologies, such as the Objective-C runtime and garbage collector, the CoreFoundation framework and the LLVM compiler infrastructure.

It is the goal of MacRuby to enable the creation of full-fledged Mac OS X applications which do not sacrifice performance in order to enjoy the benefits of using Ruby.

MacRuby is copyrighted free software by Apple Inc and covered by the terms of the Ruby license. Please refer to the COPYING file for more information.

The project website contains more documentation, such as tutorials and guides: macruby.org

Requirements

  • An Intel machine. PowerPC machines are not supported anymore, but may still work. An Intel 64-bit machine (Intel Core Duo 2) is recommended.

  • Mac OS X 10.5.6 or later.

  • LLVM ToT, compiled for both i386 and x86_64.

    LLVM is a moving target and breaks periodically. We recommend to install revision 82747.

    $ svn co -r 82747 https://llvm.org/svn/llvm-project/llvm/trunk llvm-trunk
    $ cd llvm-trunk
    $ ./configure --enable-bindings=none
    $ UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" ENABLE_OPTIMIZED=1 make
    $ sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" ENABLE_OPTIMIZED=1 make install

    Note that compiling LLVM can take quite a while. If you have a machine with multiple cores, which is quite likely, you might want to speed up the process by using all/more cores. However, doing this can make your machine unresponsive during compilation. To use multiple cores pass the `-j N' option, where `N' stands for the number of cores you'd like to use. So for a Core Duo the command would look like:

    $ UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" ENABLE_OPTIMIZED=1 make -j2

Build Instructions

You can build MacRuby by doing the following command:

$ rake

Once done, you can run the RubySpec-based regression tests as well as the performance suite:

$ rake spec:ci
$ rake bench:ci

To install MacRuby on your machine:

$ sudo rake install

Then you should be all set! Please report us any problem you will find (the macruby.org website has pointers). Thanks!

Something went wrong with that request. Please try again.