swift-justhtml

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

AI-assisted porting of the same HTML5 parser across languages is now a repeatable pattern, giving developers dependency-free parser options in Swift, JS, OCaml and Python with comparable benchmark data.

Read this as

A developer named Kyle Howells has released swift-justhtml, a free HTML5 parser (software that reads web page code) for the Swift language. It was built using AI coding assistants, or 'vibe-coding', and checked against the html5lib test suite. It joins similar versions already made for Python, JavaScript and OCaml.

This is the fourth AI-built port of the JustHTML parser, now targeting Apple's Swift ecosystem. Benchmarks show Swift parsing in 1,313 ms versus Rust's 303 ms and Python's 4,189 ms, so performance-conscious teams still favour Rust. For iOS and Mac developers wanting a dependency-free HTML5 parser, this is a viable option; others gain little.

swift-justhtml is a dependency-free HTML5 parser for Swift, built by Kyle Howells using AI coding agents validated against the html5lib-tests suite, following prior ports to Python, JavaScript and OCaml. Benchmarks report total parse time: Rust html5ever 303 ms, JavaScript 1,035 ms, Swift 1,313 ms, Python 4,189 ms. Swift thus trails the JavaScript port by roughly 27%.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

swift-justhtml html5ever html5lib-tests JustHTML justjshtml html5rw

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading