Navigate Select ESC Close

Why is the Rust Compiler So SLOW?

2025-07-09 Science & Technology
98.2k
2.0k
535
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Twitch https://twitch.tv/ThePrimeagen Discord https://discord.gg/ThePrimeagen Become Backend Dev: https://boot.dev/prime (plus i make courses for them) This is also the best way to support me is to support yourself becoming a better backend engineer. ### LINKS -- https://sharnoff.io/blog/why-rust-compiler-slow By: Em Sharnoff Great News? Want me to research and create video????: https://www.reddit.com/r/ThePrimeagen Kinesis Advantage 360: https://bit.ly/Prime-Kinesis

Top Comments (10)

@tapwater7203 2025-07-09

because its busy thinking about how its better than c

670 18 replies
@shellsterdude 2025-07-09

Saying "Python is not batteries included" is such a crazy thing. Yes, you might want a bunch of dependencies for stuff, but Python absolutely comes with a ton of batteries. In your example of Rust, literally everything you mentioned needing dependencies for is available in Python without a single dependency: JSON encode/decode, HTTP Server (wouldn't use it over third-party options, but it is there), async, multiprocessing, and threads are all build in as are futures if you want them. There is built in templating and even HTML dom parsing.

244 22 replies
@babstra55 2025-07-09

this whole thing is like designed to aggravate casey muratori. :D

223 2 replies
@GregHib 2025-07-09

I was complaining about Odin taking 0.8s to compile and 1s to link, all of this and it's still 40s?!?

134 6 replies
@jeffreyhymas6803 2025-07-09

Prime listing off all the crap you need to make a webserver in Rust is why the language is actually popular. People love to go on and on about memory safety, and there is a subset who really cares about that, but that wouldn't have caused the explosion in popularity. Being able to easily duct tape a thousand dependencies together is what really rocketed it into the mainstream. Made JavaScript and Python devs feel right at home.

106 6 replies
@keyboard_g 2025-07-09

TLDR: Sometimes it just be that way.

99 2 replies
@yeah1234-h9g 2025-07-16

Finally a good reason to use Rust This post is sponsored by procrastination while compiling gang!

8
@TheMachina42 2025-07-21

Meanwhile, Zig's compiler compiles half a million line in 10s on my machine, and with incremental it's between 30ms and 4s. It's wild, I think I never wrote large enough project in Rust to feel that, but man, 50s gives me C++/CMAKE ptsd vibe.

4
@riveady 2025-07-11

Speaking of rich standard libraries, PHP is definitely batteries included

4
@znewt99 2025-07-09

5:06 Appreciate the tokyo yell with the throat/voice injury

3

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot