4 ms·
Will WASM finally be the write once run everywhere system we've been promised for the past few decades? I can imagine every language compiling to the common fo
by satvikpendem 4y ago
Will WASM finally be the write once run everywhere system we've been promised for the past few decades?
I can imagine every language compiling to the common format that is WASM, so you can mix and match libraries from other languages as you please, as well as chip manufacturers adding hardware accelerated WASM processing units if it gets popular enough.
This really is the birth and death of Javascript.
- marcosdumay 4y agoNo. WASM will have the same problem that every "run everywhere" system ever had: what makes software hard to port is not the ability to execute it, it's the environment differences. But it will be a powerful low trust portable VM, like none mainstream today. Odds are it kills Lua. (And yeah, it removes the Javascript monopoly on the browser. At this point, it can't be killed, but it will shrink.)
- satvikpendem 4y agoPerhaps we can compile a Docker image into WASM too, we've seen Postgres recently. Or do you mean something else?
- chubot 4y agoLua is more like a C library and less like a VM. (Similarly, LLVM isn't a VM, which is a common misunderstanding, given the name) As far as I know, people don't ship code to remote Lua VMs and execute it. There is no compatibility guarantee across versions, and there are nontrivial compile-time options (like what the number type is). That doesn't mean Lua isn't useful; it's just not designed for the same things that WASM is.
- marcosdumay 4y ago> As far as I know, people don't ship code to remote Lua VMs and execute it. So, you never used some software scripted with Lua? Or just never shared scripts? Lua does have other uses, but the vast majority of it is as a low trust VM.
- bhelx 4y ago> Will WASM finally be the write once run everywhere system we've been promised for the past few decades? I think it has a good shot! If I'm hedging my bets though I'd say there are some things it will just never be good at. That's okay though it's not a zero sum game. > This really is the birth and death of Javascript. One thing I will not bet on is the death of javascript!
- satvikpendem 4y ago> I'd say there are some things it will just never be good at. I'm curious, what would those be? > One thing I will not bet on is the death of javascript! Yep, I'm more so referring to the talk by Gary Bernhardt foretelling of a WASM-like platform emerging [0]. [0] https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript https://www.destroyallsoftware.com/talks/the-birth-and-death...