4 ms·
IMHO Prolog is mostly a way of thinking, of designing your software. Making a blazingly fast compiler is an art, but the basic interpreter at the heart of prolo
by pipo234 3y ago
IMHO Prolog is mostly a way of thinking, of designing your software. Making a blazingly fast compiler is an art, but the basic interpreter at the heart of prolog is fairly straight forward to design yourself. Prolog isn't as old as LISP, but keep in mind it had useful applications on contemporary hardware in the 1970s.
If you're interested in doing Prolog with Python, have a look at projects like:
https://github.com/photonlines/Python-Prolog-Interpreter https://github.com/photonlines/Python-Prolog-Interpreter
- 59nadir 3y agoI worked with a guy that was doing natural language analysis of some sort in Prolog for a contract (we worked at a game development studio, so this was entirely external). I asked him how he actually used it and he basically said what you wrote here: He implemented his own interpreter (in C#) and limited backtracking considerably (as far as I understood) in order to make it useful performance-wise for their use case.