Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Why WebAssembly?

Why WebAssembly?

Diego Nascimento

September 28, 2017
Tweet

More Decks by Diego Nascimento

Other Decks in Programming

Transcript

  1. whoami Diego Nascimento Aviation Geek Front-end Intern @ Liferay inc.

    Computer Enthusiast Litrão Lover Computer Engineering Student @ Poli/UPE @diegonvs Talvez o maior fã de raça negra que você irá conhecer ou @diegonvs97
  2. Downloading — it is more compact, so can be faster

    to download Parsing — decoding WebAssembly is faster than parsing JavaScript Compiling & optimizing — it takes less time to compile and optimize because more optimizations have been done before the file is pushed to the server, and the code does need to be compiled multiple times for dynamic types Re-optimizing — code doesn’t need to be re-optimized because there’s enough information for the compiler to get it right on the first try Execution — execution can be faster because WebAssembly instructions are optimized for how the machine thinks Garbage Collection — garbage collection is not directly supported by WebAssembly currently, so there is no time spent on GC