From: Roel Janssen <roel@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Workflow management with GNU Guix
Date: Tue, 25 Oct 2016 15:28:00 +0200 [thread overview]
Message-ID: <87wpgwimn3.fsf@gnu.org> (raw)
In-Reply-To: <87wpmvyocy.fsf@gnu.org>
[-- Attachment #1: gwl.tar.gz --]
[-- Type: application/gzip, Size: 6419 bytes --]
[-- Attachment #2: workflow-language.pdf --]
[-- Type: application/pdf, Size: 664813 bytes --]
[-- Attachment #3: Type: text/plain, Size: 2725 bytes --]
Ludovic Courtès writes:
> Hello Guix!
>
> Roel Janssen <roel@gnu.org> skribis:
>
>> So, I would like to propose a new Guix subcommand and an extension to
>> the package management language to add workflow management features.
>>
>> Would this be a feature you are interested in adding to GNU Guix?
>
> I don’t know if it should be in Guix itself (and it’s probably too early
> to think about it), but there’s definitely interest in it!
>
> Pjotr mentioned it before, and Ricardo started a thread on this topic on
> help-guix in February¹, where we discussed something similar to what you
> proposed. I agree with you that Guix should be a nice tool for the job.
>
> ¹ https://lists.gnu.org/archive/html/help-guix/2016-02/msg00019.html
>
>> I'm currently working on a proof-of-concept implementation that has three
>> record types/levels of abstraction:
>> <workflow>: Describes which <process>es should be run, and concerns itself with
>> the order of execution.
>>
>> <process>: Describes what packages are needed to run the programs involved,
>> and its relationship to other processes. Processes take input and
>> generate output much like the package construction process.
>>
>> <script>: Short and simple imperative instructions to perform a task. They are
>> part of a <process>. Currently, my implementation generates a shell
>> script that can be either Guile, Sh, Perl or Python.
>
> In the previous discussion, I thought that a gexp would be enough to
> write a derivation that implements a workflow. That is, basically you’d
> write:
>
> (define (my-workflow input)
> (gexp->derivation "result" #~(process-the-thing #$input #$output)))
>
> Maybe it’s all it takes to represent a workflow? Or maybe my idea of
> what workflows look like is too naive.
>
>> The subcommand I envision is:
>> guix workflow
>>
>> With primarily:
>> guix workflow --run=<name-of-workflow-definition>
>>
>> If you are interested in adding any form of workflow management to GNU Guix, I
>> can elaborate on my proof-of-concept implementation, so we can work from there.
>> (or throw everything out of the window and start from scratch ;-))
>
> I’m interested in seeing what it’s like, and examples of it!
I realize I never shared my proof-of-concept implementation. I attached
my motivations for having a workflow language in Guix, and my code.
The subcommand "guix workflow" does not work (yet) here. I currently
execute a workflow directly from the REPL.
A final point to note is that I would like to do a second attempt at
designing the workflow language, changing the way we can execute
programs.
Kind regards,
Roel Janssen
next prev parent reply other threads:[~2016-10-25 13:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 8:43 Workflow management with GNU Guix Roel Janssen
2016-05-12 11:41 ` Taylan Ulrich Bayırlı/Kammer
2016-05-12 16:06 ` Ludovic Courtès
2016-10-25 13:28 ` Roel Janssen [this message]
2016-10-26 12:41 ` Ludovic Courtès
2016-10-26 13:41 ` Roel Janssen
2016-10-28 13:15 ` Ludovic Courtès
2016-10-28 14:40 ` Roel Janssen
2016-10-28 15:27 ` Ludovic Courtès
2016-10-28 17:25 ` Roel Janssen
2016-10-29 20:56 ` Ludovic Courtès
[not found] ` <idjfutnih58.fsf@bimsb-sys02.mdc-berlin.net>
2016-05-16 12:22 ` Ricardo Wurmus
2016-06-14 9:16 ` Roel Janssen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpgwimn3.fsf@gnu.org \
--to=roel@gnu.org \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).