Rust & Wasm
230K views · Sep 21, 2022 · Education
Comments · 557
@NoBoilerplate · 4 years ago (edited) · pinned
ERRATA<br><br>I was not clear that wasm is only slower than JS in DOM manipulation. If you write pure wasm and webgl, you can smoke JS.
666
@yondaime500 · 4 years ago
You certainly have a way of making Rust sound like it came to us as a gift from a Kardashev II civilization.
838
@Zedoy · 4 years ago
Me: Manipulates DOM directly with JS.<br>No_Boilerplate: No one manipulates DOM directly.<br>Me: 😐.
366
@tylerbloom4830 · 4 years ago (edited)
In my current personal project, I'm writing a backend and several clients all in Rust, including a frontend using Yew. There is one boon that WASM gives you that you didn't touch on. You can directly share libraries between your backend and frontend. No reimplementation. No bugs from translating between languages. You can ensure that the behavior of your data structures is identical between every piece of the project. Fix a bug once, and you're done!!<br><br>The message passing pattern showcased is also a fantastic way to handle client-server communication and syncing of shared state.
95
@eboatwright_ · 4 years ago
I completely agree! I use the game framework Macroquad for little games that I make, and it has support for WASM! No lag, no hassle, just "cargo build --release --target=wasm32-unknown-unknown"!
92
@Kfoo-dj4md · 4 years ago
Tris makes me feel like I know everything CS related just by knowing rust 😂<br><br>Rust is my favorite language 🦀
56
@ronwabwire · 3 years ago (edited)
Rust is so blazingly fast, I downloaded and installed it 5 times thinking something was wrong, literally micro seconds installation of the compiler. It was only after running rustc that I found out that the compiler installed already!
12
@sinterkaastosti988 · 4 years ago
my girlfriend cant compare to this
10
@AndrewBrownK · 4 years ago (edited)
I’m finally getting to the point I grok the lifetime errors the compiler is complaining about at a glance, and can instantly think where I messed up and where I need to go fix. It used to be that algebraic data types were my gold standard to consider a modern language usable or not, but now I can’t imagine programming without a borrow checker. <br><br>Literally, Ive been working on this personal project (a distributed event framework) for months with type level programming, and at roughly 3500 lines of code before a minimum executable demo, it executed not just successfully but correctly too. Literally first try. I was in shock. I was fully expecting to debug for hours or days. I’m in love with this language.
19
@remiwi2399 · 4 years ago
I'm learning React right now so I can get a job. If only I could use rust for this! Will definitely look into it more if I ever make my own personal projects.
54
@Hobbitstomper · 4 years ago (edited)
The biggest downside is still that Wasm can't interact with the DOM of a website directly and relies on JavaScript. Even if you write everything in Rust to interact with the DOM, Wasm translates it into JS, which then interacts with the DOM. This eventually results in a bottleneck. The guys over at Wasm are saying they're working on a way around this. I'm sure once they have a solution, browsers will need to add support for that. Once this is solved, that's when things will get interesting. Imagine websites running on Rust/Wasm with direct access to the DOM api without the need for JavaScript.
16
@mikopiko · 4 years ago
Man, your content is so minimal, pure & easy to understand.<br>I am addicted to your channel even though I don't write Rust.
53
Up next

Rust makes cents
No Boilerplate · 131K views

Why Everyone's Switching to Rust (And Why You Shouldn't)
ForrestKnight · 552K views

The Truth about Rust/WebAssembly Performance
Greg Johnston · 216K views

Async Rust explained in 20 minutes
Let's Get Rusty · 81K views

I Was a Tech Worker for 20 Years. Then AI Happened.
Grasshopper · 52K views

DHH has gone completely off the rails...
Fireship · 1.6M views

WASM 3.0: garbage collection, threads, and more | Andreas Rossberg | PodRocket
LogRocket · 4K views

Why I'm so bullish about Rust in 2026
Dreams of Code · 126K views

WebAssembly might actually save web dev...
Awesome · 103K views

This speech by Kerkeling leaves the AfD gasping for air
HeyWolfi · 40K views

Rust on the web is starting to look quite good.
Dreams of Code · 110K views

Why WebAssembly Can't Win
Theo - t3․gg · 161K views

I'm done coding with AI
Brett Codes · 1M views

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025
Better Software Conference · 902K views

10 Underrated Rust Features & Patterns
Code to the Moon · 35K views

Why Rust is different, with Alice Ryhl
The Pragmatic Engineer · 226K views

Reliability Lessons From SQLite - Richard Hipp | SSW 2026
Software Should Work · 140K views

Rust is not a faster horse
No Boilerplate · 359K views

Learn Axum in 2026: Rust REST API for Beginners
Codynn · 25K views

The Sun Is Weirder Than You Think
Cleo Abram · 1.3M views

The Future of Rust Web Applications - Greg Johnston
Rust Nation UK · 101K views

Building My Dream Webapp... In Rust
Code to the Moon · 30K views

I spent six months rewriting everything in Rust
chris biscardi · 490K views

An introduction to WebAssembly
Coding Tech · 203K views

One Formula That Demystifies 3D Graphics
Tsoding · 1M views

Rust's Witchcraft
No Boilerplate · 230K views