this post was submitted on 16 Jan 2026
27 points (84.6% liked)
Technology
1357 readers
38 users here now
A tech news sub for communists
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think the simplest benevolent example of this is what I call "the newline virus".
Basically, in most programming languages you represent the newline character inside strings with the escape sequence
'\n'(or equivalent), so naively you would expect to see a statement translating'\n'into its ASCII code10somewhere in the source code of the compiler, like this:but most likely, it will just say something like instead:
That is, the fact that
'\n' == 10is nowhere to be seen!You only need the initial version of the compiler to state it explicitly, all future versions can rely on the previous compiler doing the right thing.
yeah great example