This proposes a JIT compiler which can e.g. increase parallelism inside a chain of pipelined commands:
We propose a dynamically triggered optimization regime for the shell
that we call Jash, short for ‘Just a shell’. Jash inspects each shell
command as it comes in to identify candidates for rewriting.