Show HN: The DNA of DOOM – How code structure survives across 44 ports
An analysis of 44 DOOM source ports shows that structural metrics like function length and call graphs can trace code ancestry across languages without reading names.
read it It offers a novel look at software archaeology, demonstrating how structural code fingerprints and call graphs survive across different programming languages.
summary
Joe Esquibel used a code-scanning engine to analyze 43 descendants and ports of the 1997 DOOM source code, measuring function length, branching, and call graph wiring instead of text names. The study reveals that name-based tracking can be misleading, as Chocolate Doom keeps 87% of original names but only 35% of the original code. Furthermore, call-wiring maps successfully trace subsystem organization even in language translations like Go and Scheme, though languages that heavily fragment code into tiny functions lose this structural signal.
key points
- Chocolate Doom retains 87% of the original function names, but only 35% of the actual code inside those functions is unchanged.
- When names are completely hidden, a Go port's functions still map to the correct DOOM subsystem 60% of the time based solely on call wiring.
- Java, Kotlin, and C# translations show no structural correlation because they heavily fragment code into functions three lines or shorter.
who should read it
Systems programmers and software engineers interested in code structure, legacy codebases, and software archaeology.
discussion mixed
consensus
Commenters find the underlying technical project fascinating and praise the effort, but heavily criticize the AI-generated writing style of the accompanying article.
pushback
Some early dismissive reactions sparked friction, though the author engaged transparently to share methodology and acknowledge the writing critique.
I'm sure you did work hard on this, and I also find it very interesting from a technical perspective.
One constructive point for you: don't even write the first draft of a document you want humans to read with AI. It's much harder to get the AI voice out than it seems. Stuart Halloway talked about this at the last Clojure Conj, and I couldn't agree more. It also makes it harder to follow the sage writing advice to minimize what you write.
"How code keeps its family resemblance" - AI would say this, a person would not. It's just noise on the page.
"Measure only their shape and you can still …
It provides specific, constructive feedback on how AI-generated phrasing detracts from human readability and technical credibility.
Generated by an LLM from the article and thread. Check the sources before relying on it.