logoalt Hacker News

Endive: A JVM native WebAssembly runtime

102 pointsby theanonymousoneyesterday at 4:40 PM31 commentsview on HN

Comments

apignottiyesterday at 8:30 PM

Shameless plug: we solved the opposite problem, running any Java application in the browser via WebAssembly: https://labs.leaningtech.com/blog/cheerpj-4.3

And yes, it does run Minecraft as well :-) https://browsercraft.cheerpj.com/

show 2 replies
syrusakbaryyesterday at 8:39 PM

This is a fork of Chicory, a bit more context of the relationship between the projects can be found here:

https://github.com/dylibso/chicory/issues/1296

show 1 reply
exabrialyesterday at 9:45 PM

Projects like this would be significantly funner and easier to make in Jdk25+(well technically 24+) because of the new Java classfile/bytecode API. It looks like Endive uses OW2 ASM, probably because this supports back to Jdk11. The new jdk API has a minimum target of Jdk17. OW2 ASM is significantly harder to use IMHO though.

What got me into this is I just finished a major release of Petrify (https://github.com/exabrial/petrify) that compiles ML Models to JVM Bytecode. It requires Jdk25 to do the compilation, but the compiled models can run on Jdk17+.

I'm looking for more side projects to use the classfile API on.

show 2 replies
hectamanyesterday at 9:12 PM

On the CNCF wasmCloud Community call this week we played with this: - a demonstration of Endive - implemented CNCF wasmCloud host - Integrated into Vert.x as an example

And discussed the roadmap.

Blogpost and video here: https://blog.cosmonic.com/engineering/2026-05-26-diving-into...

krautsauertoday at 12:27 PM

I was trying to write something like this in rust at some point, just for the joke that you can compile that rust to wasm, and then it can compile itself to JVM assembly. The complexity of it turned out to be quite a bit too high for a joke only.

phickeyyesterday at 7:46 PM

Lots of context for this project on the Bytecode Alliance blog: https://bytecodealliance.org/articles/endive-and-the-next-ch...

show 1 reply
spankaleeyesterday at 8:32 PM

It will be really great if this becomes a second popular runtime with both GC and WASI component model support. Wasmtime being the only runtime with that combo is a bit concerning. Node supporting the component model will help a lot too.

show 1 reply
pjmlpyesterday at 7:29 PM

I guess we can come full circle and eventualy port it to Android Java.

show 1 reply
GoblinSlayertoday at 7:23 AM

Why not resurrect applets? We had this webasm thing 30 years ago.

show 1 reply
zcw100yesterday at 8:14 PM

Is this being handed over to the Bytecode Alliance or is this a hard fork and will diverge from Chicory? It isn't clear from the announcement but I suspect the former.

MattCruikshankyesterday at 7:40 PM

If you haven't seen The Birth & Death of JavaScript, it's well worth a watch:

https://www.destroyallsoftware.com/talks/the-birth-and-death...

tegmentumtoday at 1:07 AM

Another Shameless plug: A common interface for webassembly engines, including Chicory, in Java https://github.com/tegmentum/webassembly4j

show 1 reply
outadocyesterday at 9:32 PM

Finally we can run Kotlin/WASM on desktop! /s

pseudopoloustoday at 7:10 AM

[dead]