News for hackers. Stuff that matters.
Re:Prolog for Data Science by jpgvm on Sunday May 07, 2023 @07:09PM (#35856469)
It really is a shame that none of the other 4th gen declarative languages (outside of SQL) really took off.

There is a certain clarity of purpose declarative code has that I find really pleasing.

Also I'm lazy and I prefer if the computer thinks for me.

Re:Prolog for Data Science by Vaslo on Sunday May 07, 2023 @07:17PM (#35856514)
There’s absolutely nothing clear about this.
Re:Prolog for Data Science by Guthur on Sunday May 07, 2023 @08:51PM (#35856985)
You are correct, there is nothing clear about your comment...
Re:Prolog for Data Science by kristiandupont on Monday May 08, 2023 @02:41AM (#35858802)
Not knowing Prolog (or any other "4th gen declarative langauge", besides from SQL), I don't know if it's any different but my main peeve with anything fully declarative is that it can be deceiving. One expression computes fine and then you change it in a seemingly insignificant way and suddenly it's three orders of magnitude slower, because underneath the surface, it still translates into loops and jumps, only now you don't know which ones.
Re:Prolog for Data Science by matejn on Monday May 08, 2023 @03:59AM (#35859154)
Prolog's execution model is well defined so there shouldn't be any surprises to the proficient programmer. I'd argue it's less surprising than what a C optimizing compiler does.