Database expert runs Doom in SQL with just 5,900 lines of code — 1,300-line graphical renderer spans 89 different tables, full-featured SQLDoom is the sequel to embryonic DoomQL

SQLDoom
(Image credit: Lukas Vogel / CedarDB)
2

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.

Latest Videos FromTom's Hardware
TOPICS
Bruno Ferreira
Contributor

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.

  • thisisaname
    For some everything is a database and for others it is a spreadsheet :ROFLMAO:
    Reply
  • rooted
    Someone did it in Word and Excel, this was bound to happen.

    It's impressive.
    Reply