Open XVilka opened 5 years ago
This is an entirely different project
I do not see how this information could be of any practical use for implementing a Prolog system.
From an implementor's viewpoint, this kind of code is miles away from where it's at.
It is not exactly a feature request, more like a food for thought. It might be applicable to the Scryer Prolog, and might be not. One of the popular cases to use logic programming - using just a "subset" of Prolog - Datalog. And quite often - just generating the efficient native code based on these rules. One of the examples is Souffle Language (GitHub repo). But it processes its own superset of Prolog. And it generates C++ code as an output. I just thought one of the possible cases (maybe just some subset of the ISO Prolog) would be generating Rust code instead. Thanks for reading up to this point.
For example rule like
is translated into a loop nest similar to