-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-03-21 20.45, Charles Oliver Nutter wrote: > On Mon, Mar 21, 2011 at 8:40 PM, John Rose <john.r.r...@oracle.com> wrote: >> Yes, that occurred to me to, at least in this form (which is not very >> statically checkable): >> >> Binder >> .from(String.class, "a", Integer.class, "b", Float.class, "c", >> String.class) >> .reorder("c", "c") >> >> It's a little harder to imagine unwinding everything to open code when name >> lookups are involved. > > I've been thinking of ways to blunt the cost of the DSL as well. The > simplest would be saving the Binder before calling "invoke", since > from there on it can apply to anything with the same types. Another > might be having Binder emit code for the MethodHandles calls, > bypassing the normal logic...but of course now we're talking about > generating code to generate MH binding sequences :) Actually, I think that would be a very good idea - I see myself having to do these operations in ASM output quite a lot (I'm already doing it a bit actually).
Cheers - -- Ola Bini (http://olabini.com) Ioke - JRuby - ThoughtWorks "Yields falsehood when quined" yields falsehood when quined. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJNiK3aAAoJEClcdGmEr38MG/8QALTSQmRYBp3B+KNWZ6QT27aF RJq/fxG65qN852+oZHQkj+DSevl412ci2xlMtSMmN0H3Xt/PZ25ASvFMuownhBzZ W/wkF2WIGu0A55K7vObltztbrQg1ITcafVpuLIVr/xy68rineGK1vQAs/lnjONqU KX/s9wODEtAu9nBC7i6bZf0X+m2pipFpu81gaSIB9v6Ef1UqGHuWoNtJ/BGiRrAr 6iu/PEVyqoD2jDLdB92QXe0Xb1wddvnqeurm7pLJTAiFdS124GwCpOqU5v15EHmN frCyOaHX1d5UHfX0r6PkJBt3Sx3AX7XgkgeqH1Dgf/XG8kdDLQDinG6rbT7zqu3z VxM6ZJ1y5pe9DtbjK27DCkBSe+XScdgAh2qxRcbL6cgGHvXBZRdYMVd9Ai/vaupd 0PNcob/J+3t3sxnrlFlHI/T9cD4sETEsUIfSH4nVqNRrpBnkfxNIL/tBFZid8zwi ly0ajV64/amBUeCb6gv8Nzw98o/GayNxwm0znIzgMSDmnO5ropYDQfFK9T9IMj/8 7O9AwV09eui5z0jf77hnM1fcoWGgZm6cbUuZo4JUAyWDlWGr55hS+l1odWJECheT kjdC68XapXoxcnlgp/iGbVzwkeK7aUfV+Fbqm0qrdcHPZrXGOebNZg25Scw5sqsx Qd9qhx0SNKGoDonLyQX1 =O5kO -----END PGP SIGNATURE----- _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev