3 ms·
Hi guys, I'm the author. I've been playing with this for a little while, and trying to work out an idiomatic style for it. Suggestions for improvement are most
by lars512 13y ago
Hi guys, I'm the author. I've been playing with this for a little while, and trying to work out an idiomatic style for it. Suggestions for improvement are most welcome.
Some pleasant parts have been writing metapackage rules. For example, playing with Julia yesterday:
% if P is a Julia package, it's also a general package
pkg(P) :- julia_pkg(P).
meet(P, _) :-
julia_pkg(P), !,
% install the package using the Julia interpreter
...
met(P, _) :-
julia_pkg(P), !,
% try to import the package in Julia
...
julia_pkg('PyCall').
julia_pkg('DataFrames').
The only potential problem (on the horizon) is namespacing, which IMHO Babushka does well, but which is less obvious with Prolog's fact system.