# Status of libraries for saving binary files: composite datatypes

**URL:** <https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809>\
**Category:** General Usage\
**Tags:** hdf5, jld2, bson\
**Created:** [February 18, 2020, 12:55pm UTC](https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809 "2020-02-18T12:55:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipelle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fipelle/32/4772_2.png) [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Post date:** [February 18, 2020, 12:55pm UTC](https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809/1 "2020-02-18T12:55:34Z")

</div>

Hi,

I am having some serious trouble saving composite datatypes.

For small output files, BSON works fine. However, in cases where it is hard to split the output into many chunks, I tried to use JLD2. Unfortunately, this comes with all sort of issues. The discussion in [Can't read old JLD2 file - #16 by Tomas\_Pevny](https://discourse.julialang.org/t/cant-read-old-jld2-file/20708/16) and [UnsupportedVersionException ?!?! · Issue #140 · JuliaIO/JLD2.jl · GitHub](https://github.com/JuliaIO/JLD2.jl/issues/140) are still very relevant I am afraid.

I was wondering what is the current status of development for JLD2 (and similar libraries). I understand that it is quite hard to structure efficient routines to save composite datatypes, but it would also be particularly convenient in many applications. If this is not possible, would it be a good idea to have a wrapper for HDF5 to convert composite datatypes into groups (while saving the output file)?

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [February 18, 2020, 1:52pm UTC](https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809/2 "2020-02-18T13:52:12Z")

</div>

Well, I always wanted to use CBOR for this, so I contributed to it in the pre-1.0 era, but I’m not sure if it was fully updated to Julia v1 yet:

> **[GitHub - JuliaIO/CBOR.jl: A Concise Binary Object Representation (RFC 7049)...](https://github.com/JuliaIO/CBOR.jl)**
>
> A Concise Binary Object Representation (RFC 7049) serialization library in Julia - GitHub - JuliaIO/CBOR.jl: A Concise Binary Object Representation (RFC 7049) serialization library in Julia

---

<div class="post-metadata">

**Author:** ![fipelle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fipelle/32/4772_2.png) [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Post date:** [February 18, 2020, 2:16pm UTC](https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809/3 "2020-02-18T14:16:29Z")

</div>

I did not know about this package. It seems like a good alternative to JLD2. However, I wonder whether I can expect long term support for the package.
