3 ms·
I was hoping for a Datalog shoutout. I like SQL, but it has a few disadvantages compared to Datalog. - In Datalog, queries and the data itself are homoiconic;
by grose 3y ago
I was hoping for a Datalog shoutout.
I like SQL, but it has a few disadvantages compared to Datalog.
- In Datalog, queries and the data itself are homoiconic; the structure for both is exactly the same. Uses first-class variables to represent unknowns.
- Easy to compose queries (just tack on another predicate)
Of course it has the disadvantages that it's not widely supported (outside of Datomic/Clojure/Prolog ecosystem?), and not as popular, and maybe even more difficult to optimize [citation needed].
I would love to see a new Datalog-based DB. SQL-but-slightly-different-syntax is "lipstick on a pig" as they say, not very compelling IMO (and not really novel either, you can see it reinvented in every ORM).