Linus Torvalds Takes On A Performance Patch: "I Relax By Playing With Inline Assembly"

3 years ago by snaggen to c/programming

Yes, who haven't had a glass of red wine, relaxing music and some inline assembly....

load all comments
sethboy66 31 points 3 years ago

He says this because he kind of ignorantly (his own wordage) wrote in machine code for quite some time before realizing assembly was a thing. So for Linus inline assembly is to machine code as python is to c for a lot of us.

path: 0 593883, hotness: undefined, score: 31, children: 4
mrkite 2 points 3 years ago

One of my oldest programming books is all about using machine language to program.

https://vintageapple.org/...

At the time, even assemblers cost money. I remember saving up for Merlin which is an assembler for the Apple II.

path: 0 593883 645758, hotness: undefined, score: 2, children: 0
jormaig 1 point 3 years ago

What does he mean by machine code? Like assembly files or literally 1s and 0s?

path: 0 593883 625624, hotness: undefined, score: 1, children: 2
solidsnail 2 points 3 years ago

He was probably working with bytes and not individual bits, but yeah. He basically wrote executables directly (to my understanding).

path: 0 593883 625624 637477, hotness: undefined, score: 2, children: 0
Hexarei 2 points 3 years ago

He didn't realize assembly was a thing, so he was actually writing machine code instructions

path: 0 593883 625624 634832, hotness: undefined, score: 2, children: 0
programming
programming

@programming.dev

login for more options
28853
3731
3340

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev


go to feed...