Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap compression functions in the C library #4

Open
jkmacc-LANL opened this issue Aug 19, 2021 · 5 comments
Open

Wrap compression functions in the C library #4

jkmacc-LANL opened this issue Aug 19, 2021 · 5 comments

Comments

@jkmacc-LANL
Copy link
Member

jkmacc-LANL commented Aug 19, 2021

Currently, only e_decomp in the C library is wrapped, but there are a number of other useful functions. For example, I've not exposed any compression routines. This was partly due to time constraints (and I'm not convinced the world needs more e1 data 😉 ), but certainly this could be done.

@samuelchodur
Copy link

Could you please confirm that a big-endian machine is required to compress using e1? If so, any suggestions on how to develop/test the wrapped code? I went down the road of using QEMU to create a big-endian emulation but TBH it was not as straight-forward as I had hoped. I am having trouble finding an OS (and the patience) to do the emulation. I tried FreeBSD and AlmaLinux. I didn't have the gumption to learn how to install an updated version of Python in FreeBSD nor even get the AlmaLinux installation completed.

@jkmacc-LANL
Copy link
Member Author

@samuelchodur We use this library on little endian machines (not via Python, but the same library). Big endian should not be necessary.

@jkmacc-LANL
Copy link
Member Author

@samuelchodur, have you tried this on little-endian?

@samuelchodur
Copy link

@samuelchodur We use this library on little endian machines (not via Python, but the same library). Big endian should not be necessary.
@samuelchodur, have you tried this on little-endian?

Thanks for the information about using the C library. I was not getting the expected results when compressing, so I was hoping lack of big endian was the issue 😃. Admittedly, I haven't used the ctypes library very much (nor written much C) so when I have some time I will try some more to get compression from Python working.

@jkmacc-LANL
Copy link
Member Author

That'd be awesome! ctypes wasn't too hard to work with👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants