News for hackers. Stuff that matters.
Re:WebAssembly: Docker Without Containers by lucideer on Wednesday December 21, 2022 @07:03AM (#34079553)
> JVM+JAR existed

JVM can only run apps written for it: Docker & WASM don't have that limitation.

> it can run non-WASM and non-JVM apps like PostgreSQL, etc...

but WASM can run Postgres

Re:WebAssembly: Docker Without Containers by pulse7 on Wednesday December 21, 2022 @07:10AM (#34079603)
With GraalVM you can run any LLVM binary on JVM...
Re:WebAssembly: Docker Without Containers by lucideer on Wednesday December 21, 2022 @07:26AM (#34079764)
That is true, graal's certainly more readily comparable.
Re:WebAssembly: Docker Without Containers by ZitchDog on Wednesday December 21, 2022 @07:05AM (#34079574)
Source?
Re:WebAssembly: Docker Without Containers by angelmm on Wednesday December 21, 2022 @07:10AM (#34079607)
Re:WebAssembly: Docker Without Containers by TobTobXX on Wednesday December 21, 2022 @07:11AM (#34079623)
Re:WebAssembly: Docker Without Containers by lucideer on Wednesday December 21, 2022 @07:24AM (#34079756)
as well as the sibling linked repo there's also https://www.crunchydata.com/developers/playground
Re:WebAssembly: Docker Without Containers by pjmlp on Wednesday December 21, 2022 @08:10AM (#34080235)
C and C++ compiler for the JVM from 2006, http://nestedvm.ibex.org/
Re:WebAssembly: Docker Without Containers by ilyt on Wednesday December 21, 2022 @08:14AM (#34080281)
> JVM can only run apps written for it: Docker & WASM don't have that limitation.

Of course it does; WASM is just a format, still need to create the right functions that the runtime will call to do the useful stiff

Re:WebAssembly: Docker Without Containers by pulse7 on Wednesday December 21, 2022 @08:45AM (#34080639)
With GraalVM you can run WASM on JVM...
Re:WebAssembly: Docker Without Containers by cle on Wednesday December 21, 2022 @08:53AM (#34080731)
> JVM can only run apps written for it: Docker & WASM don't have that limitation.

Of course they do. You can only run apps on WASM that have been compiled to WASM bytecode. You can only run apps on Docker that have been compiled to whatever bytecode is supported by the container runtime (which can be x86, ARM, x64, etc.).

> but WASM can run Postgres

WASM can run WASM-compiled Postgres. It has to be specifically compiled for WASM, which also means it generally needs to be ported to WASM first (as WASM runtimes have a lot of limitations that arbitrary C programs probably don't conform to).

Re:WebAssembly: Docker Without Containers by pbecotte on Wednesday December 21, 2022 @12:44PM (#34083863)
JVM can run apps _compiled_ for it. WASM has the _exact same_ limitation.

Someone put in the effort to get Postgres to compile for WASM. That's great :) Maybe someday every application will compile to WASM as the preferred choice over the linux interface.

Compiling apps for different targets is VERY MUCH not a simple, low effort task though. Something like a database that must have an incredible number of optimizations in the way it makes syscalls, will have to a full stream of work to keep each target running well.

It can be done. But if "one of these thigns is not like the other" with your three things- Docker is the odd duck out.