Ray Tracer in SQL
kbumsik
51 points
15 comments
July 01, 2026
Related Discussions
Found 5 related stories in 732.3ms across 14,015 title embeddings via pgvector HNSW
- Tracing Rays with Jank yogthos · 31 pts · June 02, 2026 · 52% similar
- Tracing Rays with Jank pjmlp · 33 pts · June 02, 2026 · 52% similar
- Show HN: XTrace – Encrypted vector DB (search embeddings without exposing them) TristanX · 13 pts · April 22, 2026 · 50% similar
- Show HN: I wrote a C++ ray tracer from scratch without AI martiano · 145 pts · June 15, 2026 · 50% similar
- Show HN: Rayline routes Claude Code subagents to on-device and cheaper models davidvgilmore · 11 pts · June 08, 2026 · 48% similar
Discussion Highlights (7 comments)
cma256
Very cool project. Next they should create a database with SQL. Querying my database's database with my database's SQL's SQL would be trippy.
Jgoauh
Nice, but why ?
laszlokorte
Very cool! I did a similar (but much simpler!) experiment by implementing perspective projection via SQL, storing meshes (vertices, edges, faces), the camera position and the screen size in tables and building a single query that generates the SVG paths (including backface culling). Running via WASM SQlite inside the web browser. [1] SELECT project(...) as x, project(...) as y FROM model, vertex, camera, transform WHERE clockwise AND clipped IN BETWEEN -1 AND 1 [1]: https://static.laszlokorte.de/sql3d/
agustechbro
In the Age of AI coding, this lovely cool demos are no longer interesting anymore. I use to appreciate them by the craftsmanship and hacking aptitude they required, but now AI took away that joy of watch this for me.
mghackerlady
Look, I love a good hack, but just. No. Why would you ever want to do this. The intersection of skill and masochism needed for this shouldn't exist and yet it does
JSR_FDED
How do I join this awesome project?
mmmlinux
I love all the "But Why?!?" and "It's LLM so it doesn't count" comments.