3 ms·
I use it. Not regularly, not for production, but it's cute for rapid prototyping. Last time I had to write a rule-learning-inspired [1] algorithm with a custom
by radomir_cernoch 7y ago
I use it. Not regularly, not for production, but it's cute for rapid prototyping.
Last time I had to write a rule-learning-inspired [1] algorithm with a custom hypothesis language. Prolog has the advantage that you can experiment with different search strategies (depth-first search, breadth-first search, informed search, ...) very quickly. Also, given that SWI Prolog can be used without a build system, it is as quick to bootstrap as to write a BASH script. Not even unit tests need a library nor dependencies...
So my use-case for Prolog is:
- prototyping,
- that involves some kind of searching,
- first-order logic, or at least some kind of pattern matching involved and
- no fancy I/O (parsing binary data), because this is IMHO Prolog's weak point.
[1] https://en.wikipedia.org/wiki/Association_rule_learning https://en.wikipedia.org/wiki/Association_rule_learning