Daring coder gets Doom running with regular expressions at 180 seconds per frame, like playing 'correspondence chess with a shotgun' — nearly 14 million substitutions to render a frame at 80,000 substitutions per second

Doom in regular expressions
(Image credit: Artem Lytkin)

Running the 1992 Doom on the most random piece of hardware around has become probably the most common unofficial programming challenge. We've seen the game running on anything from toasters to an Anker charger, and even a pregnancy test. Enterprising coders also get it running on the weirdest software possible, and just recently Artem Lytkin got it running in regular expressions.

Developers in the audience are probably recoiling in horror, as that sentence is definitely cursed. You see, regular expressions (regexes) are a utility language used in programs for finding and replacing text. They're incredibly powerful, but the syntax is often said to be write-only, as it looks just like gibberish. For example, /.*(\d{4}).*/g would find the "2026" in "Tom's Hardware 2026 articles." They can be exceedingly complicated, as they include conditional statements, elaborate character-jumping, and substitution rules. However, this also means they fulfill all the technical requirements to be a programming language.

Latest Videos FromTom's Hardware
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.

  • Roboat06
    Doom came out in December 1993, not 1992. But of course, this is Tom's Hardware, so expecting them to know basic facts and/or proofread articles before publication is entirely unreasonable.
    Reply
  • Eximo
    I was going to say, "maybe that was the shareware doom". But nope, that is what released Dec 1993.

    Could just be a typo though.
    Reply
  • TheYar
    0.005555... fps
    Reply
  • USAFRet
    Roboat06 said:
    Doom came out in December 1993, not 1992. But of course, this is Tom's Hardware, so expecting them to know basic facts and/or proofread articles before publication is entirely unreasonable.
    https://en.wikipedia.org/wiki/Doom_(franchise)"The development of the original Doom started in 1992, when John Carmack developed a new game engine, the Doom engine"
    Reply
  • vossile
    Running Doom on anything just shows us how much compute we have lying around and how much thinigs have advanced. Not really particularly impressive when a toaster has more computing power than the average 486 in 93.

    Impress me by making it run on a Z80, 6502 or 8088.
    Reply
  • SmokyBarnable
    Daring Coder
    Add this to the Tom’s bingo card, kids.
    Reply
  • usertests
    USAFRet said:
    https://en.wikipedia.org/wiki/Doom_(franchise)"The development of the original Doom started in 1992, when John Carmack developed a new game engine, the Doom engine"
    Running the 1992 Doom
    https://en.wikipedia.org/wiki/Doom_(1993_video_game)
    Nice try but nah.

    In other news, I'm going to run the 1996 game, Duke Nukem Forever on my smart fridge.
    Reply