Truffle and mlvm
mroos at roos.com
Fri Aug 29 20:59:11 UTC 2014
Moving from the startup thread.
Thomas has been wondering why using Truffle as a solution is not getting
traction. I was initially, and continue to be, quite interested in
Truffle. So how could
Truffle help out us non Java on the JVM developers to the point where we
could be a
driving force behind it. First note that myself and I would guess all
( as compared to researchers ) are like Marcus, very pragmatic. Small
changes are welcome
but wholesale ones are seen as a barrier. So to use Truffle I would want
to see it as an
addition to the jvm which addresses one of my specific issues.
The issue that I have where the solution is not evident is in the creation
methods. A primitive method in Smalltalk takes the arguments and some
and executes object code to deliver the result. Traditionally written C
I now use Java and JNI. Since we have the equivalent to value types
primitives can be quite important for our vector math ops performance.
What would be very nice would be to attach a truffle.jar, pass it some
which defines a primitive and get back a method handle wrapping some
optimized object code.
Given that this MH comes from a known source perhaps the jni like overhead
be much reduced similar to an intrinsic.
This would be much simpler, I would guess, then the Panama effort to wrap
Plus I would not have to have a pre made object file per external
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mlvm-dev