10 comments

  • sporkl20 minutes ago
    I&#x27;ve been working on something similar, implementing a relational language on top of a tensor library[0].<p>Mathematically, einsum and database joins are the same thing, just over different semirings (real numbers for einsum, booleans for databases). A lot of papers about datalog explore this sort of thing in more depth. In particular, Dyna[1] might be interesting.<p>[0]: <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2509.22614" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2509.22614</a> [1]: <a href="https:&#x2F;&#x2F;dyna.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dyna.org&#x2F;</a>
  • HPsquared2 hours ago
    Somewhat more reliable than implementing SQL in neural networks.
  • tommica2 hours ago
    I&#x27;m just going to go back to making my CRUD endpoints...<p>Jokes aside, sounds really impressive, though I only understood about 10% :D
  • 0xnyn2 hours ago
    initially rolled my eyes at &quot;neural networks in SQL,&quot; but after reading the code I came away impressed<p>basically it comes down to using relational algebra as the IR, letting a database optimizer reason about tensor programs
    • alxmrs1 hour ago
      I would have had the same gut reaction as you lol.<p>You’re spot on. I think that SQL, as a data oriented and logic PL, might be ideal for writing tensor programs.
  • soupspaces1 hour ago
    Neat! Feels analogous to &quot;X runs Doom&quot; demos (but NN).
    • simonw27 minutes ago
      Just today I saw this implementation of DOOM in SQLite using a recursive CTE for a simple ray tracer: <a href="https:&#x2F;&#x2F;github.com&#x2F;petergpt&#x2F;doomql" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;petergpt&#x2F;doomql</a>
    • alxmrs1 hour ago
      Totally. I can’t wait to take this to <a href="https:&#x2F;&#x2F;hytradboi.com" rel="nofollow">https:&#x2F;&#x2F;hytradboi.com</a>
  • iqbal19801 hour ago
    Why? lol
    • alxmrs1 hour ago
      <a href="https:&#x2F;&#x2F;bsky.app&#x2F;profile&#x2F;al.merose.com&#x2F;post&#x2F;3mpz4njpcvk2o" rel="nofollow">https:&#x2F;&#x2F;bsky.app&#x2F;profile&#x2F;al.merose.com&#x2F;post&#x2F;3mpz4njpcvk2o</a>
  • throwaway6137461 hour ago
    [dead]
  • slipperybeluga2 hours ago
    [dead]