The DelightQL Query Language
Web page · https://delightql.org/
Hey all, I would like to present a programming language I have been developing for many years called delightql. This is an alpha release so there will be rough edges, but I have used it at home and work and have liked it enough to now throw it out into the world and see if it sticks. It's always a good thing if you like the language you've developed. Delightql transpiles to SQL and looks something like a cross between Prolog, Elixir and **cough** Perl. I will try now to enumerate some features: - reusable functions, reusable higher-order predicates, reusable row-predicates - 99% of all SQL (this is a vibe estimation and not a guarantee) - some stuff you never knew you wanted (union corresponding, anonymous tables, tree-groups, the occassional prolog-like join) - ETL directives and a module system Coding in delightql will feel like a concatenative language insofar as the meaning of the query is explicitly read from left to right. The language is implemented in Rust and is Apache licensed. I used LLMs over the past year and a half to help me with the implementation. The design (syntax, semantics, and features) is all my own work. To that last point, I note that out of pure happenstance my mode of working was exactly suited to this new world of LLMs. Back in 2020 I decided to stop implementing and just write. By 2025, I had finished writing the book about the language I wanted. I'd love to hear what makes sense, what doesn't, and/or kudos/criticisms.
First seen by Oriel on .
AI summary
DelightQL is an alpha-stage query language that transpiles concise, reusable logic- and functional-style queries into SQL while preserving relational capabilities.
- Its operators support projection patterns, in-place transformations and renaming, nested output trees, pivots, melts, ragged unions, optional joins, filtered aggregates, and windows.
- Users can define local functions, wrap correlated queries as functions, pass functions as arguments, and compose transformations through left-to-right pipelines.
- Executable examples run through a WASM implementation against a demo database, alongside editable tutorials and an SQL feature mapping.
- SQLite is supported well and DuckDB “sorta well,” with broader SQL dialect coverage planned during the alpha process.
- The compiler is implemented in Rust with tree-sitter, includes a CLI for major UNIX variants, and is not recommended for production without understanding the risks.
#sql #query languages #rust #tree-sitter
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | ireiaf | https://delightql.org Read discussion |