News for hackers. Stuff that matters.
Re:Is There a Smarter Path to Artificial Intelligence? Some ... by PaulTarau on Monday July 02, 2018 @08:56PM (#17446639)
One can encapsulate backtracking simply as an iterator over a stream of answers to a query. The SWI_prolog ecosystem provides a nice "logic engine" abstraction for that, see http://www.swi-prolog.org/pldoc/man?section=engines . That gives something similar to Python's yield operation. Backtracking inside an engine allows one to implement some neat algorithms in space proportional to your data, without invoking garbage collection.

There are no comments on this comment yet.