8 ms·
Guix Workflow Language
- TeMPOraL 7y agoI see a surprising lack of parenthesis for something related to Guix. What's the story behind it?
- jboynyc 7y agoThere are talks by the creators presented at FOSDEM that go into the development of the workflow language. https://archive.fosdem.org/2017/schedule/event/guixworkflowmanagement/ https://archive.fosdem.org/2017/schedule/event/guixworkflowm... https://fosdem.org/2019/schedule/event/guixinfra/ https://fosdem.org/2019/schedule/event/guixinfra/
- chriswarbo 7y agoLisp doesn't need to use s-expressions (i.e. parentheses), that just-so-happens to be the most popular serialisation format. These examples look more like I-expressions to me ( https://srfi.schemers.org/srfi-49/srfi-49.html https://srfi.schemers.org/srfi-49/srfi-49.html ); i-expressions and s-expressions are equivalent and can be converted back and forth trivially. Lisps can also support arbitrary input formats using reader macros, so it might be using that (I haven't looked at the implementation yet).
- blunte 7y agoBut with sexps, if your code suffers some formatting catastrophe (such as all instances of whitespace being reduced to a single space), the sexp code is trivially recoverable/reformattable. Depending on whitespace and indentation creates such fragile code that I can't understand why the trade-off would be made.
- nerdponx 7y agoFormatting catastrophes are exceedingly rare. You have your code in version control anyway, right?
- chriswarbo 7y agoIf that's a concern then serialise using s-expressions. You can still edit using i-expressions or something equivalent if you like (it's trivial to convert, after all). Code on-disk doesn't need to be the same as code in-editor (for example, syntax highlighting isn't saved to disk either)
- shakna 7y agoIt's based around WISP [0], an SRFI that grew out of a couple previous attempts to build alternative syntax. [0] https://srfi.schemers.org/srfi-119/srfi-119.html https://srfi.schemers.org/srfi-119/srfi-119.html
- svd4anything 7y agoI’ve found that combining Nix with Luigi provides a solution to managing complex reproducible workflows. https://luigi.readthedocs.io/en/stable/ https://luigi.readthedocs.io/en/stable/ “Conceptually, Luigi is similar to GNU Make where you have certain tasks and these tasks in turn may have dependencies on other tasks.” Having this directly type of functionality integrated into Guix (an alternative Nix) looks very interesting. I’d encourage the Guix workflow developers to study Luigi and SciLuigi for inspiration on design ideas. I will be sure to follow this effort and see how it progresses.
- jkh1 7y agoQ:How many workflow languages/engines does the world need? A: As many as possible: https://github.com/common-workflow-language/common-workflow-language/wiki/Existing-Workflow-systems https://github.com/common-workflow-language/common-workflow-...
- heavenlyhash 7y agoIs it really so surprising that people continue to iterate and explore the space of possible DSLs -- literally, domain specific languages -- especially when people are solving problems from many different specific domains?
- jkh1 7y agobut many, if not most, are not domain-specific.
- fwip 7y agoThey're specific to the problem domain, which happens to be cross-field. The venerable `make` is a DSL. awk is a DSL.
- zmmmmm 7y agoDepends what you mean by that. For example, in the bioinformatics space it's super common to parallelise a workflow over genomic regions and then merge the results. So I use a tool that has a top level construct for that, literally language syntax which makes that both utterly trivial and extremely robust (for example, deals with the annoying problems of edge effects, overlapping regions, trying not to create breaks in important regions, etc). You can argue all of that is basic parallelism and not domain specific, but in practice it's extremely useful to have these constructs at the language level.
- stilley2 7y agoI've recently been using nipype [0] for workflows, which is fairly domain specific, but pretty nice. 0: https://nipype.readthedocs.io/en/latest/ https://nipype.readthedocs.io/en/latest/
- danielecook 7y agoFor bioinformatics, take a look at Nextflow. I personally think it is miles ahead of the competition having reviewed about a dozen options out there. This looks useful, but can it submit jobs to cloud compute clusters or HPC systems and operate locally? Maybe I’m missing the point in terms of the purpose.
- zekrioca 7y agoIt seems to be used mainly for generic operations (locally available in localhost). However, commands like 'sbatch' (HPC manager system) could theoretically be used to manage the infrastructure.. however, again, I dunno if there would have an integration of such commands natively with guix, though it would be interesting..
- snackematician 7y agoNextflow is indeed the best option today. It's sad that it's based on Groovy though, which seems past its heyday as a language/community. I'm very excited that this is based on Scheme -- I've long wanted a lispy workflow language! I'm a little concerned about the coverage of the Guix package manager though. I guess instead of writing Dockerfiles the user would have to learn to write Guix packages. The "Getting Started" example uses samtools so I guess this is oriented towards a similar bioinformatics audience. However without HPC/Cloud support it's probably not too practical, yet. Addendum: Listened to the FOSDEM 2019 talk, seems like it does support Docker and HPC. However I need AWS Batch support for it to be really useful to me, hopefully that will be implemented at some point.
- vector_spaces 7y agoWhat is a workflow language exactly? What benefits do they bring vs using say Python?
- jkh1 7y agoWorkflow languages are meant to formally describe computational data processing pipelines involving many steps and tools. They are often associated with an engine that allows setting up, running and monitoring of a workflow.
- danielecook 7y agoThe two main things you want out of a workflow language are re-entrancy and a DAG of job dependencies. Re-entrancy is the ability for the workflow to pick up where it left if something crashes (basically via caching or detecting the presence of expected output files). The DAG is a directed acyclic graph of job dependencies: First do A, then B, then C. The DAG is worked out by the workflow manager, and jobs can be managed accordingly. A good workflow manager builds on these ideas further by managing environments, job submission, parallelization, cloud/cluster submission, and other options that make processing large amounts of data a lot easier and more efficient.
- eterps 7y agoWhat are common use cases for this?
- arianvanp 7y agoI wonder why it is not in Guile? I thought one of the selling points of Guix was one config language to rule them all. Or is it some syntactic sugar on top of Guile? It's not clear. The page doesn't really explain the syntax clearly anywhere so I'm a bit confused.
- Sean1708 7y ago> Processes and workflows are composed using a domain specific language embedded in the general purpose language Scheme. They can be executed in order with the guix workflow command. So I guess it's just a set of macros for Guile (which I believe is a Scheme implementation, or contains a Scheme implementation, or something like that...).
- jimhefferon 7y agoGuile is an implementation of Scheme that supports Revised^5 and a good chunk of Revised^6.
- leethargo 7y agoI think it is actually in Guile. Even though there are not parens in sight, this is a whitespace-based syntax for Scheme. I don't have a reference at hand now, but I vaguely remember such a comment from the FOSDEM presentation.
- serhart 7y agoIt is implemented in Guile. The language is just syntactic sugar via macros and utilizes WISP. https://git.savannah.gnu.org/cgit/gwl.git/tree/gwl/sugar.scm https://git.savannah.gnu.org/cgit/gwl.git/tree/gwl/sugar.scm https://srfi.schemers.org/srfi-119/srfi-119.html https://srfi.schemers.org/srfi-119/srfi-119.html
- 1-6 7y agoI love workflow languages. I would really want to make a visual one with input output nodes (in a true GUI fashion). See Autodesk Dynamo for a close concept.
- jkh1 7y agoThere are already a few visual workflow composers, e.g. Rabix,KNIME
- dkimbel 7y agoFor the curious, 'Guix' is pronounced the same way as 'geeks' [0]. 0: https://www.gnu.org/software/guix/manual/en/html_node/Introduction.html#DOCF1 https://www.gnu.org/software/guix/manual/en/html_node/Introd...
- yarrel 7y agoNobody is going to do that. It's goo-icks.
- lfam 7y agoDebian, Ubuntu, UNIX, Linux — none of these have an obvious pronunciation to a native English speaker from USA. Why take such a defeatist attitude? I'm sure you can get the pronunciation right with a little effort.
- michaelmrose 7y agoI also have a hard time saying gaaaa nome or matey like all aboard matey with a straight face or hey you should use the gimp.
- batbomb 7y agoA workflow language is only as good as it’s engine. Nextflow was mentioned. I think what most people want is probably closer to Airflow, although it takes some time getting it up to production in a cloud environment (there is astronomer.io and a GCP product). HTCondor via DAGMan has existed a long time, and there’s even engines built on that (Pegasus, Wings). There’s Swift (http://swift-lang.org/main/ http://swift-lang.org/main/) and it’s successor Parsl. Cray has Chapel. These are a bit different, in that they are more like a distributed computer program. Of course, so is Julia, but built into these languages is the assumption you can be using unreliable, in some way, computing. Makeflow and GNU Parallel are closer to this category too. Then there’s Beam, but that’s dataflow. The crappy thing about this is it’s hard to understand when to use a solution and when to not use a solution. Why are there so many solutions? Because there’s a ton of different needs, and a lot of these focus on a few in particular: Latency Scalability or workers Dynamic Scalability of workers Throughput Polyglot Integration with existing Schedulers Workflow Code Management (container support) Maintainability of very large DAGs Testability of DAGs/Development support Execution Management support/Web APIs Error recovery (especially for long running workflows) Re-execution capabilities Provenance tracking Domain Specificity Data Management (next to data processing) ... the list goes on.
- kinow 7y ago>Because there’s a ton of different needs, and a lot of these focus on a few in particular: Indeed! I am working on Cylc [1] right now, which is a cyclic workflow system, where users need more than DAG. It was created to automate weather forecast operations, but now there are a few cases of users trying to use it for cyclic graphs for more general problems. [1] https://github.com/cylc/cylc-flow https://github.com/cylc/cylc-flow
- djtriptych 7y agoJust regarding Airflow: unless Google has done a lot of work upgrading the internals since embracing Airflow as a supported cloud provider, I would think twice about using it. It's amazing it works at all in my opinion. This file [0] contains much of the complexity as a messy, stateful, monolithic block of Python. Having had to chase down deep bugs / limitations in this software, I'm now convinced that Python, with it's GIL, weak typing, lack of concurrency primitives, and generally OOP / imperative style is just the wrong tool for the job. [0]: https://github.com/apache/airflow/blob/master/airflow/jobs/scheduler_job.py https://github.com/apache/airflow/blob/master/airflow/jobs/s...
- lenkite 7y agohttps://www.commonwl.org/ https://www.commonwl.org/ is pretty good and supported by several workflow engines
- gravypod 7y agoWould something like this make sense for defining machine learning/data science processes? Like obtain, clean, reformat, split (train/test) datasets.
- lkirk 7y agoIt would be nice if this language was extensible to running on various compute cluster managers. From what I can tell, these workflows only run on one machine. I like the bioinformatics tool examples though... you can tell who their target market is ;P