Loading video...

Video Failed to Load

Go Home

Linus Torvalds says that C is king for OS development due to its efficient hardware interaction and the ability to predict the assembly language output of C code.

3,010,229 views • 1 year ago •via X (Twitter)

14 Comments

Chris Hockenbrocht's profile picture
Chris Hockenbrocht1 year ago

Maybe... like 25 years ago. Optimizations make this nearly impossible. However definitely still possible on ARM thumb. Have extensive decomp experience. The most complicated thing there is some unrolling.

Rainmaker's profile picture
Rainmaker2 years ago

Here I share an XGBoost model that delivers a 25% CAGR with minimal drawdown on Visa stock. In this free Substack post I share code and commentary for a powerful Machine Learning strategy that delivers powerful returns.

Kai Wulf's profile picture
Kai Wulf1 year ago

I agree C is much closer to the hardware than even Rust. I find attempts at “replacing” C can’t resist adding at least a small layer of abstraction more than what C has. Which kind of defeats the point of a C “replacement”,

logic anarchy's profile picture
logic anarchy1 year ago

Exactly, that's also the reason why I can't move away from C. I love Assembler!

Stefan's profile picture
Stefan1 year ago

Maybe with optimizations turned off. But generally no

neptune-v's profile picture
neptune-v1 year ago

No he is pretty much saying “I am a computer and I am also a compiler” 😂

Daniel's profile picture
Daniel1 year ago

From what I recall, Linus built Linux because back in the day, UNIX was the Windows of today, only people couldn't afford it, and I'm pretty sure Linus hated that and therefore built his own OS from scratch. Absolute BOSS!

Nordgaren's profile picture
Nordgaren1 year ago

And that's why Rust is great for malware. Because of how unpredictable the Rust compiler is!

kurb's profile picture
kurb1 year ago

Every time someone tells me "Oh just use Bun (?)" or "Just use Python" I unsheath this video like fucking Excalibur

Ryan's profile picture
Ryan1 year ago

Then he shouldn't be switching Linux over to Rust.

Sahar Hamza's profile picture
Sahar Hamza1 year ago

...

Nichol Dance's profile picture
Nichol Dance1 year ago

Big feedback loop. CPUs have been optimized for decades to run C. C and Unixish OSs have co-evolved. I'm not sure what a clean sheet would look like. What we have now is not a given.

GizmoKhan 🇨🇦 ❌'s profile picture
GizmoKhan 🇨🇦 ❌1 year ago

I love how he starts by saying "When I started getting into linux -" but then he has to stop and correct himself

deulamco's profile picture
deulamco1 year ago

Since LLVM, more languages are coming to bite C pie, beside Rust, Zig, Go.

Related Videos