chapel icon indicating copy to clipboard operation
chapel copied to clipboard

[Feature Request]: Chapel and Python file communication via Pickle

Open Iainmon opened this issue 1 year ago • 3 comments

Summary of Feature

Description: Being able to have chapel/python file reading and writing via Python's pickle system. Is this issue currently blocking your progress?

Yes

Iainmon avatar Jul 26 '24 21:07 Iainmon

Does Python provide a C API to their pickling system? Is their pickling format open and stable across releases?

bradcray avatar Jul 26 '24 22:07 bradcray

@bradcray It looks like there are C++ bindings for pickling: https://www.picklingtools.com/ . I am not sure how widely this format is used and am new to it, but it seems to be the standard data encoding format for the python community.

Iainmon avatar Jul 26 '24 22:07 Iainmon

I would say "a standard data encoding format" rather than "the standard data encoding format". Pickle was one of the options I encountered when deciding what program to use to support our Python interoperability. So it's been around for a few years. I can't speak for its stability, having not looked into it beyond determining if it was a good fit for what we were trying to accomplish at the time.

lydia-duncan avatar Jul 29 '24 15:07 lydia-duncan