News for hackers. Stuff that matters.
Re:Rust-Query by Yoric on Saturday November 30, 2024 @12:05PM (#42282606)
That's a good point.

It would be very nice to have a LLVM IR-style language for database queries, though. As a language, SQL is... well, a little behind times. ORMs explore lots of interesting design choices, but as you mention, by piling up high-level decisions on top of something that, by many aspects, are even higher decisions.

I wonder what an LLVM IR-like would look like in this space.

Re:Rust-Query by ninetyninenine on Saturday November 30, 2024 @12:12PM (#42282662)
I agree there should be a common api. The sheer number of dialects with SQL contributes to a lot of issues with ORMs.

But SQL is definitely not something designed for computers to only write or compile another language into (which is what the OP is promoting).

Re:Rust-Query by Yoric on Sunday December 01, 2024 @02:06AM (#42286781)
Yeah.

I wonder if something like GlueSQL or the IndexedDB layer of most browsers could be used as such an API.