Hi JRuby folk,
I’ve got some questions about JRuby internals that I hope someone on
this
list can help answer:
The JSR
292http://java.sun.com/developer/technicalArticles/DynTypeLang/index.htmlhomepage
talks about three ways you could run a dynamic language on the JVM:
- Create synthetic types for method arguments and return values,
i.e.
MyObject fxn(MyObject a, MyObject b); - Use reflected invocation
- Write a language-specific interpreter on top of the VM
I’m assuming that JRuby implements #3. Is that correct?
Also, if you can compile JRuby scripts into JVM bytecode, does that mean
that JRuby also implements #1 and/or #2?
And finally: I dug around the web for information on JRuby and the new
dynamic capabilities of Java 7 and didn’t find a lot of information.
Does
anybody know what the plan is for that?
Thanks in advance!
Baq