▲ | berkes 4 months ago | |||||||||||||||||||||||||||||||||||||||||||
Wasn't this the idea of the JVM? | ||||||||||||||||||||||||||||||||||||||||||||
▲ | hueho 4 months ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
Java bytecode was originally never intended to be used with anything other than Java - unlike WASM it's very much designed to describe programs using virtual dispatch and automatic memory management. Sun eventually added stuff like invokedynamic to make it easier to implement dynamic languages (at the time, stuff like Ruby and Python), but it was always a bit of round peg in square hole. By comparison, WASM is really more like traditional assembly, only running inside a sandbox. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
▲ | 90s_dev 4 months ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
I think so, but that was the 90s where we needed a lot more hindsight to get it right. Plus that was mostly just Sun, right? WASM is backed by all browsers and it looks like MS might be looking at bridging it with its own kernel or something? | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
▲ | foldr 4 months ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
And of course the ill-fated Parrot VM associated with the Perl 6 project. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
▲ | taf2 4 months ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
It’s not a bad idea. Lot of the same people who worked on JVM were around while the asm - wasm ideas emerged |