Live data from Hacker News

Prolog language for PostgreSQL proof of concept

github.com

1–10 of 83 posts

Re: Prolog language for PostgreSQL proof of concept

#3
On a related note, have there ever been extensions for PosgreSQL/SQLite/any other FOSS DBMS that would allow using Tutorial D[1] (the Third-Manifesto one, not to be confused with Walter Bright's D language) to define and query data? In particular, I feel like PostgreSQL's CREATE TYPE[2] feature would allow for easier bridging between SQL and Tutorial D.

Unfortunately, searches for “PostgreSQL Tutorial D” don't issue useful results for obvious reasons.

[1]: https://www.dcs.warwick.ac.uk/~hugh/TTM/index.html

[2]: https://www.postgresql.org/docs/current/sql-createtype.html

Re: Prolog language for PostgreSQL proof of concept

#6

So, I expected this to actually query the DB using prolog (using the correspondence between relational algebra and logic programming). I mean, can those prolog stored procedures use the db as a source of facts for prolog, or otherwise write queries?

It looks like it's 1 hour old, and seems to me that embedding the Prolog would be a necessary first step.

Re: Prolog language for PostgreSQL proof of concept

#9
post #3

On a related note, have there ever been extensions for PosgreSQL/SQLite/any other FOSS DBMS that would allow using Tutorial D[1] (the Third-Manifesto one, not to be confused with Walter Bright's D language) to define and query data? In particular, I feel like PostgreSQL's CREATE TYPE[2] feature would allow for easier bridging between SQL and Tutorial D. Unfortunately, searches for “PostgreSQL Tutorial D” don't issue…

Maybe ask on a suitable sounding PostgreSQL mailing list?

* https://www.postgresql.org/list/

The catch-all "general" one is probably good enough if nothing else seems like a closer match. :)

Post reply on HN