You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 aserde::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.
The text was updated successfully, but these errors were encountered: