惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
The GitHub Blog
The GitHub Blog
C
Check Point Blog
小众软件
小众软件
I
InfoQ
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
腾讯CDC
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
B
Blog
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
D
Docker
博客园 - 司徒正美
博客园_首页
Recent Announcements
Recent Announcements
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
GbyAI
GbyAI
Jina AI
Jina AI
V
V2EX
Vercel News
Vercel News
IT之家
IT之家
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
NISL@THU
NISL@THU
V
Visual Studio Blog
C
Cybersecurity and Infrastructure Security Agency CISA

Simon Tatham

Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) https://hachyderm.io/@simontatham/116465646162193402 https://hachyderm.io/@simontatham/116436356335059865 Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io) Simon Tatham (@simontatham@hachyderm.io)
Simon Tatham (@simontatham@hachyderm.io)
Simon Tatham · 2026-07-08 · via Simon Tatham

<p>My compiler spoke only an approximation to standard Forth. The structure of my input programs probably wouldn&#39;t have been approved by the language standard, in particular. Source files were required to begin with all the function and variable definitions, and then the main program would follow them.</p><p>So the compiler noticed when the first thing appeared in the source file that was not a function or variable definition, or nested inside one. And when it saw it, that was where it set the entry-point address of the output executable.</p><p>But the check for the first top-level thing in the source file happened before, rather than after, discarding comments. So if you wrote a comment before a function definition, the program&#39;s entry point address would point at the start of that function, instead of the start of the main program.</p><p>I&#39;d never noticed at school, because although I did write comments in my function definitions, I wrote them just _inside_ the function, where they didn&#39;t trigger this bug. But 20 years later, I dug out this compiler for nostalgia&#39;s sake, ran it in BeebEm, and tried writing a program in it (world&#39;s slowest MD5 implementation!) to demonstrate that it still worked.</p><p>And since my schooldays, I had switched to the habit that most people seem to have (and that tools like rustdoc outright enforce), of putting a function&#39;s comment _outside_ the function definition. Bang! Bad output code.</p><p>(The worst of it was that then of course pride required me to fix it, and unlike my Forth _programs_, the Forth _compiler_ was in dense uncommented 6502 assembler. Got there in the end, but ugh, the things we had to do to fit useful amounts of stuff into such small machines.)</p><p>(2/2)</p>