What a Virtual Machine Actually Does: Think of It as an Emulator
2026-11-20
An M-series chip and an Intel chip read completely different machine code. Python, Java and Ethereum deal with that the same way we play old console games on a laptop: with an emulator. This post uses that idea to explain what a VM and bytecode are, and what a VM is good for.
959 words
|
5 minutes
虚拟机到底在干什么:把它想成一个游戏模拟器 中文
2026-11-20
M 芯片和 Intel 芯片看得懂的机器码完全不一样。Python、Java、以太坊用的办法,和我们在电脑上用模拟器玩 GBA 游戏是同一回事。这篇用模拟器讲清楚 VM 和 bytecode 是什么,以及 VM 到底有什么用。
1485 words
|
7 minutes
How One Service Gets Pushed Into a Distributed System: Nine Steps From an API Endpoint to Outbox + Inbox
2026-10-17
The usual mistake in backend design is drawing the end state first. A better start is the smallest API endpoint that works, and then letting concrete problems push you up one step at a time: async, a semaphore, more instances, state in a database, job mode, a queue, a service per step, outbox + inbox. Each step adds one thing, and each thing is forced by a problem in the step below.
3893 words
|
19 minutes
一个服务是怎么被逼成分布式系统的:从一个 API endpoint 到 outbox + inbox 的九级台阶 中文
2026-10-17
从零设计后端系统,最常见的错误是一上来就画终态。更好的起点是一个能跑的最小 API endpoint,然后让具体的问题推着你一级一级往上走:async、semaphore、多实例、数据库存状态、job 模式、队列、按步骤拆服务、outbox + inbox。每一级只加一样东西,每一样东西都是被上一级的某个问题逼出来的。
6679 words
|
33 minutes
重新理解 hexagonal architecture:四层结构与两条箭头 中文
2026-09-01
任何两个模块之间有两条箭头:谁在运行时调用谁,和谁在源码里 import 谁。平时它们同向,所以我们从不区分;hexagonal 做的全部事情,就是把 outbound 那一侧的第二条箭头掰回来。从四层结构讲起,包括大多数介绍会漏掉的 application 层,以及一件几乎没人提的事:架构违规在类型系统里完全不可见。
4580 words
|
23 minutes
Hexagonal Architecture, Revisited: Four Layers and Two Arrows
2026-09-01
Between any two modules there are two separate arrows: who calls whom at runtime, and who imports whom in the source. They normally align, so we never distinguish them; everything hexagonal does is bend the second one back on the outbound side. Starting from the four layers — including the application layer most introductions skip — and ending on something almost nobody writes about: an architectural violation is completely invisible to the type system.
3001 words
|
15 minutes
冻结在 1967 中文
2026-08-23
加州要求的最低人身伤害责任险是 1.5 万美元 —— 这个数字从 1967 年一直用到 2025 年 1 月,比阿波罗 11 号还早两年。我原本以为有一个艰难的取舍在压着最低限不让它涨,去查了证据,发现没有。真正压着它的东西更无聊,也更糟。
3134 words
|
16 minutes
Frozen at 1967
2026-08-23
California required $15,000 of injury coverage from 1967 until January 2025 — a number set two years before Apollo 11. I assumed there was a hard trade-off keeping minimums low. I went looking for the evidence and it isn't there. What's actually holding them down is duller, and worse.
1840 words
|
9 minutes