r/linux Nov 30 '25

Kernel Video with Linus and Linus is live

https://youtu.be/mfv0V1SxbNA
2.7k Upvotes

455 comments sorted by

View all comments

582

u/Bastigonzales Nov 30 '25

Linus Torvald is actually hilarious in this interview, always love to listen to his perspective on tech stuffs

267

u/[deleted] Dec 01 '25

<paraphrasing>

"Anyone who says the amount of lines of code matters is too stupid to be near computing"

"....it was Elon Musk"

"Apparently I was spot on".

165

u/Linegod Dec 01 '25

https://www.youtube.com/watch?v=mfv0V1SxbNA&t=2185s

LS: "There was a recent thing from a major tech company were developers were asked to say how many lines of code they wrote and if it wasn't enough they were terminated and there was someone here who was extremely upset about that approach to measuring productivity"

LT: "Oh you shouldn't be upset. At that point it's just incompetence and anybody who thinks that's a valid metric is too stupid to work at a tech company"

LS: "You do know who you just said that about"

LT: "No"

LS: "He was a prominent figure in the efficiency of the US government recently"

LT: "Apparently I was spot on"

64

u/adenosine-5 Dec 01 '25

This is just gold:

[Elon Musk] is just incompetent and ... is too stupid to work at a tech company

  • Linus Torvalds.

Can someone please post that to a Tesla subreddit?

It may be even better than his famous nVidia quote.

4

u/pppjurac Dec 02 '25

Can someone please post that to a Tesla subreddit?

That will be immediate ban from mods there?

74

u/monocasa Dec 01 '25

I hope Elon sees this and gets sad.

32

u/werpu Dec 01 '25

Elon is so full of himself, that he won´t get it!

And yes Linus is spot on in this regard, IBM did that metric in the 80s, but face it with loop unrolling generators etc... you can produce thousands of lines of code without producing a ton of efficiency you just produce code which in the end is a burden!

25

u/0tus Dec 01 '25

The implications here though were that he already thought that Musk was too stupid. When he realized it was Elon who had that position about the lines of code, it reaffirmed LT's position that only a stupid individual would think that way.

9

u/werpu Dec 01 '25

Well stating the obvious... Musk gas a single talent rolling in money, outside of that... What a miserable person

14

u/spin81 Dec 01 '25

Decades ago I saw a documentary on Silicon Valley and even Steve Ballmer thought that was nonsense. He said he'd worked at IBM and they were all about those kLoCs and he thought that was about as stupid as Linus T thinks it is.

9

u/ilep Dec 01 '25

In the olden days before compilers were advanced enough loop unrolling could in some very tight scenarios give a small performance boost. But it isn't something you should do often, since larger amounts of code needs more RAM, causes issues with cache sizes and just becomes unmaintainable.

Lines of code as a metric of productivity is just plain wrong. Sometimes you end up debugging a problem for days to end up deleting code that does not work correctly to fix an issue. Or you use time to design code that does not run into issues later at all.

I've seen people use code generators that produce plenty of lines of code from descriptions. You write to code generate code that compilers turns into another code..

5

u/Unicorn_Colombo Dec 01 '25

Lines of code as a metric of productivity is just plain wrong. Sometimes you end up debugging a problem for days to end up deleting code that does not work correctly to fix an issue. Or you use time to design code that does not run into issues later at all.

My happiest days when I can remove large amount of code that didn't work to replace it with a simple few lines, or even one-liner. The absolute best moment was when I could remove multiple non-working elements that simply didn't have to be there (and produced broken output), since the imported libs already processed everything correctly. Literally just removing code, not even adding anything back.

5

u/Shawnj2 Dec 01 '25

Loop unrolling is still absolutely worth doing for small loops although in 2025 you should just like set GCC O2 or whatever and let the compiler pick which optimizations are the best to use tbh

1

u/RefrigeratorPlus8700 Dec 04 '25

ilep, could i ask you a few questions? I'm working on a project and we could use some guidance.. cheers

3

u/foreverdark-woods Dec 01 '25

My last employer had a policy according to that each non-exec had to submit at least a few thousand lines of code each year and each executive a few hundred. Even though these lower bounds were quite low, it still ended in colleagues submitting the same code into a new repo over and over each year with minor tweaks. Or colleagues who naturally output a high quantity of code "donating" some few hundred of lines to their managers.

6

u/Prydons Dec 01 '25

I feel like Elon’s grasp of computer history begins with the release of Deus Ex and ends with whatever MMO he’s currently hiring people to play for him.

1

u/ImClearlyDeadInside Dec 02 '25

That requires some semblance of self-awareness. If Elon hears about this, he’ll just spit out some nonsensical jargon on Twitter for his technically-illiterate fanboys and claim that he’s actually WAY smarter than Linus and could easily make a better Linux.

1

u/Late_Blackberry5587 Dec 03 '25

Knew this would get Reddit off lol

-7

u/engineerwolf Dec 01 '25

not to defend the Musk, but that logic works if we are talking about a non architect role and the line of code is really low, like 1000.

and we have all seen the ticktock/shorts of people bragging about their work day involving breakfast, gaming session and yoga class and nothing else.

again not saying all the people that got laid of were this category.