|
|
|
|
|
by fooker
782 days ago
|
|
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? |
|
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.