Parallel primitives

This PR is not complete and serves to discuss ongoing development.