What is WebAssembly?

What is WebAssembly?

  1. JavaScript improvements : Deploy important work in wasm and import it as a standard JavaScript module.
  2. A new language: Code WebAssembly defines an AST (abstract syntax tree - Abstract Syntax Tree) expressed in binary form. You can write author and debug (debug) in readable text format.
  3. Improved browser: Browsers will understand binary format, meaning that it is possible to compile compressed binary packages smaller than the JavaScript segment used today. The smaller payload will be delivered faster. Depending on the job   Optimize compile time, WebAssembly packages can run faster than JavaScript.
  4. A Compile Target: A way for other languages ​​to get the best binary support on the entire web platform.

What is WebAssembly? Picture 1

What does WebAssembly mean for JavaScript?

We need WebAssembly because it's as flexible as JavaScript. Currently, it is difficult to express many things in JavaScript and the simplified features can create complexity for a language that confuses many users.

WebAssembly provides access to a set of low-level basic blocks that people can use to build anything imaginable. So how is it different from JavaScript? The keyword here is low, it defines primitive database types, typefaces, traffic control, etc. These are simple, non-systematic databases. complex objects (prototypal or other systems), no garbage collector is automatically integrated.

So what is the WebAssembly configuration ?

WebAssembly defines abstract syntax tree stored in binary form. The binary format is great because it means we can create smaller application packages. Probably many people will wonder how to debug a binary language format.

Fortunately, the developers that are creating have a debugger that will definitely appear in the browser, the abstract syntax tree will be shown in a friendly (moderate) text format.

What is the WebAssembly used for?

WebAssembly easily expresses things like thread and SIMD (Single Instruction, Multiple Data), you can queue multiple blocks of data side by side and call a single command to activate at the same time. That means it is possible to receive parallel processing paths for real-time video stream effects.

  1. 4 ways to write multi-threaded code in Java

With WebAssembly, developers can forget about object systems, garbage collectors and all other things, just queue up some raw bits in small rows and process them as quickly as possible.

Games, VR and virtual reality enhancements are clear examples. Most current WebAssembly demos use Unity or Unreal Engine, both support asm.js compilation. Music production applications like Ableton Live and video production applications like Adobe Premier Pro are still a bit awkward when switching to the web; and there are still many issues to be addressed, such as ensuring better time for data-intensive real-time applications.

WebAssembly brings diverse languages into Web platforms

WebAssembly offers what most developers JS must agree that we don't need in JavaScript. They need them not for JavaScript code but to support compilation from other languages ​​using them.

  1. Security in web language

WebAssembly provides an alternative compile target, designed specifically for that purpose. Now, it's easier to export code that relies heavily on features like shared memory streams. The process of writing a compiler for WebAssembly is less complicated than writing a compiler for JavaScript, simply because there is a better map for the target AST.

It's great to know that all the old languages ​​we know and love will run on the web platform right now.

See also: What is Java? Why choose Java?

4 ★ | 1 Vote

May be interested

  • How to play Pokemon GO in Landscape Mode on the iPhoneHow to play Pokemon GO in Landscape Mode on the iPhone
    although players can play pokemon go in portrait mode. however, if you want to watch and play games on a large and eye-catching screen, players can switch to playing games in landscape mode.
  • The secret to controlling Pokemon Go employees at workThe secret to controlling Pokemon Go employees at work
    these days, hr managers are faced with an extremely painful problem that is the status of priority employees playing pokemon go more than work. this has caused a small impact on productivity and efficiency.
  • Check out the 'buffalo' Pokémon in Pokémon GoCheck out the 'buffalo' Pokémon in Pokémon Go
    each type of pokemon has hp, cp, ability to attack and endure differently. based on these indicators, players can determine as well as choosing the most powerful pokemon for their offensive tactics.
  • Sitting home can also locate Pokemon around, do you believe it?Sitting home can also locate Pokemon around, do you believe it?
    the tightening of the niantic developers' rules to prevent players from abusing the support tools also brings annoyance, such as those who have no conditions to move much, go away, it is hard to know. get the location of the pokemon around the area they live in
  • 5 undeniable benefits when playing Pokemon Go5 undeniable benefits when playing Pokemon Go
    get to know many new people, breathe fresh air, relieve stress, increase concentration thanks to going out for a walk .... are compelling reasons to force you to try pokemon go now .
  • Want to earn the fastest Pokécoins in Pokémon Go? So don't miss this article!Want to earn the fastest Pokécoins in Pokémon Go?  So don't miss this article!
    pokécoins in pokémon go play the role of buying items in the store. the more coins you earn, the more likely you are to buy more items. to earn pokécoins, players will have to complete certain tasks or buy real money.
  • Pokémon systems when fighting in Pokémon GoPokémon systems when fighting in Pokémon Go
    each pokémon system in pokémon go has different strengths, along with a specific weakness. this type of pokémon will have the power to attack the other pokémon, but can defeat the other pokémon. if you know the characteristics of each type, it will be easier to choose which pokémon to battle.
  • The terms you need to know when playing Pokémon GoThe terms you need to know when playing Pokémon Go
    pokémon go is the most prominent name in recent days. this game of capturing and training virtual animals has created a relatively new way of playing, as players have to constantly move to catch pokémon. during the process of joining pokémon go, you will encounter and use a lot of important terms. so what do they mean?
  • How to play Pokemon GO on Windows computersHow to play Pokemon GO on Windows computers
    recently, pokemon go has become a popular game, attracting thousands of gamers around the world. in previous posts network administrator has guided you on how to play pokemon go on android devices and ios devices. in the article below, network administrator will guide you how to play pokemon go on windows computers using bluestacks emulator software.
  • How to become a good Pokémon Go hunter?How to become a good Pokémon Go hunter?
    with a new way of playing, pokémon go has created a new phenomenon in the game village around the world. players will have to go around and find pokémon for themselves. so how to quickly catch pokémon and in large numbers?