Re:Python: Generators, Coroutines, Native Coroutines and Asy...
by luhn on Saturday December 05, 2015 @08:19PM
(#10683984)
A program as a DAG.... Whoa. That's an interesting concept to try to wrap your mind around.
[ Parent
| on HN ]
Re:Python: Generators, Coroutines, Native Coroutines and Asy...
by harlowja on Saturday December 05, 2015 @10:00PM
(#10684196)
Just fyi, a library openstack (and myself and others) has created (in python) basically lets u program your workflow (really dataflow) as a DAG, and then the library will run it reliably (and in parallel and so-on). I'm more than willing to answer questions about how it does that if people are interested...
http://docs.openstack.org/developer/taskflow/
https://pypi.python.org/pypi/taskflow
And yes u can do things like built equation solvers to:
http://docs.openstack.org/developer/taskflow/examples.html#l...
And other neat things:
Re:Python: Generators, Coroutines, Native Coroutines and Asy...
by glittershark on Sunday December 06, 2015 @01:13PM
(#10685973)
That's exactly how Haskell's IO monad works (albeit a little simplified)