one of the best parts of the luaposix library is how you can just. pipe functions into commands or pipe commands into functions
it forks the lua interpreter when it sees a function, in exactly the same way bash forks into a subshell when you pipe into/out of a bash function