Show HN: SyNumpy – a Header only C++17 library for working with NumPy Arrays
21 points
1/21/1970
3 days ago
by symisc_devel
Comments
peterabbitcook
3 days ago
rossant
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.
2 days ago
gus_massa
You spelled Fortran wrong :)
We still are using a few Fortran programs mixed with python programs and who know how many other languages. Anyway, we are using text files in ascii, because when something get's wrong it's easier to debug.
20 hours ago
djmips
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.
2 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