68 points · by vyuh · 7y ago · 39 comments
In this case we seem to be talking about "Scientific Computing Workflow" or some sort of data pipeline. (As opposed to some sort of "Enterprise" workflow)
People seem to use workflow for all of these things:
#1 Business process modeling and automating platforms - Camunda, BPMN, jBPM etc.
#2 Assembling together software functions (also called tasks, sometimes) for getting an output data - Airflow, Cadence, CWL is related too.
#3 Moving one entity (bug, document, deal) through different stages of a state machine, until the entity reaches an end state - Sharepoint workflow, Zoho Orchestly, Comala workflows
#4 Orchestrating several apps together for automating something, usually as reactions for events - Zapier
When developers talk about workflows, it's mostly about #2. When business people talk about workflows it's mostly about #1. When managers/leads of a team talk about workflows it's mostly about #3.
We should accept that Workflow as a word is too ambiguous, and come up with what kind of workflow category the tool belongs to, before branding it as an "one stop solution for all things workflow".
So, more along the lines of https://en.wikipedia.org/wiki/Dataflow_programming. A good problem space to bring declarative/functional/logic/concatenative concepts and tools, IMO, as opposed to the ubiquitous “hit it with a rock” of the usual C* suspects. Be great to see real progress here, but my bullshit detector is immediately dialed to MAX.
The great problem with “workflow systems” is that they very easily disappear up their own ass: “Potemkin solutions” that solve every problem except the customer’s own. (See: https://thedailywtf.com/articles/The_Inner-Platform_Effect). “Enterprise workflows” in particular I think are just a way for indolent code monkeys to shirk learning how the business works for themselves. Looks all very impressive without ever solving shit.
..
FWIW I do think Alan Kay was onto something with his Nile strategy (https://news.ycombinator.com/item?id=10535364). Pity there wasn’t followthrough (bit of a mayfly, Kay). Ditto Iverson and APL, although APL’s sidelining was more down to a nascent Programming Profession redefining Programming™ to be what they do for users rather than what users (mathematicians in this case) do for themselves.
In which case, why didn’t you just use bash?
Yeah, I know bash stinks. But this is not my fist rodeo* so I’m struggling here to see how CWL stinks less. See again: Inner-Platform Effect, Greenspun’s Tenth Rule.
--
* i.e. I already know how easily “workflow engines” go up their own arse because I’ve done it myself. And CWL fails the same sniff test. Not a good start.
The goal is to provide a way to describe dataflow processes that is highly portable, auditable, and reproducible. This is incredibly important in research, clinical, and regulatory domains where you need to be able to show how you came up with a result.
It's not a general purpose language on purpose, and operational concerns like notifications are the domain of specific implementations (engines).
I agree the syntax is horrible (and I designed most of it) but it also makes it easy to write programs that read and write CWL, enabling an ecosystem. For example, here is a transpiled languages that emits CWL:
Just plain old bash seems to work just fine, though. It is simple and gives you a lot of portability to HPC clusters and general purpose cloud. Not hardwiring to a configuration file and not using an, in practice, un-portable workflow language saves you a lot of pain.
A truly portable cloud/hpc module for python would be a good solution.
Any information about which language is leading the field?
CWL seems to be more popular than WDL, as far as I can tell, but Nextflow is probably more popular than both.
At least the Nextwave homepage (https://www.nextflow.io/) starts with a clean concrete written example, even if it does leave you to deduce its actual meaning for yourself.
See also: Greenspun’s Tenth Rule, “Yo Dawg…”.
You can find some CWL workflows on dockstore [1].
[0] https://www.ga4gh.org/ [1] https://dockstore.org/search?descriptorType=CWL&searchMode=f...
Those who can’t, implement Standards.
Look no further than their own hand-crafted examples (confusingly called "Episodes") for compelling arguments for why to NOT use Common Workflow Language.
Your comment almost gets there, but not quite—and then it sinks itself lower by breaking this one:
"Don't be snarky."
https://news.ycombinator.com/newsguidelines.html
Can you please take the guidelines a bit more to heart when posting here? We'd appreciate it.