p-machinery