3 ms·
Prolog has always made more sense to me as a query language than SQL, but SQL is more popular because it's "English-like." Which is exactly the reason SQL bugs
by dreamcompiler 8y ago
Prolog has always made more sense to me as a query language than SQL, but SQL is more popular because it's "English-like." Which is exactly the reason SQL bugs me.
- kjeetgill 8y agoI've never managed to wrap my head around prolog but I'd say SQL bugs me for the same reason. Care to throw out some examples?
- dreamcompiler 8y agoI need to create some. In the meantime this is not a bad writeup: https://stackoverflow.com/questions/2117651/comparing-sql-and-prolog#2119003 https://stackoverflow.com/questions/2117651/comparing-sql-an... To clarify, I think Prolog is a lousy data storage language but a fantastic query language. What I've done in the past is used Prolog to query a Common Lisp object-oriented database (after modifying the Prolog to produce composable lazy streams, which is not usually included in the Prolog box but is very handy for database querying.) What I want to try next is the above with standard PostgresQL as the backend repository. That will make possible an apples-to-apples SQL comparison possible.
- pritambaral 8y ago> ... used Prolog to query a Common Lisp object-oriented database ... Could you share more details about this? I'd be very interested in exploring something like this.
- anoncake 8y agohttps://en.wikipedia.org/wiki/Datalog https://en.wikipedia.org/wiki/Datalog