# Pass data structures across different versions of Julia?

**URL:** https://discourse.julialang.org/t/pass-data-structures-across-different-versions-of-julia/6681
**Category:** General Usage
**Created:** [October 25, 2017, 4:50pm UTC](https://discourse.julialang.org/t/pass-data-structures-across-different-versions-of-julia/6681 "2017-10-25T16:50:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rwgardner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rwgardner/32/10344_2.png) [@rwgardner](https://discourse.julialang.org/u/rwgardner)
#### Post date: [October 25, 2017, 4:50pm UTC](https://discourse.julialang.org/t/pass-data-structures-across-different-versions-of-julia/6681/1 "2017-10-25T16:50:54Z")

</div>

I have one piece of code I don’t control in Julia 0.3.12. I have another piece of code that I control that I would like to keep with roughly the latest julia. I need these pieces of code to exchange data fast. For example, I want to be able to send dictionaries, and ideally identical compound types/structs between the processes. (I can get by without the types/structs but dictionaries are important.) Performance is very important.

Does anyone have any recommendations on the best way to effectively serialize things? Would you use HDF5?

I was going to use TCPSocket communication to actually send the data. Would anyone do anything differently?

Thanks.

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [October 25, 2017, 5:42pm UTC](https://discourse.julialang.org/t/pass-data-structures-across-different-versions-of-julia/6681/2 "2017-10-25T17:42:36Z")

</div>

You should try JLD.jl. If that does not work, you’ll probably need to write a custom writer/reader. HDF5 would be fine for that. Also, write the file to a RAM-disk for performance. But honestly, it might be quickest to port the 0.3 code to 0.6.
