资 源 简 介
XRuby is the first Ruby to Java compiler which compiles Ruby source code (.rb) to Java bytecode (.class). The parser is implemented in ANTLR, and we use ASM to emit java bytecode.
The current stable version is 0.3.3, released on Mar. 24, 2008. It is able to pass all tests in samples/test.rb and most unit tests in test/ruby/ - a decent test suite that comes with ruby installation. In most benchmark tests, XRuby runs faster than Ruby 1.8.5.
Right now we are working hard to make more ruby libraries work under XRuby (Test::Unit is supported now, while Ruby On Rails is not). We always welcome contributors.
![](http://www.jetbrains.com/img/linklogos/idea88x31_2.gif) ![](http://asm.objectweb.org/images/poweredbyasm.gif) ![](http://www.antlr.org/images/antlr-link.gif)
文 件 列 表
benchmark
bm_app_answer.rb
bm_app_factorial.rb
bm_app_fib.rb
bm_app_mandelbrot.rb
bm_app_pentomino.rb
bm_app_raise.rb
bm_app_strconcat.rb
bm_app_tak.rb
bm_app_tarai.rb
bm_loop_times.rb
bm_loop_whileloop.rb
bm_loop_whileloop2.rb
bm_so_ackermann.rb
bm_so_array.rb
bm_so_concatenate.rb
bm_so_count_words.rb
bm_so_exception.rb
bm_so_lists.rb
bm_so_matrix.rb
bm_so_nested_loop.rb
bm_so_object.rb
bm_so_random.rb
bm_so_sieve.rb
bm_vm1_block.rb
bm_vm1_const.rb
bm_vm1_ensure.rb
bm_vm1_length.rb
bm_vm1_rescue.rb
bm_vm1_simplereturn.rb
bm_vm1_swap.rb
bm_vm2_array.rb
bm_vm2_method.rb
bm_vm2_poly_method.rb
bm_vm2_poly_method_ov.rb
bm_vm2_proc.rb
bm_vm2_regexp.rb
bm_vm2_send.rb
bm_vm2_super.rb
bm_vm2_unif1.rb
bm_vm2_zsuper.rb
bm_vm3_thread_create_join.rb
run.rb
wc.input.base
demo
debug.bat
debug.sh
README.txt
testjar
test_debug2.rb
doc
HackingGuide.htm
HackingGuide_cn.htm
MultipleAssignment.txt
lib
ant
antlr
asm
commons-cli
jakarta-oro
jarjar
junit
ruby
sample
common.rb
test.rb
test_alias.rb
test_array.rb
test_assignment.rb
test_assignment_1.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb
test_clone.rb
test_condition.rb
test_const.rb
test_defined.rb
test_eval.rb
test_exception.rb
test_file.rb
test_float.rb
test_gc.rb
test_hash.rb
test_if_unless.rb
test_integer.rb
test_iterator.rb
test_marshal.rb
test_math.rb
test_numeric.rb
test_pack.rb
test_path.rb
test_proc.rb
test_range.rb
test_signal.rb
test_string_and_char.rb
test_struct.rb
test_system.rb
test_time.rb
test_trace.rb
test_variable.rb
test_while_until.rb
src
builtin.rb
com
test
erb
ruby
runner.rb
stringio
testunit
xruby
build.bat
build.sh
build.xml
LICENCE.txt
README.txt