News for hackers. Stuff that matters.
Re:The Power of Prolog by hooby on Tuesday September 12, 2023 @03:37AM (#37477889)
I had to do a little bit of Prolog back in University, decades ago, and it broke my head.

I managed to actually solve all the programming tasks we were given (and as I was the only one to do so among my peers, many copied my solutions) - but if anyone then asked me to explain how I did it, I was at a loss. I basically stared at the screen until some sort of intuition hit, and if that didn't work, repeat the process until it does...

I guess the paradigm never really "kicked in" for me ;)

Re:The Power of Prolog by xlii on Tuesday September 12, 2023 @05:30AM (#37478617)
Can I suggest adding it to a "when I'm REALLY bored" list? ;-)

It took me years for Prolog to kick in and it did when I was trying to... optimize my taxes in a very complex context (e.g. where I live there's a VAT difference on ketchup depending if it's sold on the fresh hot-dog or wrapped one).

But since then I try to advocate and use it as often as I can. Mostly because paradigm is super fun to work with and refreshing after all day of working on "normal" languages.

Re:The Power of Prolog by bux93 on Tuesday September 12, 2023 @05:43AM (#37478722)
I had the same experience at university.

Then, say 5 years later, it "kicked in" and I kept wondering "why isn't this implemented in prolog?" at many, many points.