Database expert runs Doom in SQL with just 5,900 lines of code

4 hours ago 4
SQLDoom (Image credit: Lukas Vogel / CedarDB)

It's the year of two thousand and twenty-six, and "Running Doom on X" is still probably the most popular software hacking hobby. From pregnancy tests to space satellites, the 1993 game has been ported to pretty much anything under the sun that has a CPU and some memory in it. Now it's time to run the game in a database, in this case CedarDB, courtesy of the SQLDoom project by Lukas Vogel, who previously authored DoomQL.

If you're wondering how the heck one runs a game in SQL, it's actually much easier than you imagine, so long as you think like a database architect. The actual frontend displaying the graphics, playing sound, and taking inputs is in Python, but that part acts only like a PC's peripherals — all the math is done inside the database.

Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.

Bruno Ferreira is a contributing writer for Tom's Hardware. He has decades of experience with PC hardware and assorted sundries, alongside a career as a developer. He's obsessed with detail and has a tendency to ramble on the topics he loves. When not doing that, he's usually playing games, or at live music shows and festivals.

Read Entire Article