6 ms·
I really wish WebAssembly did not use the word "Assembly". It doesn't really resemble any actual assembly language. And if you look at the comments in this thre
by blaisio 9y ago
I really wish WebAssembly did not use the word "Assembly". It doesn't really resemble any actual assembly language. And if you look at the comments in this thread, for example, a lot of people think it's letting you have something like arbitrary machine code.
- tyingq 9y agoEspecially with upcoming features like GC, threads, exceptions, polymorphic inline cache, and more[1]. Looks somewhere in between ASM and something like bytecode for a VM. [1]http://webassembly.org/docs/future-features/ http://webassembly.org/docs/future-features/
- littlestymaar 9y agoWell, ASM is a bytecode for a VM too … CPU are really complex theses days and you definetly don't run your asm on a dumb piece of silicon, as the phrase “bare metal” seams to imply. And, as a reminder, there's often bugs in that VM. Meltdown was one of them, but there's tons of them.
- pjmlp 9y agoTo add to that, that it was always how most CPUs were developed. Pure RISC CPUs were the outliers, but coupling RISC ideas with micro-code turned out to win the match. Even modern ARM versions use micro-code on their CPUs.
- tyingq 9y agoI see your point, but threading, PIC, exceptions, DOM access, etc, are a level above ASM.
- teabee89 9y agoI really wish WebAssembly didn’t use the word “Web”. Its best usecase is for the server. It just happens to also be great for challenging JavaScript in the browser.
- white-flame 9y agoIt doesn't challenge JS in the browser, it augments it. Though I guess you could say it challenges stopgap measures like asm.js.
- SiVal 9y agoWhy do you say its "best" usecase is for the server? I'm actually asking, not disputing, but I'm asking because it seems the big selling point of WASM, running new types of code that you couldn't run before, was never a problem on the server, where you can run whatever you like. So, I'm assuming you have something else in mind, and I'm wondering what it is.
- markdog12 9y agoFrom one of the guys who work on WebAssembly: "WebAssembly: neither Web nor Assembly" https://twitter.com/jfbastien/status/880831562207473664 https://twitter.com/jfbastien/status/880831562207473664