Re: Trying to work newer indy into JRuby

2009-05-25 Thread John Rose
On May 19, 2009, at 3:37 PM, Charles Oliver Nutter wrote: > Woah, now that's wild. Can you elaborate on that at all? Would the MHs > essentially be the nodes of an IR? It certainly deserves elaboration. My previous message gave a few more points about combineArguments. Fredrik's blog entry of

Re: guardWithTest

2009-05-25 Thread John Rose
Nice blog entry, Fredrik. Neal Gafter was also asking me at Lang.NET for a slow path like the one you suggest. If the user has a specific signature in mind, guardWithTest is interchangeable with a hand-written JMH containing the if/then/else logic. But the general API needs to be signatur

Re: guardWithTest

2009-05-25 Thread Attila Szegedi
Also, IIRC (and I might be wrong about that, memory is sometimes failing...), guardWithTest was introduced when there was no JavaMethodHandle; John pretty much specified few general-purpose method handle types creatable by static factory methods in the MethodHandles utility class, and that

Re: guardWithTest

2009-05-25 Thread Fredrik Öhrström
Arthur Peters skrev: > I'm a lurker, but I have a question. > > What makes guardWithTest better or faster than simply using a method > handle of a method with an if statement in it? > > Like: > Object meth(...args...) { > if(pred) > guard; > else > callTargetMethod; > } > > Can the JVM

Re: Trying to work newer indy into JRuby

2009-05-25 Thread Fredrik Öhrström
John Rose skrev: > As Fredrik says, you can hide the polymorphism by going to a > reflective (fully boxed) calling sequence. But, we've had 10 years to > learn to optimize that reliably, and we don't. Some JVMs optimize > boxing sometimes, but not all do, and it is historically a hard > p

hg: mlvm/mlvm/jdk: 2 new changesets

2009-05-25 Thread john . rose
Changeset: 039c43d8e288 Author:jrose Date: 2009-05-25 03:06 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/jdk/rev/039c43d8e288 meth, indy: rebase to bsd-port ! series Changeset: bc4664135790 Author:jrose Date: 2009-05-25 03:08 -0700 URL: http://hg.openjdk.java.net

hg: mlvm/mlvm/hotspot: 2 new changesets

2009-05-25 Thread john . rose
Changeset: 4f32d5550915 Author:jrose Date: 2009-05-25 03:01 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/4f32d5550915 meth, indy: rebase to bsd-port ! series Changeset: cc49316b082d Author:jrose Date: 2009-05-25 03:04 -0700 URL: http://hg.openjdk.java

hg: mlvm/mlvm/langtools: 2 new changesets

2009-05-25 Thread john . rose
Changeset: 6276f97c3873 Author:jrose Date: 2009-05-25 02:50 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/langtools/rev/6276f97c3873 meth: rebase to bsd-port ! series Changeset: 3088e381b696 Author:jrose Date: 2009-05-25 02:50 -0700 URL: http://hg.openjdk.java.net