As part of a knowledge systems course we built a small game in (mostly) Prolog
Ask HN: What are some interesting examples of Prolog?
31–40 of 64 posts
Re: Ask HN: What are some interesting examples of Prolog?
#32I have one other Prolog project that is part of a tool. It explains the relationship between potentially related people. It is used in financial surveillance.
Re: Ask HN: What are some interesting examples of Prolog?
#33Re: Ask HN: What are some interesting examples of Prolog?
#34I'm using picat, a better Prolog dialect, and generate the facts automatically from C to generate the field layouts via picat automatically.
https://github.com/LibreDWG/libredwg/blob/master/examples/AC...
optimization problems as in compilers are extremely natural in Prolog.
Re: Ask HN: What are some interesting examples of Prolog?
#35Re: Ask HN: What are some interesting examples of Prolog?
#36Not a lot of code but a somewhat different use of Prolog than you're likely to see elsewhere. I used my fork of a MQTT library for Prolog ( https://github.com/sprior/swi-mqtt-pack ) to implement the central controller for my home automation system. The system responds to MQTT events and then coordinates the appropriate action by sending MQTT messages to other home services. Recent versions of SWI-Prolog also support…
Re: Ask HN: What are some interesting examples of Prolog?
#37https://github.com/rug-compling/Alpino
Even in the age of neural parsers, it's still one of the most competitive parsers for Dutch.
Re: Ask HN: What are some interesting examples of Prolog?
#38Re: Ask HN: What are some interesting examples of Prolog?
#39Some interesting applications of Prolog specifically include using predicates to filter messages by certain criteria (e.g. if it was sent by the bot's account or not), being able to hot-reload by invoking the make/0 predicate, and homoiconicity to (in theory) easily evaluate random code supplied by a user.
Re: Ask HN: What are some interesting examples of Prolog?
#40Alpino is a natural language parser and generator for Dutch, written largely in (SICStus) Prolog and some C/C++: https://github.com/rug-compling/Alpino Even in the age of neural parsers, it's still one of the most competitive parsers for Dutch.