TypeScript types can run DOOM

Channel:Michigan TypeScript · Length:6:59 · Published:2025-02-26 · Views:486028

Watch on YouTube

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