Dev's offline page is fun. Can we do that with Rust and WebAssembly?
The answer is yes. Let us do it.
First, we will create a simple Rust and W...
For further actions, you may consider blocking this person and/or reporting abuse
This is awesome! I'm trying to learn WASM and having my own code translated to it is super helpful. Thank you!!!!!!
So glad it helped ๐. Thanks ๐
WASM is ASM go for it...
It is really cool to learn WASM by recreating existing web experiences in a different language and compiling. This is a great tutorial for that!
Is this a good idea for WASM in general though? The web_sys crate looks useful, but are you just jumping back and forth across the JavaScript/WASM boundary in order to achieve this, negating any performance benefits of WASM itself?
That is an awesome question.Boundary crossing is an important factor for any WASM app.
Performance wise it will be slightly slower every crossing here adds few nano seconds overhead. but browsers like Firefox is optimised well enough. You will have a problem only when you transfer huge chunk of data.
General advise will be use WASM where you need to have computation heavy operation and minimize boundary crossing
It seems that I should add "
DomTokenList
" to the feature listSoooo cool!
Thanks ๐
I was going to try and do this with Ruby and WebAssembly but gave up. So hard to get Ruby to WebAssembly.
Oh, that is interesting! What is the most painful part of it?
You have to use MRuby which is an embedded ruby that has serious limitations. The ruby-wasm gem appears to need to compile Mruby to Emscripten. Then it wants Java for some reason. When compiling obscure errors occur.
So lots of moving parts, no time to debug.
Oh,does it has any image for the final page....
I saw that-- dev.to/offline
Thanks for sharing~
Emmm,the article is great! And i have translated it into Chinese. dev.to/suhanyujie/rust-webassembly...
If you don't like this,i'll delete it follow your mind...
Thank u
Wow thats awesome ๐๐
Amazing post!
I want to deep dive into wasm myself and this gives me to push to do it :)
Yay! Go for it. WASM is AWSM.