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

Provide an extensible mechanism for serializing across runtimes #7

Open
RutledgePaulV opened this issue Dec 3, 2017 · 2 comments
Open

Comments

@RutledgePaulV
Copy link
Owner

RutledgePaulV commented Dec 3, 2017

Because clojure itself is loaded in a separate classloader it means that non-primitives don't transmit across the class loader boundary in a consumable way. By providing a hook on the root and the runtime side I should be able to let users define their own serialize/parse hooks per data type if they need to send results back and forth. Minimally, this library could take care of it for core clojure data types.

An example of this problem can be seen in this:

(with-runtime runtime :dummy)
=> #object[clojure.lang.Keyword 0x6358bfef ":dummy"]

(keyword? (with-runtime runtime :dummy))
=> false
@RutledgePaulV
Copy link
Owner Author

RutledgePaulV commented Dec 3, 2017

edn data can just be serialized / deserialized.

Functions could be stored and the var location transmitted and wrapped in a function on the other side.

Things like namespaces or other meaningful / stateful objects should probably be left to the discretion of users, not me.

@lednubr
Copy link

lednubr commented Feb 2, 2022

Hello! Do you think is this a good approach to achieve serialization? https://github.com/ptaoussanis/nippy

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