DEV Community

[Comment from a deleted post]
Collapse
 
tux0r profile image
tux0r

Write the calculating part in C so it can be fast, write the wrapper in JS so you can use it.

Collapse
 
stereobooster profile image
stereobooster

Rust compiled to WASM?

Collapse
 
coolshaurya profile image
Shaurya

I don't understand - how will a JS library be written in C ?

Collapse
 
tux0r profile image
tux0r

You can call native code from Javascript.