News for hackers. Stuff that matters.
Re:Dgsh – Directed Graph Shell by j88439h84 on Thursday December 05, 2019 @01:58AM (#21710490)
Python's mario is another terminal-oriented tool with concurrent task execution, but with async concurrency rather than multiprocess parallelism.

For example, to get a bunch of urls concurrently

$ mario async-map 'await asks.get ! x.text' < urls.txt

https://github.com/python-mario/mario

Re:Dgsh – Directed Graph Shell by IggleSniggle on Thursday December 05, 2019 @11:19AM (#21713542)
Was mario inspired by spotify's luigi? Coincidence?

https://github.com/spotify/luigi

Re:Dgsh – Directed Graph Shell by dang on Wednesday December 04, 2019 @10:55PM (#21709853)
Re:Dgsh – Directed Graph Shell by IggleSniggle on Thursday December 05, 2019 @11:15AM (#21713509)
Thanks for posting that. There is good additional discussion there.

Edit: SciPipe looked particularly interesting. https://github.com/scipipe/scipipe

Re:Dgsh – Directed Graph Shell by Legogris on Thursday December 05, 2019 @03:08AM (#21710706)
Thanks for sharing - I was previously pondering a bit how a generic graph pipe shell syntax would look - I might try this out myself soon :)
Re:Dgsh – Directed Graph Shell by keid on Thursday December 05, 2019 @02:29PM (#21715558)
1980, operating systems class, write a shell for UNIX. I thought I'd be clever and do more than simple pipes, so I created some syntax to enable the specification of a directed graph. It's pretty neat to see that someone has now done this industrial strength.
Re:Dgsh – Directed Graph Shell by kedean on Thursday December 05, 2019 @04:34PM (#21716821)
I think it's a pretty natural idea. According to Brian Kernighan's memoir, the original vision for pipes was more like a mesh than the omnidirectional flow we ended up with:

"Doug wanted to allow arbitrary connections in a sort of mesh of programs, but it was not obvious how to describe an unconstrained graph in a natural way, and there were semantic problems as well: data that flowed between programs would have to be queued properly, and queues could explode in an anarchic connection of programs. And Ken couldn't think of any real applications anyway."

My first thought when reading over the docs for dgsh is always something similar...what's the real application? What does it gain me other than some mathematical elegance that I don't lose in harder to read scripts? The examples all pretty much collapse to doing things in parallel and collecting them via cat, which seems a little basic for something as abstract as a DAG.

Re:Dgsh – Directed Graph Shell by elmolino89 on Friday December 06, 2019 @03:39AM (#21720118)
Interesting effort. On the other hand there is a bunch of other more popular and battle tested tools from Apache Airflow to a bioinformatics pipelines managers, such as Nextflow, Snakemake etc.
Re:Dgsh – Directed Graph Shell by sdan on Thursday December 05, 2019 @04:12AM (#21710956)
Looks pretty interesting (automatically deleting duplicate files). Bookmarking to see if I can utilize this!
Re:Dgsh – Directed Graph Shell by SeriousM on Thursday December 05, 2019 @01:51PM (#21715078)
Dgsh sounds like dogshit... Sorry
Re:Dgsh – Directed Graph Shell by sdegutis on Thursday December 05, 2019 @02:13PM (#21715361)
Weird, my first thought when reading it was a character from Morrowind...