Getting Started with WebAssembly (WASM) with Rust Lang

preview_player
Показать описание
In this video we create, build and execute some webassembly using Rust. We look at:

- how to scaffold your webassembly project in Rust
- how to build your webassembly project in Rust (including apple m1)
- how rust generated wasm compares to hand-coded wasm
- reverse engineering your wasm to webassembly text format (wat)

00:00 - intro
01:08 - installing wasm-pack
02:50 - creating a rust library for your wasm module with cargo
03:47 - exploring the scaffolded library in vscode
07:18 - writing some rust webassembky code in vscode
12:28 - building rustlang wasm with apple m1 silicon
14:13 - exploring the generated wasm
15:59 - reverse engineering wasm to wat
17:49 - optimizing the generated release wasm
21:58 - extending your webassembly in rust
25:40 - executing your rust generated wasm in nodejs
28:42 - handcoding some webassembly
30:00 - comparing rust generated and handcoded webassembly
31:50 - conclusion
Рекомендации по теме
Комментарии
Автор

hey Chris, Super amazing. Nice to see you on YouTube

rehansiddiqui
Автор

thanks for the video, the very small tangents you go on are really helpful for newbies to get a background on additional info and possible pathways

flopasen
Автор

This is a great video! Please do more Rust Videos in the future.

officialp
Автор

This is great. Looks that wasm powered modules will help u to get out of that node_modules hell.

MrEnsiferum
Автор

I believe you made a mistake when running the last optimized build. You ran cargo build rather than wasm-pack build. I think that’s why the size didn’t change in the last one.

Great video! I learned a lot!

DaveSpadea
Автор

Does Rust WAsm supports multithreading with shared memory and atomic operations to write mutexes ?

realfootball
Автор

Hey Chris, it's obvious you're also an artist with the medium, and the colouring is interesting to the eye! but don't you need something in the way of a fill light (i think that's what it's called) there's no separation between you and the background, and the right half of your face is almost completely invisible!

Also, is that a Sennheiser MD 421? No point having a mic of such value if your room sounds like shit. Acoustic treatment doesn't have to cost a lot if you're smart with the placement.

Cheers for the videos btw, great stuff

aperson
Автор

Hi Chris, It's a great video! I use WASM in golang that it slowy then Javascript 10x, how about Rust WASM in browser?

ymblender