Re:Is WebAssembly magic performance pixie dust?
by dassurma on Wednesday April 14, 2021 @09:46AM
(#26806978)
Idk man. webassembly.org — the site authored by the inventors — literally starts with “WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine.”
Re:Is WebAssembly magic performance pixie dust?
by jariel on Wednesday April 14, 2021 @12:36PM
(#26809468)
My answer is correct.
Yes of course WASM is a VM of some kind, that should be obvious enough i.e. people are not running machine code in WASM.
My response indicated that if you want to run JS on WASM you have to build another VM on top of WASM (which you indicated is already a VM, sure).
To do JS in WASM you'd have to build something like V8 (a VM) on top of WASM.
Re:Is WebAssembly magic performance pixie dust?
by pjmlp on Wednesday April 14, 2021 @03:33PM
(#26811939)
Actually, they might. It just a matter of creating a FPGA implementation.
Re:Is WebAssembly magic performance pixie dust?
by crazypython on Wednesday April 14, 2021 @08:12AM
(#26805992)
It is a VM. Most VMs use High-Level Intermediate Representation (HIR or bytecode). WebAssembly uses a Low-Level Intermediate Representation. (LIR) A LIR is not an assembly.
To do TS on JS you'd have to build a VM on top of WA.
And that would probably be pointless of course.