Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 14,544 posts.
Category Theory, Syntactically (2016)
A blog mostly on math, physics, and computer science.
An Opinionated Treatise on Cosmos, a New Programming Language
Alright, guys. Today I want to talk about programming. It is interesting to note that I have solved it. Yes, I solved it. Here are my…
Persisting React State in LocalStorage
A common thing in React development is that we want to store a bit of React state in localStorage, and re-initialize from that value on the next page-load. This quick tutorial shows you how we can build a custom hook that does exactly this!
Go Rocks - How Can We Avoid Something This Bad In The Future?
Welcome to my blog, which was once a mailing list of the same name and is still generated by mail. Please reply via the "comment" links.
When your hash becomes a string: Hunting Ruby's million-to-one memory bug
An "impossible" Ruby bug: Hashes becoming Strings at runtime. 2,700 identical crashes. No corruption. Just objects changing what they are. Deep dive.
NaN Boxing (2020)
Are you the owner of this domain? Visit Porkbun to start building your website. We may already have a design waiting for you.
Package managers should be immutable, distributed and decentralized
I just came across an interesting post via Hacker News , from an author of several hundred NPM packages (some of which quite popular) that just removed all of his packages from NPM.
NoSQL is What?
I found myself reading NoSQL is a Premature Optimization a few minutes ago and threw up in my mouth a little. That article is so far off base that I’m not even sure where to start, so I guess…
Subtleties of SQLite Indexes
Understanding query planner quirks yielded a ~35% speedup.
Into CPS, Never to Return
CPS, or continuation-passing style, is an intermediate representation for programs, particularly functional programs. It’s used in compilers for languages such as SML and Scheme. Much of its utility comes from its support for tail calls and nonlocal control flow such as call/cc, but it can also be used as an…
Building a simple neural net in Java
Building a simple neural net in Java.
Building a message queue with only two UNIX signals
Have you ever asked yourself what if we could replace any message broker with a very simple one using only two UNIX signals? Well, I'm not surprised if you
Connecting a 1980s Pinball Machine to the Internet
I built a device that allows a pinball machine from 1984 to automatically upload scores to the internet. The device taps into the machine’s memory bus and monitors the game state, uploading scores after each game.
How to turn a biased coin into a Fair Coin
Fair Coins are the currency of Userland. A Fair Coin flips fifty-fifty with mathematical exactness. In the real world most coins are pretty fair, but you never know whether there might be a small bias to one side or another. This presents Lauren Ipsum , a girl who's lost in Userland, with a problem. No one wants her…
The Heroku Hacker's Guide
I finished The Heroku Hacker's Guide, a practical book on using and understanding Heroku, out now as a PDF and paperback. Here's why I wrote it.
Types of events in event-driven systems
Event-driven systems come in all sorts of shapes and sizes. The obvious commonality is; they all use events to communicate information. These events come in many shapes and sizes, and determining what goes into an event has an immense impact on the design of your system.
Quasi-Polynomial Algorithm for Graph Isomorphism
Update (Dec. 14): The long wait is over! Here’s Laci’s paper on the arXiv. So far, I’ve read it only deeply enough to note that it contains the following sentence: A group G ≤ S…
Micro-Max, a 133-line Chess Source
There now is a Winboard version that can handle bigger boards, and a Fairy-Max engine that can run under it ( download )
Zed Editor: All Occurrences Search from 1s to 4ms
So zero-cost abstractions exist?
Streaming: a skill gap?
It's not just for big data
An interactive way of blogging about JavaScript
blogging klipse javascript repl live examples code snippets
Memory Reordering Caught in the Act
When writing lock-free code in C or C++, one must often take special care to enforce correct memory ordering. Otherwise, surprising things can happen. Intel lists several such …
A Recipe for Steganogravy
how to hide juicy data in plain sight
Building a Scrabble MMO in 48 hours
Welcome to Startupmonkeys. Your trusted source for quality information and resources.