NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Show HN: SyNumpy – a Header only C++17 library for working with NumPy Arrays (github.com)
peterabbitcook 1 days ago [-]
I’m trying to wrap my head around the use case this was created for. If a python service dumps a numpy array to bytes and sends that as a payload to a C++ service, is that blob of bytes not interpretable by C++ as e.g. a struct with some size fields and a pointer to the start of the array? (Cutting out the filesystem/npy file)

Maybe I’m overthinking it but I can’t quite envision a use case where a python service and C++ service would be sharing a filesystem

rossant 22 hours ago [-]
Many research labs generate GBs of data as npy files. Having readers in languages other than Python is useful when you have programs in other languages that need to process them.
djmips 23 hours ago [-]
Since an .npy file is the standard binary format for saving a single NumPy array to disk I guess I can imagine a situation where people are doing so.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 04:24:59 GMT+0000 (Coordinated Universal Time) with Vercel.