Your inbox is a bandit problem
Parenthetically Speaking: Articles by Shriram Krishnamurthi
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 4,109 posts.
Parenthetically Speaking: Articles by Shriram Krishnamurthi
prompt engineering is nothing but an attempt to reverse-engineer a non-deterministic black box for which any of the parameters below are unknown: - training set - weights - constraints on the model - layers between you and the model that transform both your input and the model's output that can change at any time …
In this article, I talk about an inherent trade-off in TypeScript's type system: stricter types are safer, but often more complex. I describe a phenomenon I call "hyper-typing", where libraries - in pursuit of perfect type safety - end up with overly complex types that are hard-to-understand, produce cryptic errors…
Private antitrust cases against Equifax, Pepsi, American Express, the Ultimate Fighting Championship, and Corteva are going through the courts. And it turns out, judges get the monopoly problem.
There is a pattern I’ve learned while using Zig which I’ve never seen used in any other language. It’s an extremely simple trick which - when applied to a data structure - reduces memory usage, reduces memory allocations, speeds up accesses, makes freeing instantaneous, and generally makes everything much, much…
Benchmarking World of Warcraft performance when running native and emulated on Windows on ARM.
How would you allocate money to a set of independent assets with to minimize volatility if some assets are more volatile than others?
Knowing what you're building
The Minisforum MS-R1 uses the same Cix CD8180 Arm SoC as the Orion O6 I reviewed earlier this year. But everything else about this thing is different. What this thing should be, is a box that runs Linux and can compete with at least an Apple M1 Mac mini, or a mid-range Mini PC. But what we got... is something…
For the past five months I've been leading the efforts to rebuild Zed 's cloud infrastructure.
I think it touches on two of the most fundamental aspects of human nature. We all like doing something constructive, where we can see that we are creating something from virtually nothing, and we all have a desire to nurture or look after things. This is what the game is all about. You spend hours painstakingly…
New court documents shed light on what a 25-year-old DOGE worker named Marko Elez did inside Treasury Department payment systems, including what Treasury staff did to limit his access. The documents indicate that the situation is more nuanced than previously reported.
The Hidden Power of Aesthetics in Design
It began, as many thought exercises do, with a discussion in the kitchen. My wife and I were debating whether a cooked egg was still safe to eat after spending the night on the kitchen counter. I am certainly not the type to throw away food lightly at the lightest hint of an issue. Confidently, I told her the egg…
I am posting this assortment of notes and observations as a kind of "thank you" to the numerous people who have replied to my posts in the past. The free flow of information is the life-blood of the internet community, and this is my feeble attempt to maintain that flow, while at the same time repaying the kindness…
tl;dr: I set up an open source Time Pi project to build a stratum 1 PTP and NTP timeserver using a Raspberry Pi. Time is important to modern society, and most of us have a clock on our wrist that's more accurate than at any time in human history. But highly precise time is important in many industries, especially…
About 3 years ago, I joined a GameDev company, without any prior experience making games or hands-on exposure to this industry. Statistically, this time is not even enough to release a single game. But during that window, I was lucky to meet many talented people deeply involved in modern GameDev, who shared with me…
Recently, a colleague asked me for a code review on some complex UI changes. The idea was to make an...
Learn how to extend the classic XOR trick to find thousands of missing values using Invertible Bloom Filters
written by - Akshat Joshi Sometime back, I set myself a crazy constraint: Load only one thing at boot - A Pong game that fits in one floppy disk sector — 512 bytes. Why would I build this? I have played with Operating Systems and their workings by customizing them and tweaking their
The Air Force Research Laboratory / Information Directorate, located at the Rome Research Site (formerly Griffiss Air Force Base), tests electronic countermeasures (ECM) equipment on various airframes for blind spots in the EMC equipment, or for interference by the aircraft's external munitions on the EMC equipment…
Fastly, you killed glitch.com and ruined your karma for 10,000 years. You have “betrayed yourself for nothing.”
In the summer of 2022 I built a C64-based theremin, described and explained here . The theremin, of course, is one of the oldest electronic instruments. Its main drawback—and strength—is that it's incredibly hard to master. The performer has ultimate control over volume and pitch, but it takes months of practice…
Dear readers, we are extremely sad to inform you that Rainer passed away on October 6, 2025, surrounded by his closest family. After suffering from life-threatening pneumonia, Rainer decided against further life-sustaining measures that would have severely restricted his life. He passed away peacefully, accompanied by…
Mike Kohn's music, software, and electronics projects.
In my previous post I introduced SQL virtual tables and how to use them in Go—registering modules per connection, defining schemas, and querying external sources as regular tables.
Lessons on incentives and scaling from two years as a teaching assistant
A brief theory of young men, "the loneliness crisis," and life in the 21st century
The Web Discourse has been spicy of late, and XSLT is to blame. Well, sort of. It’s complicated.