# DOOM runs entirely inside a Firebird SQL database, playable in your browser

Original title: DOOM, simulated and rendered inside the Firebird SQL database using WASM

> Hacker News story 49975809 · language: en · submitted 2026-10-06
> Web version: https://zeli.app/story/49975809
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 6 · by [mariuz](<https://news.ycombinator.com/user?id=mariuz>) · 💬 4
[original](<https://github.com/mariuz/firebird-doom>) · [HN discussion](<https://news.ycombinator.com/item?id=49975809>)

## Summary

This project reimplements DOOM as a clean-room SQL application running on Firebird 6 compiled to WebAssembly. Every game tic is a PSQL procedure call, every frame a SELECT; JavaScript only handles keyboard input and canvas painting. It plays real DOOM maps, uses Freedoom data, and includes a live SQL console. Performance tricks include generator procedures to avoid re-evaluating derived tables and pinning join order with CROSS JOIN LATERAL.

## Key quote

> Every game tic is a PSQL procedure call. Every frame is a SELECT. JavaScript only reads the keyboard and paints the rows Firebird returns.

---

## Cite

- Page: https://zeli.app/story/49975809
- Date: 2026-10-06
- Source: github.com (https://github.com/mariuz/firebird-doom)
- Hacker News: https://news.ycombinator.com/item?id=49975809

## Other languages

- zh: https://zeli.app/zh/story/49975809 · markdown: https://zeli.app/zh/story/49975809.md
- ja: https://zeli.app/ja/story/49975809 · markdown: https://zeli.app/ja/story/49975809.md
- ko: https://zeli.app/ko/story/49975809 · markdown: https://zeli.app/ko/story/49975809.md
- de: https://zeli.app/de/story/49975809 · markdown: https://zeli.app/de/story/49975809.md
- es: https://zeli.app/es/story/49975809 · markdown: https://zeli.app/es/story/49975809.md
- ru: https://zeli.app/ru/story/49975809 · markdown: https://zeli.app/ru/story/49975809.md
