Julia’s Cmd
is awesome. It’s very exciting that you are planning to turn it into a mini shell DSL. I also think that subprocess API can be improved further by stealing some high-level APIs from Python subprocess
because some of them are actually nice. For example, sending data to subprocess stdin and reading stdout at the same time without a deadlock is somewhat non-trivial in Julia at the moment while Python has Popen.communicate
exactly for that. Also, relatively new Python has subprocess.run
which makes it possible to do this in one line.
5 Likes