THIS BLEW MY MIND
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Related videos
Why Did They Build This?
The PrimeTime
126.3k views
This CEO is Crazy
The PrimeTime
52.8k views
Linus x Linus - Is AI A Bubble?
ThePrimeTime
37.4k views
I Watched It
ThePrimeTime
210.0k views
This isn't the future I want
ThePrimeTime
130.7k views
We did it?
ThePrimeTime
102.6k views
PewDiePie IS RUINING MY LIFE
ThePrimeTime
436.5k views
Why Use Windows??
ThePrimeTime
212.3k views
OpenAI Buys Windsurf
ThePrimeTime
148.4k views
C Must Die
ThePrimeTime
222.3k views
Top Comments (10)
"XOR has memory" has never made sense to my caveman brain. "XOR doesn't destroy information" makes more sense to me.
only prime could explain XOR swapping in the most cumbersome way possible LMAO, I relate to this guy so much, ADHD brain is a different universe
Nostalgic. I used to work on GameBoy games, which had a Z80-like 8-bit CPU that couldn't multiply or divide, and the SHIFT opcode couldn't shift by more than 1 position per opcode, so we relied on bit trickery to do everything. One such example, we could simulate multiplication/division by 16 using either 4x "SHIFT" opcodes, or the "SWAP" opcode (switches the top and bottom nibble in a byte) plus an "AND" opcode to zero out the upper or lower bits. The "SHIFT" and "SWAP" opcodes take 1 effective cycle (nb. not technically 1 cycle as all CPU operations on the Gameboy CPU take exactly 4 cycles, hence "effective cycle"), and the "AND" in this case takes 2 effective cycles (i.e. AND with an immediate value 0b11110000 or 0b00001111), meaning this only saved 1 effective cycle (not 2), but every cycle counts!
When Prime says "XOR has memory"... he's referring to the fact that XOR can be used as an invertible function so that no information is lost. If you think of XOR(a,b)=c as a sub-scripted or parameterized function XOR_a, then XOR_a(b) = c means that XOR_a(c) = b, so you can recover the original argument "b".
"This made me a firefighter" That's the automatic translation of the title to portuguese. I have no idea what it means. But XOR is cool and mysterious so I'm watching.
Can you disable AI translations of titles somehow? For Polish language titles often contain errors and are being translated very poorly. Not sure whats the point of this anti-feature.
Oh my Russell! Prime's face after some basic algebra means only one thing: he's a few videos away from getting into category theory. Haskell, here we come!! 😂
XOR is kinda genius
Tide comes in, tide goes out. You can't explain that.
Embedded software developers use some of these tricks everyday. Nice to see that there is appreciation for them by the big guys too.
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
Top Comments (10)
"XOR has memory" has never made sense to my caveman brain. "XOR doesn't destroy information" makes more sense to me.
only prime could explain XOR swapping in the most cumbersome way possible LMAO, I relate to this guy so much, ADHD brain is a different universe
Nostalgic. I used to work on GameBoy games, which had a Z80-like 8-bit CPU that couldn't multiply or divide, and the SHIFT opcode couldn't shift by more than 1 position per opcode, so we relied on bit trickery to do everything. One such example, we could simulate multiplication/division by 16 using either 4x "SHIFT" opcodes, or the "SWAP" opcode (switches the top and bottom nibble in a byte) plus an "AND" opcode to zero out the upper or lower bits. The "SHIFT" and "SWAP" opcodes take 1 effective cycle (nb. not technically 1 cycle as all CPU operations on the Gameboy CPU take exactly 4 cycles, hence "effective cycle"), and the "AND" in this case takes 2 effective cycles (i.e. AND with an immediate value 0b11110000 or 0b00001111), meaning this only saved 1 effective cycle (not 2), but every cycle counts!
When Prime says "XOR has memory"... he's referring to the fact that XOR can be used as an invertible function so that no information is lost. If you think of XOR(a,b)=c as a sub-scripted or parameterized function XOR_a, then XOR_a(b) = c means that XOR_a(c) = b, so you can recover the original argument "b".
"This made me a firefighter" That's the automatic translation of the title to portuguese. I have no idea what it means. But XOR is cool and mysterious so I'm watching.
Can you disable AI translations of titles somehow? For Polish language titles often contain errors and are being translated very poorly. Not sure whats the point of this anti-feature.
Oh my Russell! Prime's face after some basic algebra means only one thing: he's a few videos away from getting into category theory. Haskell, here we come!! 😂
XOR is kinda genius
Tide comes in, tide goes out. You can't explain that.
Embedded software developers use some of these tricks everyday. Nice to see that there is appreciation for them by the big guys too.