Remix.run Logo
wiradikusuma 8 days ago

Wake me up when you can unikernel-ize a Java framework like Quarkus or Spring.

eyberg 8 days ago | parent | next [-]

https://github.com/nanovms/ops-examples/tree/master/java/04-...

rwmj 8 days ago | parent | prev [-]

Running Java applications was the original mission of OSv (https://osv.io/). Reading the website now they seem to have pivoted to running unmodified Linux applications.

eyberg 8 days ago | parent | next [-]

The rabbit hole goes even deeper. Georgios was thinking about this with Jikes even earlier: https://gousios.org/pub/gousios-mscthesis.pdf

wiradikusuma 8 days ago | parent | prev [-]

Does it mean it can run Java compiled to Native Image?

eyberg 8 days ago | parent | next [-]

It doesn't necessarily mean that but yes you most definitely can run native images - another example showing that: https://github.com/nanovms/ops-examples/tree/master/java/07-... . Both of these pair very well with unikernels. Especially quarkus has excellent boot time and low mem usage.

DmitryOlshansky 8 days ago | parent | prev [-]

Why not full VM with JIT? Seems much easier and more compatible with apps out there.

eyberg 5 days ago | parent | next [-]

You can also run the full JVM and in fact I'd imagine that's how most of our JVM users actually use it today.

alex_duf 5 days ago | parent | prev [-]

Because the JVM is fairly dynamic so it becomes hard to know which part to prune