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

Looks Prolog-ish. Interesting, thanks for sharing.


AFAICT Picat is a direct descendant of B-Prolog and shares a lot of idioms (like tabling) with it. https://en.wikipedia.org/wiki/B-Prolog


Yes, the underlying engine of Picat is - a slightly altered- B-Prolog, which is available as the "bp" module, from which one can use many of traditional Prolog constructs, for example `bp.length/2` instead of Picat's `length/1` function. This can help when porting Prolog programs to Picat. In fact, quite a few Prolog programs can be run directly in Picat, perhaps with just some few adjustment.

For some example of the available predicates in the bp module, see my http://hakank.org/picat/v3_utils.pi . Also, see http://hakank.org/picat/#v3 for some examples of ported Prolog programs.


THX for the reference. I used Prolog a fair amount in the 90s, but didn't know about B-Prolog. Now I do.

And I came here to make @rad_gruchalski's comment. So... thx for making that comment so I don't have to.




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

Search: