Computer Architecture, Semiconductors, Systems Programming & I care about what the hardware actually does.

Joined June 2024
Strace retweeted
If you look at the Linux kernel source code, you'll see likely() and unlikely() wrapped around error checks everywhere. They use __builtin_expect to tell the compiler to move cold error-handling instructions to the far end of the function so the CPU's L1 instruction cache stays packed with the fast path.
12
17
3
579
30,570
If you look at the Linux kernel source code, you'll see likely() and unlikely() wrapped around error checks everywhere. They use __builtin_expect to tell the compiler to move cold error-handling instructions to the far end of the function so the CPU's L1 instruction cache stays packed with the fast path.
12
17
3
579
30,570
You can lock a Linux C process inside a security sandbox so strict that even if an attacker gets Remote Code Execution, they cannot open a file, spawn a shell, or touch the network. One call to prctl with SECCOMP_MODE_STRICT tells the kernel: if this process attempts any syscall other than read, write, or _exit, kill it immediately with SIGKILL.
13
32
2
689
24,242
Interviewer: Swap two integers in C without using a third temporary variable and without risking arithmetic overflow. Systems programmer:
78
28
15
970
119,060
Strace retweeted
In C, if you need a macro to generate a guaranteed unique variable or struct name every time it is expanded across a file, GCC and Clang provide a secret built-in macro called __COUNTER__ that automatically increments 0, 1, 2, 3... every time the preprocessor touches it:
12
18
6
373
17,240
In C, if you need a macro to generate a guaranteed unique variable or struct name every time it is expanded across a file, GCC and Clang provide a secret built-in macro called __COUNTER__ that automatically increments 0, 1, 2, 3... every time the preprocessor touches it:
12
18
6
373
17,240
Every time a developer says using AI isn't real programming, remember what happened to Grace Hopper in 1952. When she built the first operational compiler so programmers could write in English words instead of symbols, fellow engineers refused to touch it insisting that computers could only do arithmetic, not write programs. Every generation mistakes its current abstraction layer for the only real way to work.
41
72
16
532
16,116
Motherboard manufacturers spent years turning BIOS menus into flashy, mouse-driven gamer interfaces with animated dashboards and overclocking widgets. Meanwhile, half the people who actually change BIOS settings just hit F7 to get into Advanced Mode and navigate the same old menus with arrow keys. We somehow managed to give the BIOS a gaming UI.
111
64
19
1,696
66,936
If your notes, photos, or projects live inside a proprietary cloud database and become inaccessible the day you stop paying a $15/month subscription, you aren't using a software tool. You are paying rent to a digital landlord to look at your own files.
5
7
2
68
1,506
Look at how code reviews work in almost every company: > A 10-line Pull Request: receives 28 comments debating variable names and formatting. > A 2,400-line Pull Request rewriting the core memory allocator: receives "LGTM! 馃殌" in 4 minutes because nobody knows how to read it.
8
7
4
209
8,055
In the 1970s, European keyboards didn't always have {, }, [, or ] keys. So the C standard added Digraphs and they are still 100% legal in C today:
22
76
14
1,493
52,261
Why did playing the original Quake (1996) over the internet feel like swimming in glue until QuakeWorld arrived? Because Quake sent your movement inputs to the server and waited for the response before showing your character move. On dial-up, that could mean hundreds of milliseconds of delay. John Carmack rewrote the netcode so your client could simulate your movement immediately (Client-Side Prediction) and correct it when authoritative updates arrived from the server. That basic architecture still powers many modern multiplayer shooters, nearly 30 years later.
30
32
9
809
23,953
imagine building a CPU where 95% of the silicon is dedicated to generating single use states just to run a basic non Clifford gate. that鈥檚 been quantum computing since 2004. Google just cut the error rate on magic state cultivation by 40x on real hardware. huge step toward chips that actually run code instead of just babysitting qubits.
Published in Science today: Magic state cultivation works in practice on our Willow processor. We achieved a 40x error reduction, compared to without cultivation, and 99.99% fidelity. Learn how this addresses a critical resource bottleneck: goo.gle/4yr8V0H
4
6
2
66
4,343
You can have 15 years of systems engineering experience, spend 6 hours inspecting kernel TCP ring buffers with tcpdump, recompile OpenSSL, and audit firewall iptables rules only to discover that the outage was caused by DNS.
23
23
5
536
8,861
Every junior developer eventually writes this loop in C and learns a very painful lesson about unsigned integers:
75
34
9
1,363
121,847
Someone records encrypted web traffic today. Next year, they steal the server's long-term private key. With forward secrecy, that still doesn't unlock the old conversation. How do you design a lock so even stealing the key later isn't enough?
5
4
3
18
2,595
Try opening a Microsoft Word document from 1992, a Flash project from 2006, or a proprietary database dump from 2010. Half of it is unreadable binary rot. Now open a .c source file or a plain .txt file written on a UNIX PDP-11 in 1973. It opens in 0.001 seconds on every computer on Earth. Plain text is the only truly immortal data format humanity has ever invented.
156
275
44
6,150
161,854
Think about noise-canceling headphones for a second. Sound travels through air at 343 meters per second. The microphone on the outside of your AirPods is less than 2 centimeters away from your eardrum. That gives the chip roughly 50 microseconds to hear a random sound, calculate the exact inverted waveform, and fire it out of the speaker before the original sound wave hits your ear. How is a tiny battery powered chip beating the speed of sound?
54
6
7
175
66,942