I used GPT-5.2 and Codex CLI to port a Python library implementing a full HTML5 parser to JavaScript. This project is an example of agents porting codebases and connects to how agents change engineering: the capability demonstration and the question of whether this kind of work is a good idea are separate concerns.
I ported a Python library implementing a full HTML5 parser ported to JavaScript, using GPT-5.2 and Codex CLI.
I used GPT-5.2 and Codex CLI for the port.
I completed the port in 4.5 hours.
I watched Knives Out while doing the port.
I described the JavaScript port as a 9,000 line direct port.
I said the port was a stark demonstration of what's possible using the latest frontier LLMs at the tail end of 2025.
I asked, “Is it a GOOD idea to churn out a 9,000 line direct port while watching Daniel Craig chew on the scenery?” and said that was a whole other set of questions.
Anil coined “vibespiling” for using LLM coding agents to port or transpile code from one language to another.
I described the language sequence as Rust -> Python -> (JavaScript, OCaml).
- I listed four implementations: Python (Emil Stenström), JavaScript (me), OCaml (Anil Madhavapeddy), and Swift (Kyle Howells).
@avsm described building a pure HTML5 OCaml library that “100% passes the browser test suite.”
@avsm described the work as “kind of like formal verification in reverse” and said they undertook it after seeing @EmilStenstrom and me do this “in untyped languages.”
Related: agents porting codebases, agent assisted code adaptation, ai assisted code creation