Foreach Loops
foreach value in $(seq 1 10)
command $value
end
It should be trivial to implement, but I think it would be a great idea to gain support for a work-stealing for loop. As the Ion shell is written in Rust, it's trivial to implement using either std::thread
and devising a CPU pool, crossbeam and also devising a CPU pool, or futures which already provides a CPU pool. Even better is to implement it so that outputs from each job are printed serially, in order (would require buffering outputs to a temporary location either in memory or on disk).
I can easily do all of the above as I've a lot of experience with this type of thing. Only problem is I'm not sure how Redox gets CPU core counts. It would seem that num_cpu
just gained Redox support, albeit it only returns a core count of 1.