Questions about JRuby + Java 7

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:

  1. Create synthetic types for method arguments and return values,
    i.e.
    MyObject fxn(MyObject a, MyObject b);
  2. Use reflected invocation
  3. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs