Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: probcomp/Gen.jl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 48dc9bdf0c6f113abefd972e5ad6bf51a8f42f4f
Choose a base ref
..
head repository: probcomp/Gen.jl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6f011b9d8d0be524eeb41a81a79bcf8131955aa9
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/src/how_to/serialization.md
6 changes: 3 additions & 3 deletions docs/src/how_to/serialization.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# [Saving Traces between REPL Sessions](@id how_to_serialize)

When saving a trace to disk, it is likely to run into issues using `Serialization.jl` since traces internally track function pointers (recall `Trace`s may contain function pointers). Instead, you can try the experiemental [`GenSerialization.jl`](https://github.com/probcomp/GenSerialization.jl) which uses can discard function call data. This is most useful for check-pointing work (e.g. inference) between different REPL sessions on the same machine.
When saving a trace to disk, it is likely to run into issues using `Serialization.jl` since traces internally track function pointers (recall `Trace`s may contain function pointers). Instead, you can try the experimental [`GenSerialization.jl`](https://github.com/probcomp/GenSerialization.jl) which can discard function call data. This is most useful for check-pointing work (e.g. inference) between different REPL sessions on the same machine.

Since `Serialization.jl` is used underneath, similar restrictions apply (see [`serialize`](https://docs.julialang.org/en/v1/stdlib/Serialization/#Serialization.serialize)). Please not we do not guarantee portability between different machines and have yet extensively test this.
Since `Serialization.jl` is used underneath, similar restrictions apply (see [`serialize`](https://docs.julialang.org/en/v1/stdlib/Serialization/#Serialization.serialize)). Please note we do not guarantee portability between different machines and have yet to extensively test this.

!!! note
See the repo for warnings and limitations.
See the repository for warnings and limitations.


An example: