Snippets and programmatically creating new classes
tiark.rompf at epfl.ch
Wed Apr 25 09:14:47 PDT 2012
I've been playing with Graal a little since you guys came visiting EPFL in March.
I like the idea of Snippets and I was wondering, what is the preferred way of adding and
deploying custom Snippets that are specific to a particular application or library?
Also, is there a suggested way of programmatically creating new classes or methods?
For example, I would like to implement something similar to
java.lang.reflect.Proxy.newProxyInstance, creating an object on the fly that
implements a bunch of interfaces, where the method bodies are created directly using
Graal IR. Is there an API for this or would I still need to produce some byte code
and pass it through a class loader?
More information about the graal-dev