5 ms·
Prolog
by brisad 5y ago
Prolog
- worik 5y ago2022 not 1992
- bovermyer 5y agoYou should be aware that implementations of Prolog are still being released. Erlang was originally based on it. I'm guessing from your comment that you don't work on anything related to AI.
- worik 5y agoI wrote a lot of Prolog In 1992 I thought declarative programming was the way of the future. I was wrong. It is useful in a small set of cases but generally speaking procedural programming (still) rules the roost. It seems everybody is learning lessons learnt in the 1950s over and over again.
- echelon 5y agoWhat a horrible answer. Prolog is hard to write. When you modify it, you have to understand the logical world state. Outside of academia, there's no use for prolog.
- yjftsjthsd-h 5y ago> Outside of academia, there's no use for prolog. Prolog certainly has been used in industry; https://en.wikipedia.org/wiki/Prolog#Use_in_industry https://en.wikipedia.org/wiki/Prolog#Use_in_industry has some useful discussion, and https://news.ycombinator.com/item?id=29539384 https://news.ycombinator.com/item?id=29539384 talks about its use in network software.
- Jtsummers 5y agoIt's not a horrible answer, though it wouldn't make my top 3 list. Learning different models of programming is almost always worthwhile, though how much time you put in will depend on your objectives. Languages and systems in the declarative/logical/relational vein like Prolog, minikanren, and others are worth examining at least once. If you grok them, it can be very handy with prototyping, even if it doesn't make it into production. And if you really grok them, you can Greenspun a Prolog into your system more effectively when it turns out its model is actually appropriate to a portion of the system. With regard to this, though: > When you modify it, you have to understand the logical world state. That's true of any non-trivial program someone may write and/or modify. Changing without understanding is just going to get your garbage (perhaps functional garbage, but still garbage).
- tmaly 5y agoI used it one time professionally to build an expert system to fill out a very complex financial form for 4k accounts.
- mbrodersen 5y agoI don’t see any job ads requiring Prolog. So maybe not the best choice.