Re: Backport 2.0 RC

2012-07-30 Thread Charles Oliver Nutter
I tried it on JRuby...perhaps I'm doing something wrong:

Command line:

java -javaagent:lib/jsr292-backport.jar
-Djruby.home=/Users/headius/projects/jruby
-Djruby.compile.invokedynamic=true -Djruby.jit.logging.verbose=true
-jar ../jruby/lib/jruby.jar  -e "puts 1"

Error:

2012-07-30T16:45:58.970-05:00: Ruby: java/lang/invoke/CallSite
java.lang.NoClassDefFoundError: java/lang/invoke/CallSite
at 
org.jruby.compiler.impl.InvokeDynamicCacheCompiler.cacheFixnum(InvokeDynamicCacheCompiler.java:231)
at 
org.jruby.compiler.impl.BaseBodyCompiler.createNewFixnum(BaseBodyCompiler.java:429)
at org.jruby.compiler.ASTCompiler.compileFixnum(ASTCompiler.java:2452)
at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:289)
at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:87)
at 
org.jruby.compiler.ASTCompiler$SpecificArityArguments.call(ASTCompiler.java:523)

- Charlie

On Sun, Jul 29, 2012 at 7:10 PM, Mark Roos  wrote:
> Hi Rémi
>
> gave it a shot with this launch
> java -javaagent:jsr292-backport.jar -agentpath:javaDebug.dylib
> ri/experiment2/TestSm
>
>
> Got this error
> C:Unable to locate callback class.
> java.lang.NoClassDefFoundError
>  - klass: 'java/lang/NoClassDefFoundError'
> ./testBackport: line 3: 38777 Trace/BPT trap: 5   java
> -javaagent:jsr292-backport.jar -agentpath:javaDebug.dylib
> ri/experiment2/TestSm
>
> I usually put my jar file on the bootClassPath,  but I didn't think I needed
> it here.
>
> everything is in the same directory
>
> see you tomorrow
>
> mark
> ___
> mlvm-dev mailing list
> mlvm-dev@openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
>
___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: Backport 2.0 RC

2012-07-29 Thread Mark Roos
Hi Rémi

gave it a shot with this launch
java -javaagent:jsr292-backport.jar -agentpath:javaDebug.dylib 
ri/experiment2/TestSm 


Got this error
C:  Unable to locate callback class.
java.lang.NoClassDefFoundError 
 - klass: 'java/lang/NoClassDefFoundError'
./testBackport: line 3: 38777 Trace/BPT trap: 5   java 
-javaagent:jsr292-backport.jar -agentpath:javaDebug.dylib 
ri/experiment2/TestSm

I usually put my jar file on the bootClassPath,  but I didn't think I 
needed it here.

everything is in the same directory

see you tomorrow

mark___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: Backport 2.0 RC

2012-07-27 Thread Rémi Forax
On 07/27/2012 09:49 PM, Mark Roos wrote:
>
> Hi Remi
>
> How do I run with the backport?  I am using OSX Lion.
>
> regards
> mark
>
>

download the backport, unzip the zip,
in lib you have two files one is asm-4 and the other is the backport 
(jsr292-backport.jar)

the jsr292-bkkcport.jar is a Java agent so you can just run with the 
jdk6 provided by Apple,
   java -javaagent:lib/jsr292-backport.jar YourMain

the only constraint is that because jsr292-backport.jar has a dependency 
on asm.jar,
they should be in the same directory.

cheers,
Rémi

___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: Backport 2.0 RC

2012-07-27 Thread Mark Roos
Hi Remi

How do I run with the backport?  I am using OSX Lion.

regards
mark___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: Backport 2.0 RC

2012-07-27 Thread Rémi Forax
On 07/27/2012 07:56 PM, Jochen Theodorou wrote:
> Am 27.07.2012 18:44, schrieb Rémi Forax:
>> As traditionally for the JVM Summit,
>> I'm please to announce a new version of the JSR 292 backport,
>> http://code.google.com/p/jvm-language-runtime/downloads/list
>>
>> This version as some speed improvements and numerous bug fixes thanks to
>> the Nashorn Team.
>>
>> I'm still interested by any report of your favorite language running
>> with the backport,
>> Jochen?, Mark?, Duncan?, Charles*? or anyone that develop a language
>> runtime.
> The Groovy plans for invokedynamic are that version 3 of Groovy, coming
> next year, will use invokedynamic per default and the backport will be
> then used as a way to make it run on earlier VMs. I haven't really tried
> it out yet, instead in Groovy 2.0.1 we support invokedynamic as a Groovy
> VM plugin for jdk7. But I intend to test your backport against our call
> site caching after the summit
>
> well... I will be in Santa Clara on Sunday already if you want we could
> meet up and try making an integration of your backport. A meeting with
> whoever wants to participate in the invokedynamic workshop to speak what
> to do there is also something that could be done. Otherwise I will have
> to think of it all by myself.

My plane will land Sunday late in the evening, so I think it's better to 
try to figure out that during the summit.

>
> bye blackdrag
>

C U soon,
Rémi

___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: Backport 2.0 RC

2012-07-27 Thread Jochen Theodorou
Am 27.07.2012 18:44, schrieb Rémi Forax:
> As traditionally for the JVM Summit,
> I'm please to announce a new version of the JSR 292 backport,
> http://code.google.com/p/jvm-language-runtime/downloads/list
>
> This version as some speed improvements and numerous bug fixes thanks to
> the Nashorn Team.
>
> I'm still interested by any report of your favorite language running
> with the backport,
> Jochen?, Mark?, Duncan?, Charles*? or anyone that develop a language
> runtime.

The Groovy plans for invokedynamic are that version 3 of Groovy, coming 
next year, will use invokedynamic per default and the backport will be 
then used as a way to make it run on earlier VMs. I haven't really tried 
it out yet, instead in Groovy 2.0.1 we support invokedynamic as a Groovy 
VM plugin for jdk7. But I intend to test your backport against our call 
site caching after the summit

well... I will be in Santa Clara on Sunday already if you want we could 
meet up and try making an integration of your backport. A meeting with 
whoever wants to participate in the invokedynamic workshop to speak what 
to do there is also something that could be done. Otherwise I will have 
to think of it all by myself.

bye blackdrag

-- 
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org

___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Backport 2.0 RC

2012-07-27 Thread Rémi Forax
As traditionally for the JVM Summit,
I'm please to announce a new version of the JSR 292 backport,
http://code.google.com/p/jvm-language-runtime/downloads/list

This version as some speed improvements and numerous bug fixes thanks to 
the Nashorn Team.

I'm still interested by any report of your favorite language running 
with the backport,
Jochen?, Mark?, Duncan?, Charles*? or anyone that develop a language 
runtime.

cheers,
Rémi
* can I also beg for a special voodoo option of the CLI of JRuby to 
force invokedynamic bytecode on a 1.6 VM ?

___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev