C++ vs Rust: which is faster? @fasterthanlime
C++ vs Rust: which is faster?  @fasterthanlime
Uploaded January 2023 | Updated September 2026, 3 weeks ago
Follow me on Mastodon: hachyderm.io/@fasterthanlime
Support me on Patreon or GitHub: fasterthanli.me/donate

00:00 What is Advent of Code?
00:48 Python vs Rust
01:19 Interpreters vs JITs
03:03 Buffered I/O
04:27 Day 18 Benchmarks
05:00 How does the code feel?
06:49 Day 19 Benchmarks
07:17 Profiling, disassembling & decompiling
08:14 x86 assembly crash course
12:44 Suddenly SIMD
15:52 Day 19 mystery solved
16:40 Register allocation is hard
18:08 Switching calling conventions
18:31 2x3 != 3x2
19:12 Thanks & sponsored segment

Rust & C++ sources for day 19: gist.github.com/fasterthanlime/b2e261c3d1492171d6a46edf620a0728

Speculation in JavaScriptCore: webkit.org/blog/10308/speculation-in-javascriptcore
C++ vs Rust: which is faster?Why does this Rust program leak memory?The thing inside the thingGetting good at SNES games through DLL injectionForcing rustfmt to break codeThe virtue of unsynnHow does the detour crate work?Catching up with async RustLets make an htop-like in your browser (with Rust)AoC Day 19, Rewrite it in Rust EditionI ported h2spec to Rust (also: codegen!)strace feels like magic — let’s fix that (with Rust)
fasterthanlime |

C++ vs Rust: which is faster?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER