design doc for numpy-like API