3 ms·
> Namely, it's [javascript] been adopted as a way for a network server to send a program to your machine without your even noticing, so that this program, writt
by htag 4y ago
> Namely, it's [javascript] been adopted as a way for a network server to send a program to your machine without your even noticing, so that this program, written by you don't know who, will run on your computer and do you don't know what.
Is there any practical difference between running obfuscated Javascript or compiled WebAassembly and running an closed source binary blob?
- 63 4y agoSandboxing and a limited api. As much as we love to hate on JavaScript for forcing the will of the company on the user, there are a lot of things you intentionally cannot do with it. Even something as simple as playing a sound without user interaction.
- zzo38computer 4y agoI think WebAssembly requires explicitly linking which functions you will use, and does not have as complicated objects as JavaScript, so handling sandboxing will be simpler. It also is presumably might be able run more efficiently than a JavaScript code. (I think WebAssembly has some problems too, but there are some advantages.)