Be careful what you wish for
How do you access the Internet? I like the privacy and security.
But unfortunately, it doesn’t matter what we think. WebAssembly, an exciting new technology that allows browsers to run native underlying languages. It may be the end of privacy and security on the Internet as we know it.
What is theWebAssembly
?
WebAssembly, in short, is a runtime that allows browsers to run native code. By native, I mean writing code in low-level languages like C,C++,Rust, etc.
.Copy the code
The diagram above is a simplified version of the WebAssembly principle. The compiler inputs code in a language compatible with the underlying virtual machine and generates a binary file with the. Wasm suffix.
This file is loaded and bound to the existing JS code via the JavaScript interoperability layer. The.wASM file will then be executed by the WebAessembly runtime.
WebAssembly is now fully implemented and natively supported by all major browsers.
WebAssembly
What can be done?
WebAssembly provides excellent performance. This means that your website runs outside the browser almost as fast as regular software on your computer.
I can’t have enough intensity, how revolutionary that is. It allows browsers to run software and games that were previously unavailable due to performance issues. It will enable complex WebVR experiences. WebAssembly can make Chromebooks really useful.
How can it be used?
There are several ways to do this. They are made possible by unreadable native. Wasm files. They can still be parsed and decomcompiled, but that’s not as simple as formatting JS code.
One of the dependencies used by a website may contain a small track-tracking script that no one knows about. Both first-party browsers (Firefox) and third-party plug-ins stop running because of trajectory protection.
Second, improved performance means websites can now make better use of hardware. Cryptocurrency mining, for example, will be hard to block.
Finally, there are security issues, with such powerful features and low-level access, certain attacks (violence) will be possible. We just hope the open source community will follow the lead.
conclusion
So the Internet will certainly look different after widespread adoption of WebAssembly.
But we haven’t seen through whether it’s a benefit or a disaster. Thanks for reading, and let me know what you know about WebAssembly in the comments!
reference
WebAssembly Concepts by MDN
The Dark Side of WebAssemby by Virus Bulletin
Blazor
docs.assemblyscript.org/