DEV Community

Discussion on: Reverse a String with JavaScript

Collapse
 
tux0r profile image
tux0r

The memory-efficient way: Pass it to WebAssembly. (Disadvantage: Browsers still don't have <script type="application/wasm"> so it will still need to be routed through JavaScript - but one day, one day...)

Collapse
 
runosaduwa profile image
Runo-saduwa

Wow, that would be cool, I guess. Can you please explain this "web assembly?", is it a replacement for JavaScript?

Collapse
 
tux0r profile image
tux0r

Not quite yet, but it's slowly ascending. Mozilla explains it decently. Basically, C/C++/Rust/... in your browser - no DOM yet though.

Thread Thread
 
runosaduwa profile image
Runo-saduwa

Nice, I'll check it out