Skip to content

Webassembly #3013

Answered by axel22
fschon asked this question in Ideas
Nov 23, 2020 · 2 comments
Discussion options

You must be logged in to vote

In principle, yes - this would be possible. Graal.NodeJS already exposes a part of the V8 API to integrate with the rest of NodeJS, so it could be embeddable into the browser, e.g. Chrome.
Note that not all of the V8 API is implemented in Graal.NodeJS - only the parts that are required by NodeJS are implemented. The part of the V8 API that is currently not supported are some GC-related operations that would require modifying OpenJDK/HotSpot in the JVM version of Graal.NodeJS. Browser integration would need these parts. However, on the SubstrateVM version of Graal.NodeJS, the GC is itself implemented in Java, and can be modified, so one can more easily implement the missing V8 APIs that ar…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by olyagpl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants