Thread overview
Re: Serialization library with support for circular references?
Nov 10, 2012
Andrej Mitrovic
Nov 10, 2012
nixda
Nov 10, 2012
Andrej Mitrovic
May 23, 2015
timotheecour
May 23, 2015
timotheecour
November 10, 2012
 11/10/12, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> I've been using msgpack for a while, unfortunately I've just discovered it doesn't support serializing circular references (http://jira.msgpack.org/browse/MSGPACK-81)

Anyway I think I'll be able to hack-in circular reference support to msgpack, but it's not going to be compatible with the protocol (well a new Header type will have to be introduced). It's not a big issue for me since I only use it offline. I'll post a link to the fork when I'm done.
November 10, 2012
You can try vibe.d bson serialization.
http://vibed.org/api/vibe.data.bson/serializeToBson

On Saturday, 10 November 2012 at 21:23:03 UTC, Andrej Mitrovic wrote:
>  11/10/12, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
>> I've been using msgpack for a while, unfortunately I've just
>> discovered it doesn't support serializing circular references
>> (http://jira.msgpack.org/browse/MSGPACK-81)
>
> Anyway I think I'll be able to hack-in circular reference support to
> msgpack, but it's not going to be compatible with the protocol (well a
> new Header type will have to be introduced). It's not a big issue for
> me since I only use it offline. I'll post a link to the fork when I'm
> done.


November 10, 2012
On 11/10/12, nixda <b@or.de> wrote:
> You can try vibe.d bson serialization. http://vibed.org/api/vibe.data.bson/serializeToBson

It doesn't handle them either. Anyway I've implemented it for msgpack (took a whole of 30 minutes, it's a great and readable codebase), I just have to write some more extensive unittests to make sure everything works ok.
May 23, 2015
On Saturday, 10 November 2012 at 22:09:07 UTC, Andrej Mitrovic wrote:
> On 11/10/12, nixda <b@or.de> wrote:
>> You can try vibe.d bson serialization.
>> http://vibed.org/api/vibe.data.bson/serializeToBson
>
> It doesn't handle them either. Anyway I've implemented it for msgpack
> (took a whole of 30 minutes, it's a great and readable codebase), I
> just have to write some more extensive unittests to make sure
> everything works ok.

May 23, 2015
On Saturday, 23 May 2015 at 08:01:28 UTC, timotheecour wrote:
> On Saturday, 10 November 2012 at 22:09:07 UTC, Andrej Mitrovic wrote:
>> On 11/10/12, nixda <b@or.de> wrote:
>>> You can try vibe.d bson serialization.
>>> http://vibed.org/api/vibe.data.bson/serializeToBson
>>
>> It doesn't handle them either. Anyway I've implemented it for msgpack
>> (took a whole of 30 minutes, it's a great and readable codebase), I
>> just have to write some more extensive unittests to make sure
>> everything works ok.

Do you have any pointers to it?
This issue tracks this feature request:
https://github.com/msgpack/msgpack-d/issues/7
Thanks!