Python-Prolog-Interpreter
Languages and libraries
prolog interpreter
SHOW HN2019
149points
20comments
#290of 2,195 in 2019
Top 14%of 2019 by points
How HN took it
DebatedReal support and real criticism
2 positive, 2 neutral or asking, 0 mixed, 3 critical, out of 7 comments about the project. Thread score -0.06.
Idea: 1 for, 1 againstDocs: 0 for, 2 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Interesting or impressive for its size
From 3 comments
Nicely done! I have been trying to implement actual usable (as in, they can be used as a scripting language for instance to build anything) languages in as few lines as I can…
tluyben2 on HNstill way less lines then I would have thought, especially because it has no dependencies.
MrOxiMoron on HNAbsolutely Brilliant!
peter_d_sherman on HN
Useful for logic programming and Prolog-style tasks
From 2 comments
I've used ad-hoc test case generation using Prolog (MC/DC, all-permutations and other combinatorials) which is a quite natural application for Prolog. Around 2005 I've also used…
tannhaeuser on HNI wrote a simple date extractor (parsing stuff like "two days ago" from strings) for my hobby website project in prolog [0]. It was great fun to write, and prolog really shines…
jifu on HN
Objections
Title says 'a few lines' but the code is much longer
From 3 comments
This is about 10x larger than i would call a few lines :)
etaioinshrdlu on HNBut the title does not mention that. It says few lines. Maybe 100, 200, 300 lines are few. Its misleading and otherwise discredits a good project. This project even has a…
bhargav on HNIt's worse than that - the title says "a few", which is basically always less than ten. If it said "quite a few", it would certainly be accurate. If it actually said "few", it…
ghusbands on HN
Questions
How unification works and how long it takes to learn
From 1 comment
How long did it take you to grok unification? It has always seemed quite mindbending to me and I don't think that I have ever properly understood what's happening
timClicks on HN
Alternatives named
YieldProlog
From 1 comment
FYI, there is a mature implementation of this idea called YieldProlog.
sanxiyn on HN
PyDatalog
From 1 comment
Cool tests! PyDatalog does Datalog (which is ~Prolog, but similar and very capable) logic programming with SQLAlchemy (and database indexes) and apparently NoSQL support.…
westurner on HN
Racklog
From 1 comment
Racket also has a Prolog-Style Logic Programming DSL named Racklog.
inetsee on HN