<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I pushed a lot more testing and implementation code for the reference implementation. Finally permuteArguments works, as do all the variations of varargs processing.</div><div><br></div><div>Here's the updated javadoc; it's getting better:</div><div> <a href="http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/">http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/</a></div><div><br></div><div>I added <a href="http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/java/dyn/MethodHandles.html#filterArguments(java.dyn.MethodHandle,%20java.dyn.MethodHandle...)">filterArguments</a>, since I remember people asking for it during last year's Summit. Such a simple use case (single argument transformation with a unary function) is too awkward to implement in terms of <a href="http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/java/dyn/MethodHandles.html#foldArguments(java.dyn.MethodHandle,%252520java.dyn.MethodHandle)">foldArguments</a> (requires argument dropping/reordering).</div><div><br></div><div>-- John</div><div><br></div><div><div>P.S. I also added something called <a href="http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/java/dyn/MethodHandles.html#dynamicInvoker(java.dyn.CallSite)">dynamicInvoker</a>. It is a simple thing which turns a CallSite into a simulated invokedynamic instruction; this rounds out the Lookup.find{Static,*} functionality to include the new invoke instruction. Not sure if it is the right thing, though.</div></div></body></html>