I researched this further, and it looks like that there is a possible workaround using JET's Mixed Compilation Model, which is described here:
http://www.excelsior-usa.com/doc/jet500/jetw009.html#0249 It basically involves running the application once and letting the JIT native code compiler cache the generated code, which can be later reloaded. However, the details look a bit tricky, and I am still not sure exactly how the loaded bytecode is mapped to the native code (I know that it is conceptually possible, but I don't see how from the documentation). Peter -----Original Message----- From: John Wells [mailto:[EMAIL PROTECTED] Sent: Saturday, October 20, 2007 11:26 AM To: [email protected] Cc: [email protected] Subject: Re: [jruby-dev] Compile to .rbj instead of .class? ----- "Peter K Chan" <[EMAIL PROTECTED]> wrote: > It isn't so simple. You can rename all the .rbj to .class, and JET > may compile them successfully, but how do they get loaded up? The JRuby > classloader will still be expecting .rbj and doing it's own defineClass() on > bytecode, and not native code. Good point. Wonder how difficult it would be to support both? First look for MyClass.rbj, then MyClass.class? --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
