TypeScript types can run DOOM
Channel:Michigan TypeScript · Length:6:59 · Published:2025-02-26 · Views:486028
Summary
The Michigan TypeScript group shows the Doom engine running entirely inside the TypeScript type system. It is open source, and two follow-up videos cover why and how they did it.
Why HN recommends it
HN commenters link it as a delightful example of how far TypeScript types can be pushed, since they are Turing complete.
I must link this wonderful video about TypeScript types running... DOOM. — HN, 2025
Programming language design · Web development
Subtitles (excerpt)
this is the 1993 video game Doom and this is typescript and this is the moment I got Doom running purely in typescripts type system 3 and a half trillion lines of types totaling 177 terabytes ran through the type trucker around the clock for 12 days to get the first frame but it was a brutal year-long journey of 18-hour days to get to that moment looking back to when I started I didn't even know 10% of what I would need to make it really happen it was so much harder than I could have imagined because there's nothing else like this so I had to build all my own tools handw write 12,364 tests and learn multiple new programming languages to scratch and Claw my way to the Finish Line I built a full web assembly virtual machine purely in typescript types that can run other programs too no cheating no tricks no other execution languages just types to give you a sense of the scales involved here's the types in a normal app compared to all the node.js types nodes types package is one of the biggest in all of definitely typed and here's every package indefinitely typed combined now let's compare that to what it took to run Doom it's a lot I didn't do this because I have no other way to play Doom after 300 videos
On Hacker News
For those not familiar with this kind of computing challenges, I must link this wonderful video about TypeScript types running... DOOM. [VIDEO] — drej, 2025-08
Typescript types (and Idris) are Turing complete. You can actually get typescript types to run doom. [VIDEO] Idris on the other hand is SPECIFICALLY designed so types and the program live in the same language. See the documentation intro: [LINK] THe powerful thing about these languages is that they can prove your program correct. For testing you can never verify your program to be correct. Testin… — ninetyninenine, 2025-09
I'd like to see if it makes a difference to the version of DOOM that runs in the TypeScript type system. [LINK] [VIDEO] — stuaxo, 2025-03
Related videos
- C++Now 2018: Matt Godbolt “What Else Has My Compiler Done For Me Lately?” · CppNow · 1:30:03
- CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid” · CppCon · 1:15:45
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- The economics of open source by C J Silverio | JSConf EU 2019 · JSConf · 37:43
- What is in a Lucene index? Adrien Grand, Software Engineer, Elasticsearch · LuceneSolrRevolution · 1:04:30
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51