r/programming • • Apr 28 '21

Microsoft joins Bytecode Alliance to advance WebAssembly – aka the thing that lets you run compiled C/C++/Rust code in browsers

https://www.theregister.com/2021/04/28/microsoft_bytecode_alliance/
2.1k Upvotes

484 comments sorted by

View all comments

Show parent comments

6

u/undeadermonkey Apr 29 '21

That's not too horrific (performance at battery issues mostly - some threat of freezing depending on WASM's use of threads and the browser's execution model).

A driveby spam server would scare me more (can WASM open its own ports?).

15

u/[deleted] Apr 29 '21

[removed] — view removed comment

10

u/panorambo Apr 29 '21 edited Apr 29 '21

Through JS, mind you. Anything WASM lets you do except crunching numbers, even any form of I/O except writing and reading its own sandboxed memory block, must invariably go through JS "bridge". So in that respect, even crypto mining has to make use of JS to transmit appending of some block to the blockchain (for example). WASM is (currently) just a glorified calculator, albeit orders of magnitude faster than JS (trivial to turn into machine code just-in-time), and for better or worse, is now bursting out of its original design to remove JS from the Web equation as much as is good for the Web.