Re:WASM Is the New CGI
by pjmlp on Thursday October 10, 2024 @06:17AM
(#41797360)
WasmGC is there no matter what, unless we are talking about an incomplete implementation, also plenty of linear memory based bytecodes since 1958.
[ Parent
| on HN ]
WasmGC is a feature you can opt in to, rather than a core feature of the platform. It's more of an enabler for languages that expect a GC from their host platform (for things like Dart and Kotlin). Inversely, other forms of bytecode might have linear memory, but the JVM isn't one of those.
For the purposes of OP's question, the memory model difference is one of the key reasons why you might want to use wasm instead of a java applet.
JVM is one bytecode among many since 1958, no need to keep bashing against it as way to champion WASM.
Opt-in or not, it is there on the runtime.