U.A.E., Netanyahu Say FlyDubai Attack Was Terrorism
© Gil Cohen-Magen/dpa/ZUMA Press
© Gil Cohen-Magen/dpa/ZUMA Press
© CASTILLO
© Todd Korol/Reuters
© Maria Senovilla/EPA/Shutterstock
© David Kawai/Bloomberg News
© .
© Aaron Schwartz - Pool Via Cnp/Aaron Schwartz/Pool/Cnp/ZUMA Press

© Mark Humphrey/Associated Press

© Lauren Petracca/Reuters
Article URL: http://whereistheplanet.com
Comments URL: https://news.ycombinator.com/item?id=49940233
Points: 17
# Comments: 0
"Rendering Doom in a database is obviously a bad idea," Lukas Vogel writes in a lengthy blog post explaining how exactly he managed to render Doom using an SQL database.
OK, that's not entirely accurate. The SQLDoom project uses a small Python client to handle input and output, drive the game's timing, and display each frame to the screen. Behind that, a series of CedarDB tables tracks the game geometry and state, while about 1,300 lines of SQL queries spread across 89 common table expressions implement the game logic and generate 35 bitmap framebuffers per second.
In this, SQLDoom is a major improvement over Vogel's previous DoomQL project, which last year set out to build "a multiplayer Doom-like shooter entirely in SQL." Unfortunately, that effort ended up with raycasting-based, grayscale ASCII graphics that were more akin to the simplistic 90-degree-angled maps of Wolfenstein 3D. The newer SQLDoom, on the other hand, generates full-color 640x480 frames that look like they could have come from the original Doom executable.


© Lukas Vogel

© Fred Ramos for The New York Times

© Jae C. Hong/Associated Press

© Fred Ramos for The New York Times

© via YouTube
Article URL: https://www.youtube.com/watch?v=xc2FTBGRSJo
Comments URL: https://news.ycombinator.com/item?id=49936671
Points: 35
# Comments: 8

© Alex Kent/The New York Times