| ▲ | geokon 3 days ago | |
Wouldn't it make more sense to run/emulate JVM bytecode on WASM instead of compiling Java to WASM? It seems like that'd be a much easier task. From a high level WASM and JVM byte code seems incredibly similar (though I'm sure the containerizing and IO are radically different). I never really understood why WASM wasn't some JVM subset/extension. Not an expert at all in this, so genuinely curious to hear from someone who understands this space well | ||
| ▲ | DarkNova6 3 days ago | parent [-] | |
From my understanding, this works for C# but is an ill-fit for Java. Java has simple bytecode with a powerful runtime to ensure all kinds of guarantees. C# focuses on compile-time checks with a more complex bytecode representation. So instead you got TeaVM which is essentially a whole JVM in WASM. | ||