On the other hand, it seems to me that these efforts and its resources would be better used developing a Webasm JVM implementation. Or at least kick-start the project.
We are missing a major platform in the JVM ecosystem and nobody seems to care.
On the other hand, it seems to me that these efforts and its resources would be better used developing a Webasm JVM implementation. Or at least kick-start the project.
We are missing a major platform in the JVM ecosystem and nobody seems to care.
I don't think graal atop wasm would be a particularly interesting use case. Wasm purports to be a portable, secure, performant application runtime. Graal purports to be a portable, secure , performant application runtime. The latter, however, has had many more engineer-hours thrown at its implementation, and is thus both more heavyweight (so it needs all the resources it can get) and more performant (so it makes sense to use it as the backing runtime).
The GC is written in Java, so if you have the translation to WASM that's covered as well.
I had thought the project had been abandoned, but I was wrong, it seems to be actively maintained and evolving on GitHub[1].
[0] http://teavm.org [1] https://github.com/konsoletyper/teavm/issues
Taking the argument to the extreme, assembly is a misfit.
It is basically made so c/cpp and other low level languages could be run inside browsers, and I don’t really see the point of it? Like, it is probably good for a video editor running inside a browser, but it will probably mostly entail all sort of mining, unnecessarily usage of cpu and the like. And it won’t magically improve performance, since at the boundary , calling javascript is really expensive, usually much more than writing the whole thing in js. Unless of course if someone does plenty of numerical computations.
Here is Flash doing the same with CrossBridge toolchain in 2011 with Unreal 3 citadel demo
https://adobe-flash.github.io/crossbridge/
https://www.youtube.com/watch?v=UQiUP2Hd60Y
Then there was PNaCl, but it wasn't good enough hence asmjs, and then WebAssembly, which is supposed to be secure.
Well,
"Usenix Security '20-Everything Old Is New Again: Binary Security of WebAssembly"
https://www.youtube.com/watch?v=glL__xjviro
TedDRA ANDF, IBM i, z/OS, CLR and BREW are all examples of bytecodes that support C and C++.
In a more ideal world, I would like to see the JVM underneath modern web browsers
As for objects, it's not clear to me how important it is to have runtime support for those.