39KB 编译器吊打现代 Web 膨胀
推荐指数 42.0 NO. 022 · 2026.11.16
发布2026/11/15Score172Comments84
简介
1986 年的 Turbo Pascal 3 完整编译器+IDE 仅 39KB,比 jQuery minified 还小 56%。这不是怀旧,而是对当代软件工程极度膨胀的尖锐质问:我们真的需要 200MB 的 Electron 写 Hello World 吗?
编辑判断
HN 评论区最值得看的是 Anders Hejlsberg 本人的回应——他后来做了 C# 和 TypeScript。这种体积极致压缩的秘诀不是汇编炫技,而是单遍编译、内存覆盖、砍掉一切抽象层。今天复现这个思路的项目是 Zig 编译器(自举后约 10MB)和 tcc(Tiny C Compiler,100KB 级),但两者都牺牲了优化能力。
对 AI 工程师的启示是:你的推理服务镜像真的需要 3GB 的 PyTorch 全量吗?vLLM 的静态链接部署、llama.cpp 的单一可执行文件,本质上都是在走 Turbo Pascal 的老路。做边缘部署的团队应该重新评估:模型权重之外,你的 runtime 有多少是'必须'的,多少是'习惯'的。
社区反馈
意见分歧 71 条评论
核心争论:开发者效率优先导致软件膨胀,AI时代是否应回归极致精简
Given development speed is way up, I'd be interested to see what a from-basic-principles simple and efficient OS and programming system might look like. Or people trying radically different versions of efficiency and simplicity, like an OS that uses an existing battle-tested sandboxed execution envi
This is the thing - when the cost of iterating and grinding compiler warnings drops to virtually 0, what new paradigms might we invent to exploit that? Rust gives us an inkling of an idea of what might be possible, but that still predates LLMs and thus still makes concession for human ergonomics. Wh
This would be fine grained type systems where invalid states are inexpressible.