browse/
75 results
networks/diffie-hellman-how-two-strangers-agree-on-a-secret-while-everyone-list.md
Diffie-Hellman: how two strangers agree on a secret while everyone listens
How can a browser and a website that have never met agree on a secret key while everyone on the Wi-Fi is listening? The trick is…
computers/floating-point-why-0-1-0-2-is-not-exactly-0-3.md
Floating point: why 0.1 + 0.2 is not exactly 0.3
Type `0.1 + 0.2` into JavaScript or Python and you get `0.30000000000000004`. It is not a bug, and it is not your mistake. Computers store…
ai/embeddings-how-a-computer-knows-a-pony-is-closer-to-a-horse-than-a-tru.md
Embeddings: how a computer knows a pony is closer to a horse than a truck
A computer sees the letters in "pony" and nothing else, yet search boxes can still tell that a pony is closer to a horse than to a truck…
computer-science/breadth-first-search-how-a-maze-solver-finds-the-shortest-way-out.md
Breadth-first search: how a maze solver finds the shortest way out
How does a maze solver, or a map app, find the shortest route and not just any route? The answer is breadth-first search: explore every…
networks/tcp-how-a-network-that-drops-data-still-delivers-every-byte-in-order.md
TCP: how a network that drops data still delivers every byte in order
The internet underneath your apps drops data and makes no promise to deliver it. TCP adds the promise anyway: it numbers every piece, the…
computers/race-conditions-why-two-people-adding-1-to-5-can-leave-you-with-6.md
Race conditions: why two people adding 1 to 5 can leave you with 6
Two phones add one item to a shared list of 5, and the list ends up at 6 instead of 7. Nothing is broken, yet an update was lost. This is a…
ai/next-word-prediction-how-a-chatbot-s-core-trick-is-just-counting.md
Next-word prediction: how a chatbot's core trick is just counting
A chatbot's core job is to guess the next word, and the simplest version of that is just counting. In this article you read a few…
security/password-hashing-why-a-website-never-stores-your-password-and-what-a-s.md
Password hashing: why a website never stores your password, and what a salt changes
Websites should never store your password, only a hash made from it. But two users with the same password get the same hash, and a stolen…
infrastructure/rolling-deploys-how-a-website-updates-without-going-offline.md
Rolling deploys: how a website updates without going offline
How does a busy website switch to a new version without going offline? Not by replacing everything at once. A rolling deploy updates one…
computer-science/binary-search-how-to-find-one-number-in-a-million-with-20-guesses.md
Binary search: how to find one number in a million with 20 guesses
Guessing a number between 1 and 1,000,000 sounds like it could take a million tries. With binary search it takes at most 20. Step through a…
networks/cidr-and-subnets-what-the-24-in-192-168-1-0-24-means.md
CIDR and subnets: what the /24 in 192.168.1.0/24 means
What does the `/24` in `192.168.1.0/24` mean? It counts how many of an IPv4 address's 32 bits name the network, and how many are left to…
computers/bits-and-bytes-why-a-byte-can-t-count-past-255.md
Bits and bytes: why a byte can't count past 255
A byte is eight on/off switches, and that tiny size explains a lot of odd bugs. In this article you flip the bits of one byte yourself and…