15 ms·
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 https://en.wikipedia.o
by hwayne 3y ago
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 https://en.wikipedia.org/wiki/B-Prolog
- OhMeadhbh 3y agoTHX 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.
- hakank 3y agoYes, 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 http://hakank.org/picat/v3_utils.pi . Also, see http://hakank.org/picat/#v3 http://hakank.org/picat/#v3 for some examples of ported Prolog programs.