3 ms·
> There needs to be a modern language that looks friendly, is compatible with shell, and is apart of the shells environment. Julia: https://docs.julialang.org/
by dunefox 5y ago
> There needs to be a modern language that looks friendly, is compatible with shell, and is apart of the shells environment.
Julia: https://docs.julialang.org/en/v1/manual/running-external-programs/ https://docs.julialang.org/en/v1/manual/running-external-pro...
julia> prefixer(prefix, sleep) = `perl -nle '$|=1; print "'$prefix' ", $_; sleep '$sleep';'`;
julia> run(pipeline(`perl -le '$|=1; for(0..5){ print; sleep 1 }'`, prefixer("A",2) & prefixer("B",2)));
B 0
A 1
B 2
A 3
B 4
A 5