Automatic deduction of FlashAttention kernel from ~25 lines of SQL
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
In this demo, we automatically deduce a FlashAttention kernel with ~25 lines of SQL, which just expresses vanilla attention. This is possible due to three portable SQL extensions that we’re building: - xarray-sql: a library that efficiently represents petabyte scale array datasets in the cloud as tables (relations). - ddx: a database extension that adds automatic differentiation in the style of JAX to standard SQL, assuming the above array data model. - einfold: a modular query planner for fast tensor contractions in vanilla SQL, again, assuming the above array data model.My hope is that the relational model and algebra provide fresh perspectives on how we might do accelerator programming. Here, our thesis is that separating the logical layers in a tensor program from the physical layers is both more correct and more scalable.If the Bitter Lesson is a central dogma of machine learning, then why not formalize it with relational algebra?If this interests you and you’d like to tinker with us at the intersection of database theory and ML systems, join us on Discord at https://xql.systems (link at the bottom). Cheers.
HN · launched Oct 30, 2026 · 28 upvotes (top 27%) · 0 views
Niche: database management systems and engines · 162 launches, 5 in the last 7 days ▼ -17% · Explore this niche →
Category and tags
- Horizontal
- Model & infra
- Developer
- AI-native
Visit website ↗ Source listing ↗
More like this: all 162 launches in database management systems and engines →
Could you build this?
No Deriving a FlashAttention-style fused kernel from SQL requires compiler, database-engine, and GPU kernel research expertise, plus the custom SQL extensions the project is building. Vibe coding cannot substitute for that.
What it would actually take: A real version needs a relational-algebra or array IR, a rewrite and fusion engine that recognizes tiled online-softmax patterns, and a backend that emits efficient GPU code. The hard parts are the compiler optimizations and numerical correctness, which call for researchers and GPU performance engineers, along with access to GPUs for benchmarking.
Discussion
1 comment analyzed.
Competitors
Other products that read as similar to this one : 306 launches clear the similarity bar, closest 8 shown.
Attention rank: #83 of 307 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 366 days after the earliest competitor.
- I implemented a neural network in SQL · hn · 2026-07-13 · 121 upvotes · similarity 0.62
- DeepSeek-V4.1-Flash-EXL3-TensorFold-2x-DGX-Spark · github · 2026-10-04 · 12 upvotes · similarity 0.47
- Dbmask · hn · 2026-09-10 · 5 upvotes · similarity 0.47
- Xsql · hn · 2025-12-19 · 5 upvotes · similarity 0.46
- glm53-tensorfold-spark · github · 2026-09-28 · 99 upvotes · similarity 0.46
- SatoriDB · hn · 2025-12-30 · 5 upvotes · similarity 0.45
- Ornith-1.5-122B-TensorFold · github · 2026-10-21 · 19 upvotes · similarity 0.45
- Distilled 0.6B text-to-SQL model · hn · 2026-01-21 · 5 upvotes · similarity 0.44
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.