News for hackers. Stuff that matters.
Re:Rethinking Database Programming by pelagicAustral on Tuesday August 18, 2026 @05:34AM (#49343353)
So this is capable of turning a one-liner of SQL into six lines of barely readable code?
Re:Rethinking Database Programming by fwlr on Tuesday August 18, 2026 @06:42AM (#49343743)
It seems that is the price you pay for the power to turn a 600-line nightmare SQL query into 60 lines of barely readable code.
Re:Rethinking Database Programming by bazoom42 on Tuesday August 18, 2026 @07:00AM (#49343884)
I would like to see that example then.

I’m all for improving on SQL, but this syntax does not even solve the dangling comma issue as far as I can tell from the example.

Re:Rethinking Database Programming by preg_match on Tuesday August 18, 2026 @11:35AM (#49347274)
I'd rather take the 600 lines of SQL, provided it's not dynamically constructed. SQL is a very high level language, it's fine IMO.
Re:Rethinking Database Programming by janderland on Tuesday August 18, 2026 @06:45AM (#49343769)
SQL is a horrible language. I’d gladly program in something composable like Elm.
Re:Rethinking Database Programming by ch4s3 on Tuesday August 18, 2026 @06:56AM (#49343844)
Unfortunately Evan removed GROUP BY in 0.19 and left to buy cigarettes.
Re:Rethinking Database Programming by quikoa on Tuesday August 18, 2026 @07:07AM (#49343932)
It'd definitely need a solid team behind this and not just Evan Czaplicki if I were to trust a database with my data.
Re:Rethinking Database Programming by tclancy on Tuesday August 18, 2026 @07:07AM (#49343934)
As a programming language? Sure. As a way to work with relational data? It may be my favorite "language" across all domains because of the terse beauty. I am a self-taught, no CS coder but SQL is the one place where I feel like I get all the math I should know.

An opinionated, possibly hot take would be to call SQL "A more elegant weapon of a civilized age".

Re:Rethinking Database Programming by bazoom42 on Tuesday August 18, 2026 @07:12AM (#49343977)
Or “the worst query language ever, except for all the alternatives”
Re:Rethinking Database Programming by ModernMech on Tuesday August 18, 2026 @08:13AM (#49344560)
Maybe so, but my father in law, who is a salesman and knows nothing about computers and programming still knows SQL.

SQL is a horrible language in the same way Excel is -- programmers hate it but the what makes it a horrible programming language to developers is what makes it accessible to non programmers.

Re:Rethinking Database Programming by huahaiy on Tuesday August 18, 2026 @10:49AM (#49346450)
Agree. Datalog could be a better alternative: https://datalevin.org/docs/preface
Re:Rethinking Database Programming by packetlost on Tuesday August 18, 2026 @11:30AM (#49347175)
Datalog is awesome but I just don't think it's going to get mainstream adoption at this point.
Re:Rethinking Database Programming by huahaiy on Thursday August 20, 2026 @08:56PM (#49382353)
Why not?