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

推荐订阅源

Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
博客园_首页
S
SegmentFault 最新的问题
H
Help Net Security
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss
量子位
GbyAI
GbyAI
M
MIT News - Artificial intelligence
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
B
Blog
月光博客
月光博客
博客园 - 聂微东
Vercel News
Vercel News
罗磊的独立博客
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
L
Lohrmann on Cybersecurity
I
Intezer
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
C
Check Point Blog
AWS News Blog
AWS News Blog
C
Cisco Blogs
Martin Fowler
Martin Fowler
The Last Watchdog
The Last Watchdog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
宝玉的分享
宝玉的分享
S
Security Affairs
大猫的无限游戏
大猫的无限游戏
N
News and Events Feed by Topic
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hacker News: Front Page
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog

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>