Sean Eron Anderson collected hundreds of bit manipulation tricks into a single page
many of them became classic techniques used in compilers game engines operating systems and performance-critical code
one of the best resources for low-level bit hacks ever put together
I promise you lot, if you want to experience PEAK computer science engineering, study the interaction of processor interrupts with an operating system.
You'll never be the same again.
if you can find the race condition in this barber shop you understand why Dijkstra said general semaphores are often unnecessary
Dijkstra invented this problem in 1965
it still appears in OS courses at every major university
the naive mutex solution deadlocks on a specific timing window that almost never shows up in testing
the bug is not in the logic, the logic is correct
the bug is in the gap between two operations that look atomic but aren't
fun fact: linux already gives you a zero-dependency in-memory store it’s just /dev/shm > a RAM-backed filesystem that’s been around forever
you can literally write to it like a normal file and read it back for small local data, it’s surprisingly fast
not trying to replace Redis, just a simple trick when you don’t need extra stuff
> be Alexandra Elbakyan
> be born in Kazakhstan in 1988
> start coding at 12
> hack your internet provider at 14
> hack MIT Press at 16 to download neuroscience books you can't afford
> get a CS degree from Satbayev University
> intern in neuroscience at Georgia Tech
> speak at Harvard on brain-computer interfaces
> notice researchers can't read the papers they need
> notice academic publishers charging $30 a paper
> notice peer reviewers worked for free
> notice editors worked for free
> notice universities funded the research with billions of dollars of public money
> build Sci-Hub in 2011
> upload nearly every paywalled research paper ever published
> give it away for free
> get sued by Elsevier
> get hit with a $15 million judgment
> don't give a flying f*ck
> keep Sci-Hub up
> get domain after domain seized
> register a new one
> keep Sci-Hub up
> get investigated by the US Department of Justice
> don't give a flying f*ck
> get accused of working for Russian intelligence
> don't give a flying f*ck
> have the FBI subpoena your iCloud
> get named one of Nature's ten people who mattered in science
> get a parasitoid wasp named after you
> get a deep-sea snail named after you
> get the Electronic Frontier Foundation Award for Access to Scientific Knowledge
> become a legend
Last week I hosted family for Thanksgiving.
My 12-year-old nephew asked for the WiFi password.
He wanted to play Roblox on his iPad.
I looked at the device.
Unmanaged. No antivirus. No encryption.
I’m an IT Professional. I don't run an open network.
So I didn’t give him the password.
Instead, I spent 45 minutes provisioning a Guest VLAN.
I set up a captive portal.
I throttled the bandwidth down to 56kbps.
Then I blocked all traffic on ports 80 and 443.
He came back crying. He said it wouldn't load.
My sister screamed at me to "just let him play."
I told her that Zero Trust architecture doesn't care about bloodlines.
We didn't have a "fun" Thanksgiving.
But we had a secure perimeter.
You’re welcome for the compliance.