HTML parsers in Portland
felix.dognebula.com·1d·
📝Concrete Syntax
Preview
Report Post

2026-01-08 - felix

Summary

If you ask an AI coding agent to translate program P into language Q, the agent might do something like: "P seems to be fizzbuzz. I’ll implement fizzbuzz in Q." So you might get a Q implementation that’s entirely different from the P implementation. This might be ok?

It can be a problem if:

  • P is not actually fizzbuzz.
  • Q behaves differently in a situation not covered by tests.
  • Q has different performance characteristics.
  • Q is less intelligible or less maintainable.

The rest of this page describes a specific case of this happening with an HTML tokenizer.

Contents

  1. The HTML specification
  2. [html5ever, a hand-coded Rust library](#htm…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help