Re:Marelle: logic-based devops with Prolog
by lars512 on Wednesday August 07, 2013 @07:38PM
(#6176406)
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.
Some pleasant parts have been writing metapackage rules. For example, playing with Julia yesterday:
The only potential problem (on the horizon) is namespacing, which IMHO Babushka does well, but which is less obvious with Prolog's fact system.