Re: [jruby-dev] Compiler2 Update

2009-03-13 Thread Charles Oliver Nutter
Logan Barnett wrote: Is the compiler executing this script instead of running it then? All the requires go through, mixins are applied, etc, right? That is correct! And the resulting class, as part of its static initialization, requires the same file you compile with. So if you tell the compi

Re: [jruby-dev] Compiler2 Update

2009-03-13 Thread Logan Barnett
On Mar 12, 2009, at 9:11 PM, Charles Oliver Nutter wrote: I have committed another round of work on compiler2, and it now supports signatures. Here's an example: require 'rbconfig' require 'java' require 'tool/signature' class MyRubyClass def helloWorld puts "Hello from Ruby" end def

Re: [jruby-dev] Compiler2 Update

2009-03-12 Thread Charles Oliver Nutter
Also blogged here: http://blog.headius.com/2009/03/more-compiling-ruby-to-java-types.html Charles Oliver Nutter wrote: I have committed another round of work on compiler2, and it now supports signatures. Here's an example: require 'rbconfig' require 'java' require 'tool/signature' class MyRu

[jruby-dev] Compiler2 Update

2009-03-12 Thread Charles Oliver Nutter
I have committed another round of work on compiler2, and it now supports signatures. Here's an example: require 'rbconfig' require 'java' require 'tool/signature' class MyRubyClass def helloWorld puts "Hello from Ruby" end def goodbyeWorld(a) puts a end %w[boolean byte short c