News for hackers. Stuff that matters.
Re:Marelle: logic-based devops with Prolog by nodata on Wednesday August 07, 2013 @06:35AM (#6171875)
This looks like scripting to me, not describing the desired state of a system:

    % we can install by running apt-get in shell
    meet(python, linux(_)) :-
      % could also use: install_apt('python-dev')
      bash('sudo apt-get install -y python-dev').
Re:Marelle: logic-based devops with Prolog by artificialidiot on Wednesday August 07, 2013 @06:51AM (#6171933)
Give them a break. It is not prolog had been hip for a long time. Using it more idiomatically will take some practice, maybe a few web frameworks and a couple of package managers.
Re:Marelle: logic-based devops with Prolog by nodata on Wednesday August 07, 2013 @07:25AM (#6172034)
Give them a break? Why? They're trying to push this as a better way of managing a system.
Re:Marelle: logic-based devops with Prolog by artificialidiot on Wednesday August 07, 2013 @07:56AM (#6172160)
Another failure for getting my point across on my part.

I don't see that we disagree that it is a feeble attempt at best. But consider this, who are we to judge the merits of that particular thing without more than a cursory examination? His project may as well be just a seed round away from becoming the next buzzword which people would wax poetic in the next few years. Also, logic programming is well positioned to be the next big thing discovered by the web developers because of its relative obscurity and functional programming losing its mystery.

Give them a break. It is just one of the hundreds of hopeful toy projects posted here, of which only a handful that haven't been shot down within ten seconds.

Re:Marelle: logic-based devops with Prolog by nodata on Wednesday August 07, 2013 @08:08AM (#6172209)
You're right: it might be.

But it also might not.

And without him explaining the advantage of his approach, the project will be ignored by anyone who has used a system that shares his goal.

Re:Marelle: logic-based devops with Prolog by lars512 on Wednesday August 07, 2013 @07:33PM (#6176384)
You describe the desired state in your met block, or more properly, tests meant to indicate if your desired state is met.

Your meet block is the scripting which is supposed to get you there, but which is considered fallible. The met block checks after to see if it actually worked.

Re:Marelle: logic-based devops with Prolog by mcguire on Wednesday August 07, 2013 @03:30PM (#6175054)
So, how do you describe how to install a package without looking like "scripting"?
Re:Marelle: logic-based devops with Prolog by nodata on Thursday August 08, 2013 @06:06PM (#6182291)
Package { "bash": ensure => installed }