6 ms·
One clever hack I've seen is Yield Prolog (https://yieldprolog.sourceforge.net/ https://yieldprolog.sourceforge.net/) which basically translates the querying/ba
by mmatants 4y ago
One clever hack I've seen is Yield Prolog (https://yieldprolog.sourceforge.net/ https://yieldprolog.sourceforge.net/) which basically translates the querying/backtracking execution model into mainstream language syntax - such as JS, Python or C# - using the `yield` keyword and loops. Supports things like variable unification, too.