DEV Community

Discussion on: Alternatives to JavaScript

Collapse
 
epsi profile image
E.R. Nurwijayadi • Edited

There is another way.

  1. In frontend web browser you can use WASM
  2. While in backend CLI you can utilize native NodeJS using N-API

For example this rust code as native nodejs.

🕷 epsi.bitbucket.io/lambda/2020/12/2...

Rust as Native NodeJS using N-API

In NodeJS world. we see movement from javascript to native nodejs.

But strange that I haven't seen it in Deno.

Collapse
 
myzel394 profile image
Myzel394 • Edited

You can't replace Javascript with WASM. WASM was never intentioned to replace Javascript nor does it. WASM is only really required when you're using complex Mathematics (like when you're developing a 3d game that calculates sun reflection or doing a video cutter, etc.). WASM also cant access the dom.

Collapse
 
bello profile image
Bello Osagie

Thanks for the info.

Collapse
 
bello profile image
Bello Osagie

Thanks, it is really nice. I will try that. Lovely!!! 😊

Collapse
 
epsi profile image
E.R. Nurwijayadi

Thank youuuuuu.