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.
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.