Younes Bahloul

 

XML Prague
@ University of Economics, Prague
2026-06-04

Elemental
Can it run DOOM?

younes@evolvedbinary.com
@marmoure

Younes
Bahloul

  • Engineer @Evolved Binary

  • Masters in Computer Vision

  • Petal Editor

  • Developer

    • React / TypeScript / Node.js

    • Java

  • Contributor to Elemental NoSQL Database and others

  • Casual vibe coder

Claude
LLM

  • A language model

  • Eats tokens

  • Can be a reassuring partner, but delusional 

  • Casual vibe coder

What Is Doom?

  • First-person shooter game

    • 1993

  • Open source

    • Written in C, designed for DOS

    • It's own engine

The "Can It Run Doom?" Meme

  • Rite of passage for platforms, languages, and runtimes

    • Turing complete?

    • Flexibility 

  • Test of skills

How People Get Doom Running

  • Compile to Target Hardware

    • Doom on SNES

    • Pregnancy test ...etc

  • Virtual Machine / Runtime

    • Doom via WebAssembly (WASM) 

  • Port to Another Language

    • JDoom / Doom Legacy (Java)

    • Mocha Doom

  • Build Your Own Machine and Run It

    • Doom in minecraft

    • TypeScript types can run Doom (running on types)

Running Doom on Elemental

  • Run Doom in the Browser

    • Easy, Elemental as a file server for JS and HTML

  • Run Doom in the Backend

    • Runs on the cloud without I/O

  • Build an Emulator Using XQuery

    • It's possible but I'm not brave enough

Elemental architecture

  • Frontend

    • Browser

    • API

  • Backend

    • XQuery Engine

    • Modules

  • Data layer

    • XML

What we did

  • Mocha Doom

    • Engine without rendering

    • I/O over WebSocket

  • Elemental

    • Doom module

    • Expose Doom functions to XQuery

  • Browser

    • Only I/O no logic or heavy lifting

Overview

Demo

Final notes

  • Elemental can run external services 

  • Expose new functions to XQuery

  • Package it as "Xar"

Improvements!!! 

  • Game state can be saved in XML

  • WebSocket connection can be managed by XQuery

  • Multiplayer or spectator mode

Questions?

Will it run DOOM?

By Younes Bahloul

Will it run DOOM?

XML Prague @ University of Economics, Prague 2026-06-04

  • 21