Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Dicebot via Digitalmars-d-announce
On Monday, 3 August 2015 at 09:40:59 UTC, Atila Neves wrote: In this case, yes. In the real-life case I was simplifying, it wasn't a ubyte[] array, it was an array of structs with non-trivial serialisation that also depended on a previous deserialised variable. It was more like this: struct

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 03/08/15 14:21, Per =?UTF-8?B?Tm9yZGzDtnci?= per.nord...@gmail.com wrote: Are there any plans to add different backends (for instance msgpack) to Cereal? Then we could have one package to rule them all! That would be Orange [1]. Hopefully I'll get it into Phobos at some point. [1]

Re: Seattle D meetup

2015-08-03 Thread Walter Bright via Digitalmars-d-announce
On 8/3/2015 10:24 AM, Colden Cullen wrote: On Sunday, 2 August 2015 at 22:53:00 UTC, Walter Bright wrote: Seeing the threads on London, Silicon Valley and Berlin meetups, is there any interest for a Seattle one? Yes please! Myself and a good portion of the Dash[1] team are in Seattle now, and

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Walter Bright via Digitalmars-d-announce
On 8/3/2015 4:46 AM, Atila Neves wrote: On Monday, 3 August 2015 at 11:13:50 UTC, Walter Bright wrote: On 8/3/2015 2:21 AM, Atila Neves wrote: [...] Please put this as the first comment on the reddit post. Which one? The one you started the thread with. On a more meta note, when people

Re: Seattle D meetup

2015-08-03 Thread Dan Olson via Digitalmars-d-announce
Colden Cullen coldencul...@gmail.com writes: On Sunday, 2 August 2015 at 22:53:00 UTC, Walter Bright wrote: Seeing the threads on London, Silicon Valley and Berlin meetups, is there any interest for a Seattle one? Yes please! Myself and a good portion of the Dash[1] team are in Seattle now,

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Dicebot via Digitalmars-d-announce
On Monday, 3 August 2015 at 09:21:50 UTC, Atila Neves wrote: The summary is you can now write this: struct UdpPacket { static struct Header { ushort srcPort; ushort dstPort; ushort length; ushort checksum; } enum

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Atila Neves via Digitalmars-d-announce
On Monday, 3 August 2015 at 09:27:03 UTC, Dicebot wrote: On Monday, 3 August 2015 at 09:21:50 UTC, Atila Neves wrote: The summary is you can now write this: struct UdpPacket { static struct Header { ushort srcPort; ushort dstPort; ushort length;

Re: Beta D 2.068.0-b2

2015-08-03 Thread Martin Nowak via Digitalmars-d-announce
On 08/02/2015 11:20 AM, Rainer Schuetze wrote: Unfortunately, that does not help a lot because Microsoft changed their C runtime quite a bit to make it more compliant to C99. This causes unresolved symbols when linking phobos. You think we can work that out soon enough?

Re: Beta D 2.068.0-b2

2015-08-03 Thread Joseph Cassman via Digitalmars-d-announce
On Sunday, 2 August 2015 at 09:20:44 UTC, Rainer Schuetze wrote: On 31.07.2015 02:41, Joseph Cassman wrote: [...] I just updated my VS2015 installation and can confirm the error message regarding libucrt.lib. I found the library in the folder c:\Program Files (x86)\Windows

Re: Russian-speaking community

2015-08-03 Thread Majestio via Digitalmars-d-announce
On Sunday, 2 August 2015 at 17:20:57 UTC, Suliman wrote: On Sunday, 2 August 2015 at 12:11:03 UTC, Majestio wrote: On Tuesday, 30 June 2015 at 20:39:38 UTC, lomereiter wrote: (whose domain is much easier to remember, btw) We have already moved to http://dlanguage.ru Sorry for long reviving

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread TC via Digitalmars-d-announce
On Monday, 3 August 2015 at 12:21:05 UTC, Per Nordlöw wrote: On Monday, 3 August 2015 at 11:51:24 UTC, Atila Neves wrote: Yes. `cerealise` and `decerealise`. The former is slightly weird for performance reasons. It takes a lambda that tells it what to do with the resulting bytes. Close with

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Atila Neves via Digitalmars-d-announce
On Monday, 3 August 2015 at 11:43:15 UTC, Per Nordlöw wrote: On Monday, 3 August 2015 at 09:21:50 UTC, Atila Neves wrote: http://code.dlang.org/packages/cerealed What's new? * Performance improvements * New UDAs for networking packets for even less required boilerplate The first new thing

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Atila Neves via Digitalmars-d-announce
On Monday, 3 August 2015 at 10:37:05 UTC, Dmitry Olshansky wrote: On 03-Aug-2015 12:27, Dicebot wrote: On Monday, 3 August 2015 at 09:21:50 UTC, Atila Neves wrote: [...] This deserialization will be identical to casting like this, right? (Not trying to diminish your work, just making sure I

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Atila Neves via Digitalmars-d-announce
On Monday, 3 August 2015 at 11:13:50 UTC, Walter Bright wrote: On 8/3/2015 2:21 AM, Atila Neves wrote: [...] Please put this as the first comment on the reddit post. Which one? Atila

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread via Digitalmars-d-announce
On Monday, 3 August 2015 at 11:51:24 UTC, Atila Neves wrote: Yes. `cerealise` and `decerealise`. The former is slightly weird for performance reasons. It takes a lambda that tells it what to do with the resulting bytes. Close with LDC and DMD, faster with GDC:

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread via Digitalmars-d-announce
On Monday, 3 August 2015 at 09:21:50 UTC, Atila Neves wrote: http://code.dlang.org/packages/cerealed What's new? * Performance improvements * New UDAs for networking packets for even less required boilerplate The first new thing is self-explanatory. The second one is explained briefly in

Re: Cerealed v0.6.1: even less boilerplate for binary serialization

2015-08-03 Thread Atila Neves via Digitalmars-d-announce
On Monday, 3 August 2015 at 12:21:05 UTC, Per Nordlöw wrote: On Monday, 3 August 2015 at 11:51:24 UTC, Atila Neves wrote: Yes. `cerealise` and `decerealise`. The former is slightly weird for performance reasons. It takes a lambda that tells it what to do with the resulting bytes. Close with