zlacker

[parent] [thread] 3 comments
1. bradle+(OP)[view] [source] 2024-10-13 06:04:58
I didn't read past the abstract, but it sounds like they are just transforming logic-based programs into function-based programs. But: if I wanted functional programming, I wouldn't be writing in Prolog.

What would be interesting, would be to replace depth-first search while remaining in the world of predicates and Horn clauses.

replies(3): >>usgrou+O4 >>harper+We >>YeGobl+sL
2. usgrou+O4[view] [source] 2024-10-13 07:17:39
>>bradle+(OP)
functional logic programming is not equivalent to functional programming.
3. harper+We[view] [source] 2024-10-13 09:36:02
>>bradle+(OP)
Naïvely, writing only one logic relation of n parameters is about equivalent to writing n^2 functions (just decide for each parameter whether you give it or not as input). So there clearly is value there.

I say naïvely because on one hand you might not need all versions of the function, but on the other one you can also provide partial values, so it’s not either input or output.

4. YeGobl+sL[view] [source] 2024-10-13 14:52:16
>>bradle+(OP)
>> What would be interesting, would be to replace depth-first search while remaining in the world of predicates and Horn clauses.

For that you want tabled Prolog, or in other words Prolog executed by SLG-Resolution. The paradigmatic implementation is XSB Prolog:

https://xsb.com/xsb-prolog/

SWI-Prolog also supports tabling but I think the XSB implementation is more mature.

[go to top]