DEV Community

loading...

Discussion on: TypeScript is slow. What can we do about it?

Collapse
sharpninja profile image
The Sharp Ninja

WASM still is a scripting language that is running in the JavaScript engine of the browser. The advantage of WASM is being precompiled to tokens (in a binary format) that eliminates a lot of parsing that is required with JavaScript.

Thread Thread
joelbonetr profile image
JoelBonetR

And what's the advantages of that workaround while on production?
I alrrady minify, obfuscate and so my JS when transpiled.

Thread Thread
sharpninja profile image
The Sharp Ninja

Even transpiled JS in its rawest form has to be read, parsed and tokenized before being executed. WASM has all of these steps completed ahead of time.

joelbonetr profile image
JoelBonetR

Damn I just realized that I didn't catch the WASM concept as Web Assembly 😂😂😂 thank it was some other new tool that transpilates into js