Doom: More Than Just Code
The classic video game Doom has long been a favorite target for inventive programmers. We have seen it run on microwaves, smartwatch screens, and even ATMs. Recently, however, a developer made a major software leap by running the game inside an environment never meant for gaming: Structured Query Language, better known as SQL.
From Data Management to Battlefields
SQL is typically used to manage massive databases, retrieve information, and organize complex tables. By writing about 1,300 lines of code, however, a programmer managed to turn this statistical tool into a graphics engine capable of processing visual data. The developer did not settle for a static interface, but succeeded in generating dynamic, bitmapped scenes teeming with movement, achieving a frame rate of up to 35 frames per second—performance that rivals the original gaming experience on vintage computers.
The Technical Challenge: Breaking the Rules
The scientific core of this achievement lies in how queries are manipulated to transform them into graphic arrays. Instead of requesting data from a table, the code calculates pixel values in real time within the database environment. This work represents a striking technical demonstration proving that programming languages, regardless of their specialization, possess a logical flexibility that goes beyond the limits set by their original designers. It is an open invitation for engineers and programmers to explore new horizons in unconventional computing.
What Does This Mean for the Future?
Aside from the entertainment aspect, this project raises questions about the nature of computational processes within complex systems. When a database can execute complex graphical tasks, we open the door to innovative ways of processing big data and turning it into real-time visual representations. Although we will not use SQL to run video games in the near future, this innovation remains proof of the human mind’s creativity in adapting mathematical logic to serve digital imagination.
By: Hany Sallam
Source: arstechnica.com


Latest video
تابع معنا تحليل قراءة الصحف اليومية مع الكاتب الصحفي Hany Sallam عبر