Key Themes from the discussion
| Theme | Summary | Representative Quote |
|---|---|---|
| 1. excitement about “neural networks in SQL” | Several users expressed surprise and admiration after seeing neural‑net workloads expressed in SQL, calling the idea impressive despite the steep learning curve. | "initially rolled my eyes at "neural networks in SQL," but after reading the code I came away impressed" – 0xnyn |
| 2. relational algebra as a natural IR for tensor programs | The conversation highlighted that relational algebra can serve as an intermediate representation (IR) that database optimizers can reason over, making SQL a potentially ideal language for writing tensor (neural‑net) programs. | "SQL, as a data oriented and logic PL, might be ideal for writing tensor programs." – alxmrs |
| 3. broader context & historical parallels | Users placed the idea in a longer tradition of embedding complex computations in relational systems (e.g., DOOM in SQLite, MADlib, and research on einsum‑join equivalence), noting both novelty and precedent. | "Mathematically, einsum and database joins are the same thing, just over different semirings (real numbers for einsum, booleans for databases)." – sporkl |
All quotations are reproduced verbatim with double‑quote delimiters and credited to their respective usernames.