Video yükleniyor...
Video Yüklenemedi
What actually happens when a program calls write(). A program can't put bytes on the screen by itself. Only the kernel can drive hardware, and the only way in is a system call. On x86-64, that is one instruction, syscall, this video follows a single write, from the program's... show more
19,187 görüntüleme • 5 gün önce •via X (Twitter)
9 Yorum

Actually, when a program calls write(), a request goes into Claude, which then handles the write. It’s been that way since the 80’s. Or, that’s how the newer generations will think!

"A program can't put bytes on the screen by itself" (I proceed to perform a POKE 16384,255 to put a byte on the screen in a ZX Spectrum) Or ld a,255 / ld (16384),a , in case you reply to me that "that's the interpreter doing the POKE, not your program directly".

Tracing a single write() is a great way to make the userspace-kernel boundary tangible. Tiny API surface, surprisingly deep path.

Your posts are pure gold - thank you!

this is nice!

Love the tutorials like this.

Wow it is awesome video brother 👏

Awesome. Love it

those rcx and r11 saves make debugging actual syscall returns so much easier in gdb sessions
