Re:Web Programming in SWI Prolog (2019)
by chekovcodes on Friday February 21, 2020 @01:21PM
(#22385386)
This is a database written in Prolog: https://github.com/terminusdb/terminus-server - albeit with a RUST storage engine - prolog's lack of types means there are better storage solutions, but for constraint logic, it's unbeatable.
A statically typed logic language would be ideal for both
Re:Web Programming in SWI Prolog (2019)
by lliamander on Friday February 21, 2020 @06:08PM
(#22387917)
Mercury is cool. I translated a simple Prolog program to it once, and it was a head trip. Hard to get my mind around, but also helped me see the connection between functions and relations.
Re:Web Programming in SWI Prolog (2019)
by ggleason on Saturday February 22, 2020 @04:30PM
(#22393459)
We evaluated the use of Mercury before settling on prolog for terminusDB. Mercury is a great language, but the community and library support is just a bit too small.
Re:Web Programming in SWI Prolog (2019)
by segmondy on Friday February 21, 2020 @12:06PM
(#22384687)
Prolog is already a database, why bring in the mess of an external DB. I have used Prolog and ODBC to access a postgres DB. I found it better to just export the data and turn it into a Prolog DB then process my rules than have it run all those logic across the wire.
Re:Web Programming in SWI Prolog (2019)
by The_rationalist on Friday February 21, 2020 @04:20PM
(#22386879)
What about performance?
Re:Web Programming in SWI Prolog (2019)
by namelosw on Friday February 21, 2020 @06:30PM
(#22388090)
For Clojure, there is Datomic[0] (a DB with S-expression Datalog) and DataScript[1] (in memory Datalog for browser) which has a fair amount of usage. Also, there's a bitemporal database use Datalog name Crux[2] seems to be quite promising.
[0] https://www.datomic.com/ [1] https://github.com/tonsky/datascript [2] https://opencrux.com/
Prolog is especially underutilized in databases.