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

Investigate using serde in the bindings #25

Open
VivekPanyam opened this issue Jan 20, 2023 · 0 comments
Open

Investigate using serde in the bindings #25

VivekPanyam opened this issue Jan 20, 2023 · 0 comments

Comments

@VivekPanyam
Copy link
Owner

Most of the code in language bindings just does type conversion. If you squint a bit, this fits into serde's definition of serialization/deserialization.

You could implement a serde::Serializer that "serializes" things into PyO3/Neon objects and a serde::Deserializer that does the opposite.

People have done this and implemented things like neon-serde and pythonize. This would significantly simplify boilerplate code in the language bindings, make things easier to maintain, and also make it easier to add support for new languages.

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

1 participant