-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a compatibility layer for JSR 223 #149
Comments
Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
Support for JSR 223 sounds interesting! I wonder how this should work though, given the fact that the Scripting API works mostly with Strings. How should users provide wasm "scripts"? How should we specify which exported function to call? Should we default to the "start function". How should we handle parameter bindings, e.g. enforcing their types? |
Let me share my thoughts on this: I would take inspiration from the API exposed by GraalVM Polyglot.
Why base64? Do you see any issue with using directly array of bytes?
The start function will be invoked on initialization of the Module, we need to be able to extract the exported functions by String name.
We don't have this and the API is still not really stable there, I would leave it fully low level and dynamic at the moment and we will refine/improve at a later stage. |
https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/prog_guide/api.html
The text was updated successfully, but these errors were encountered: