JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Kirill Shirokov
Hi Charlie, 1. There is a problem with JRuby: starting from b136 of JDK7, ruby refuses to compile benchmark when -Xcompile.invokedynamic=true: $ bin/jruby -X+C -Xcompile.invokedynamic=true bench/bench_fib_recursive.rb RuntimeError: could not compile and compile mode is 'force':

Re: JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Charles Oliver Nutter
1. You can pass -d to JRuby to get the debug output from the failure, or -Xjit.logging.verbose=true. I can take a look at this as soon as I can update to java.lang.invoke. 2. I can fix the package reference quickly, but I'm using Rémi's backport/mock which is still on java.dyn. I can't commit

Re: JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Rémi Forax
On 04/06/2011 05:17 PM, Charles Oliver Nutter wrote: 1. You can pass -d to JRuby to get the debug output from the failure, or -Xjit.logging.verbose=true. I can take a look at this as soon as I can update to java.lang.invoke. 2. I can fix the package reference quickly, but I'm using Rémi's

Re: JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Rémi Forax
On 04/06/2011 06:06 PM, Charles Oliver Nutter wrote: On Wed, Apr 6, 2011 at 10:36 AM, Rémi Foraxfo...@univ-mlv.fr wrote: On 04/06/2011 05:17 PM, Charles Oliver Nutter wrote: 2. I can fix the package reference quickly, but I'm using Rémi's backport/mock which is still on java.dyn. I can't

Re: JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Charles Oliver Nutter
On Wed, Apr 6, 2011 at 11:24 AM, Charles Oliver Nutter head...@headius.com wrote: On Wed, Apr 6, 2011 at 11:22 AM, Charles Oliver Nutter head...@headius.com wrote: Ok, I'll do that for now. I assume Linkage is still in the mock? Linkage does not appear to be in the mock, either under java.dyn

Re: JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Rémi Forax
On 04/06/2011 06:35 PM, Charles Oliver Nutter wrote: On Wed, Apr 6, 2011 at 11:24 AM, Charles Oliver Nutter head...@headius.com wrote: On Wed, Apr 6, 2011 at 11:22 AM, Charles Oliver Nutter head...@headius.com wrote: Ok, I'll do that for now. I assume Linkage is still in the mock? Linkage

Re: JRuby can't compile benchmark. Also package renaming

2011-04-06 Thread Charles Oliver Nutter
Ok, running off jsr292-mock 1.6 and a prerelease build of ASM 4.0 (thanks Rémi for your help) I have pushed an updated branch that's all java.lang.invoke, new bootstrap style, and properly compiling and loading code. https://github.com/jruby/jruby/tree/indy_update The compile failure was because

Coming change to dropArguments?

2011-04-06 Thread Mark Roos
In reading John's blog I saw a mention about changing dropArguments, perhaps providing a simpler version? I would like that. In my code dropArguments is used to drop all but the first argument before a bind and test for the test branch of guardWtihTest. Mine is a special case where all of the

Re: Coming change to dropArguments?

2011-04-06 Thread Rémi Forax
On 04/06/2011 08:52 PM, Mark Roos wrote: In reading John's blog I saw a mention about changing dropArguments, perhaps providing a simpler version? I would like that. In my code dropArguments is used to drop all but the first argument before a bind and test for the test branch of

Re: Coming change to dropArguments?

2011-04-06 Thread John Rose
On Apr 6, 2011, at 3:10 PM, Rémi Forax wrote: You can also use the dropArguments that takes a List and use Arrays.asList() followed by subList(). If the desired MethodType is available, you can also use MethodType.parameterList to get a List of the parameters (at O(1) likely allocation