A high-level API for low-level parallelism in Lua