Re:Vine: A programming language based on Interaction Nets
by ngruhn on Sunday February 23, 2025 @11:39AM
(#43150670)
Prolog also has constraints! You need to import a library called CLP(FD) / CLP(Z) (depending on the Prolog system) and instead of =, <, =<, etc. you need to use #=, #<, #=<, etc.
With that (and an additional variable for the temporary minimum) it works for me:
https://swish.swi-prolog.org/p/qgchfMfB.pl
[ Parent
| on HN ]
Re:Vine: A programming language based on Interaction Nets
by anonzzzies on Sunday February 23, 2025 @01:24PM
(#43151659)
OW! Thanks, I did not know about that. Last I user Prolog was mid 90s, but I really liked it, just did not have any practical use for it after graduation. Thanks for that!