← Back to context

Comment by Wazako

9 months ago

Use Rust if crashes or memory bugs are not an option. For everything wasm, Rust is much more pleasant with good libraries than the competition.

Wasm seems more convincing to me than the magical 'no crashes or bugs' promise.

Here's my wasm use case: tell me how I can use Rust.

I have a command line tool written in C that ..say.. takes strings and outputs strings.

How would I go about making a usable REPL out of this in Rust and wasm without rewriting the tool?

  • But when you look at the disaster that was c++ for cloudflare, and the switch to rust.

    This is precisely the argument given against rust for video games: too much typing induced by memory safe, which is too restrictive.

    Is there any use if your c code works, the advantage of rust over wasm is the easy-to-use packages (which is a pain in c++), and the ease with which you can make a wasm project with wasm-pack that generates the wasm, js and ts interface.

    There really are a lot of libraries that support wasm, it's even a problematic point raised in the article on bevy, with wasm support (so webgl) limiting the api.