Anonymous user
JRuby: Difference between revisions
m
no edit summary
(Introduce JRuby.) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 3:
# => "jruby"</lang>{{infobox end}}
JRuby is an implementation of Ruby that runs inside the [[runs on vm::Java Virtual Machine]] and can call Java libraries from Ruby code. JRuby
JRuby has preemptive concurrency like Java; each Ruby Thread is a Java Thread. JRuby can run multiple threads in parallel on multiple CPUs, if the JVM can do so. [[MRI]] has a Global VM Lock and can run these threads on only one CPU. In contrast, JRuby can never fork processes; MRI can fork with some platforms.
JRuby implements the interpreter and most of the core library in [[implemented in language::Java]]. The standard library is a mix of Java and Ruby.
* http://jruby.org
|