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

Adding reference to Serialization Package #532

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

limarta
Copy link
Contributor

@limarta limarta commented May 8, 2024

This PR adds a link to an experimental package called GenSerialization.jl for serializing traces in long term storage.

@limarta limarta requested a review from sritchie May 8, 2024 23:18
@sritchie
Copy link

sritchie commented May 9, 2024

Does this really enable long-term storage? Is it the case that I can serialize with one version of Julia and then deserialize with another?

@@ -0,0 +1,29 @@
# [How to Serialize Traces for Storage](@id how_to_serialize)

For emphemeral storage of Dynamic Traces, `Serialization.jl` works well. For long term storage, however, you will likely run into issues using `Serialization.jl` since traces internally track function pointers (recall `Trace`s may contain function pointers). For this, you can try the experiemental [`GenSerialization.jl`](https://github.com/probcomp/GenSerialization.jl) which still uses `Serialization.jl` but can properly discard function call data.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, "emphemeral"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, "experiemental"

The same generative function used to save out the trace must be defined at runtime before deserialization.

!!! note
See the repo for warnings and limitations.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a link to the repo, where the person is supposed to look

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

Successfully merging this pull request may close these issues.

None yet

2 participants