Re: Working on new binary serialization module for phobos (hopefully)

2015-06-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-05 14:53, Basile Burg wrote: No, you don't get my point with setters: if a during the deserialization you restore, let's say, the _width field and that 12 children controls rely on this field then they won't be aware of the change. But if the deserializer restores using the width(int

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Sean Campbell via Digitalmars-d
On Friday, 5 June 2015 at 12:53:45 UTC, Basile Burg wrote: On Friday, 5 June 2015 at 12:21:19 UTC, Sean Campbell wrote: On Tuesday, 2 June 2015 at 10:32:25 UTC, Basile Burg wrote: [...] using property setters and getters doesn't seem like the best idea as they may either: they are used to

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Basile Burg via Digitalmars-d
On Friday, 5 June 2015 at 13:05:55 UTC, Sean Campbell wrote: On Friday, 5 June 2015 at 12:53:45 UTC, Basile Burg wrote: On Friday, 5 June 2015 at 12:21:19 UTC, Sean Campbell wrote: [...] No, you don't get my point with setters: if a during the deserialization you restore, let's say, the

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Sean Campbell via Digitalmars-d
On Tuesday, 2 June 2015 at 10:32:25 UTC, Basile Burg wrote: On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Sean Campbell via Digitalmars-d
On Monday, 1 June 2015 at 19:41:58 UTC, Jacob Carlborg wrote: On 2015-06-01 21:22, CraigDillabaugh wrote: I noticed there hasn't been any activity on the Github repo for 8 months. Why is that? Do you consider this a completely finished product, or are you held up by the PHobos review

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Basile Burg via Digitalmars-d
On Friday, 5 June 2015 at 12:21:19 UTC, Sean Campbell wrote: On Tuesday, 2 June 2015 at 10:32:25 UTC, Basile Burg wrote: [...] using property setters and getters doesn't seem like the best idea as they may either: they are used to get live data e.g. setter calls hashing function for an

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Sean Campbell via Digitalmars-d
On Friday, 5 June 2015 at 14:55:24 UTC, Atila Neves wrote: Cerealed has more features than this as well. I'd struggle to write code as short as I did when using it to implement networking protocols. I also only encoded bytes as big-endian since binary serialization is usually followed by

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Atila Neves via Digitalmars-d
I hope you can get the third review process done because Phobos needs serialization and it would be much better to use tried and tested code like orange rather than something I've pulled together over a couple of weeks Does phobos really _need_ it? It'd be nice, sure, but given there's more

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-05 Thread Atila Neves via Digitalmars-d
Cerealed has more features than this as well. I'd struggle to write code as short as I did when using it to implement networking protocols. I also only encoded bytes as big-endian since binary serialization is usually followed by sending those bytes over the wire. Given you check the endianess

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 22:02, Atila Neves wrote: So does cerealed, in one of two ways, postBlit being the _much_ better one: I forgot to mention that Orange also supports pre and post actions/callbacks [1]. [1] https://github.com/jacob-carlborg/orange/blob/master/tests/Events.d -- /Jacob Carlborg

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Atila Neves via Digitalmars-d
On Wednesday, 3 June 2015 at 07:00:23 UTC, Jacob Carlborg wrote: On 2015-06-02 22:02, Atila Neves wrote: So does cerealed, in one of two ways, postBlit being the _much_ better one: I forgot to mention that Orange also supports pre and post actions/callbacks [1]. [1]

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Jonas Drewsen via Digitalmars-d
On Monday, 1 June 2015 at 19:41:58 UTC, Jacob Carlborg wrote: On 2015-06-01 21:22, CraigDillabaugh wrote: I noticed there hasn't been any activity on the Github repo for 8 months. Why is that? Do you consider this a completely finished product, or are you held up by the PHobos review

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-03 09:26, Atila Neves wrote: From the unit tests, that doesn't seem to do the same thing, but I could be wrong. No, it does not. But it can still be useful. Like if you want to do any post processing after deserialization. -- /Jacob Carlborg

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Atila Neves via Digitalmars-d
On Wednesday, 3 June 2015 at 12:15:43 UTC, Jacob Carlborg wrote: On 2015-06-03 09:26, Atila Neves wrote: From the unit tests, that doesn't seem to do the same thing, but I could be wrong. No, it does not. But it can still be useful. Like if you want to do any post processing after

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-02 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 12:32, Basile Burg wrote: On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-02 Thread Atila Neves via Digitalmars-d
On Tuesday, 2 June 2015 at 19:49:39 UTC, Jacob Carlborg wrote: On 2015-06-02 12:32, Basile Burg wrote: On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-02 Thread Basile Burg via Digitalmars-d
On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at https://github.com/sycam0inc/phobos/blob/master/std/experimental/serialization.d I would like some feedback on it

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-02 Thread Atila Neves via Digitalmars-d
On Tuesday, 2 June 2015 at 05:07:29 UTC, lobo wrote: On Monday, 1 June 2015 at 19:41:58 UTC, Jacob Carlborg wrote: On 2015-06-01 21:22, CraigDillabaugh wrote: I noticed there hasn't been any activity on the Github repo for 8 months. Why is that? Do you consider this a completely finished

Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread Sean Campbell via Digitalmars-d
I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at https://github.com/sycam0inc/phobos/blob/master/std/experimental/serialization.d I would like some feedback on it

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread Atila Neves via Digitalmars-d
On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at https://github.com/sycam0inc/phobos/blob/master/std/experimental/serialization.d I would like some feedback on it

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-01 14:52, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at https://github.com/sycam0inc/phobos/blob/master/std/experimental/serialization.d I would like some feedback on it I had a quick

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-01 21:22, CraigDillabaugh wrote: I noticed there hasn't been any activity on the Github repo for 8 months. Why is that? Do you consider this a completely finished product, or are you held up by the PHobos review process? I just haven't worked on it for a while. Working on the ,

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread CraigDillabaugh via Digitalmars-d
On Monday, 1 June 2015 at 14:45:08 UTC, Jacob Carlborg wrote: On 2015-06-01 14:52, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread weaselcat via Digitalmars-d
On Monday, 1 June 2015 at 15:11:54 UTC, Atila Neves wrote: On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread Sean Campbell via Digitalmars-d
On Monday, 1 June 2015 at 15:11:54 UTC, Atila Neves wrote: On Monday, 1 June 2015 at 12:52:45 UTC, Sean Campbell wrote: I've been working on a new serialization module for Phobos and its only reliant on 4 Phobos modules it is available at

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-01 Thread lobo via Digitalmars-d
On Monday, 1 June 2015 at 19:41:58 UTC, Jacob Carlborg wrote: On 2015-06-01 21:22, CraigDillabaugh wrote: I noticed there hasn't been any activity on the Github repo for 8 months. Why is that? Do you consider this a completely finished product, or are you held up by the PHobos review