Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Prolog


I don’t see any job ads requiring Prolog. So maybe not the best choice.


What 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.


> 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 has some useful discussion, and https://news.ycombinator.com/item?id=29539384 talks about its use in network software.


It'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).


I used it one time professionally to build an expert system to fill out a very complex financial form for 4k accounts.


2022 not 1992


You 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.


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: