How is this better than compiling everything to WebAssembly and using V8 as your interpreter?
Because WebAssembly is extremely limited? Unless you need to ship on the web, using WebAssembly is almost certainly a bad decision as it makes highly compromising tradeoffs that you don't need.
GraalVM: Run Programs Faster Anywhere
51–60 of 218 posts
Re: GraalVM: Run Programs Faster Anywhere
#52Am I correct in reading the license in Github that this is all GPL? Albeit GPL2 but still not some Oracle proprietary license. "One VM to rule them all" reminds me of Parrot VM (for Perl 6). Looks like development slowed down a year or two ago. Back then, it got me excited as it looked like the "open source community" alternative to "Big Corporate Java". https://en.wikipedia.org/wiki/Parrot_virtual_machine
What is the license of GraalVM? There is a community edition (CE) and an enterprise edition (EE) of GraalVM. The community edition is distributed under an open source license. It is free to use in production and comes with no strings attached, but also no guarantees or support. The enterprise edition is available from the Oracle Technology Network under an evaluation license. It provides improved performance and secu…
Re: GraalVM: Run Programs Faster Anywhere
#53To what extent is this compatible with all existing libraries for allegedly supported languages? I'm also curious if .net standard/c# support is being planned.
We don't test all of them but many.
We have considered .NET support but we are not actively working on it right now. But GraalVM is an open platform. Everyone can develop a language for it: http://www.graalvm.org/docs/graalvm-as-a-platform/
Re: GraalVM: Run Programs Faster Anywhere
#54https://blog.plan99.net/graal-truffle-134d8f28fb69
discussed at https://news.ycombinator.com/item?id=13343845
The idea there: "Graal is a research compiler. ... Truffle is a framework for implementing languages using nothing more than a simple abstract syntax tree interpreter."
As a bonus, you get high speed, good instrumentation for debugging and profiling, with great garbage collection, and hotswap code as you develop.
Re: GraalVM: Run Programs Faster Anywhere
#55Am I correct in reading the license in Github that this is all GPL? Albeit GPL2 but still not some Oracle proprietary license. "One VM to rule them all" reminds me of Parrot VM (for Perl 6). Looks like development slowed down a year or two ago. Back then, it got me excited as it looked like the "open source community" alternative to "Big Corporate Java". https://en.wikipedia.org/wiki/Parrot_virtual_machine
(I'm having doubts if this comment belongs here. But it's my genuine reaction, for what it's worth.)
Re: GraalVM: Run Programs Faster Anywhere
#56Re: GraalVM: Run Programs Faster Anywhere
#57Re: GraalVM: Run Programs Faster Anywhere
#58How is this better than compiling everything to WebAssembly and using V8 as your interpreter?
Re: GraalVM: Run Programs Faster Anywhere
#59I am excited to see such a beast coming from a major company with a strong track record in VMs, and particularly given that it is based on their existing JDK, and am particularly excited that it now seems to be available!
I have some questions that I did not managed to easily get answered from looking over the website.
Can I AOT with this (via SubstrateVM) and deploy to "mobile" targets, and specifically iOS?
Are there any examples of embedding GraalVM in an existing native application (such as the noted idea of having GraalVM accessible inside of MySQL)?
Is there an existing embedding for node.js? (I don't mean "can I run node.js apps on GraalVM?"; I mean: from node.js, can I instantiate a GraalVM and give it code to execute in a new context, or will I need to build my own bindings to the GraalVM embedding API for that first?)
I did find some documentation for using an embedded GraalVM in a Java application, but while I work on many projects in many languages, none of them have been written in Java now for over a decade. I guess I was expecting a C/C++ API to be documented somewhere, not a Java API (due to the listed prototypical embeddings, and based on my long experience with embedding other virtual machines, including the Oracle/Sun JVM).
Re: GraalVM: Run Programs Faster Anywhere
#60How large is the resulting executable? There was some mention of shares libraries — is it possible to build a runtime that is callable from C?
Relatedly, does the GraalVM java executable support JNI?
I’m also curious about the runtime footprint in general; any idea what is the smallest possible VM for a real but relatively-small language like Lua?