Friday, April 25, 2025

The Digital Press

All the Bits Fit to Print

Ruby Web Development Artificial Intelligence Urban Planning Astronomy

SQL-Powered 3D Doom Clone Built in Browser Using DuckDB-WASM

Building a 3D text-based Doom clone using DuckDB-WASM SQL queries in the browser.

From Hacker News Original Article Hacker News Discussion

A developer built a text-based Doom clone running entirely in the browser using DuckDB-WASM, leveraging SQL queries for game logic and rendering.

Why it matters: It demonstrates SQL's unexpected power beyond data handling, enabling complex game state and 3D rendering calculations.

The big picture: Combining SQL recursion and JavaScript orchestration blurs language boundaries, showcasing new browser-based app possibilities with WASM databases.

The stakes: Performance hits and debugging complexity arise from using SQL for real-time game logic, making it impractical for production games.

Commenters say: They find the project impressive and wild, praising SQL’s versatility while recalling similar past database-driven experiments and expressing amazement at graphics done in SQL.