DEV Community

Discussion on: What are some examples of less obvious web development features/technologies worth learning?

Collapse
insuusvenerati profile image
Sean

IndexDB, Web Workers, WASM

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

How far do you need to know WASM if you are using JavaScript?

Collapse
insuusvenerati profile image
Sean • Edited on

WASM is about creating bindings between one language, like Rust, and JavaScript. So if I have a function that does expensive calculations I could create it in a faster language like Rust, create a binding for it and compile it into a wasm module that gets imported into JavaScript. Then I just use the function as any other JavaScript function. So to answer your question, you don’t need to know wasm at all, you need to know a compiled language and the simple API that provides the bindings.