Porting an HTML5 Parser to Swift
ikyle.me·3d·
Discuss: Lobsters
🌐WebAssembly
Preview
Report Post

Porting an HTML5 Parser to Swift

Emil Stenström spent months building justhtml, a Python HTML5 parser that achieves 100% compliance with the html5lib test suite. He wrote about the process - it involved starting from scratch multiple times, pivoting strategies when things weren’t working, and iterating with AI coding agents until every edge case was handled.

Simon Willison then ported it to JavaScript in 4.5 hours. He had GPT-5.2 inspect the Python codebase, create a specification, and then just told it "do the rest, commit and push often" while he decorated fo…

Similar Posts

Loading similar posts...