An Abridged Cartoon Introduction To WebAssembly

0
249
views

There’s a lot of hype about WebAssembly in JavaScript circles today. People talk about how blazingly fast it is, and how it’s going to revolutionize web development. But most conversations don’t go into the details of why it’s fast. In this article, I want to help you understand what exactly it is about WebAssembly that makes it fast.

WebAssembly or wasm is a new portable, size- and load-time-efficient format suitable for compilation to the web.

Features of WebAssembly

  • Efficient and fast
  • Safe
  • Open and debuggable
  • Part of the open web platform

JavaScript was created in 1995. It wasn’t designed to be fast, and for the first decade, it wasn’t fast.
Then the browsers started getting more competitive.
In 2008, a period that people call the performance wars began. Multiple browsers added just-in-time compilers, also called JITs. As JavaScript was running, the JIT could see patterns and make the code run faster based on those patterns.
The introduction of these JITs led to an inflection point in the performance of code running in the browser. All of the sudden, JavaScript was running 10x faster.

Read More : https://www.smashingmagazine.com/2017/05/abridged-cartoon-introduction-webassembly/

LEAVE A REPLY

Please enter your comment!
Please enter your name here