Re: painlessjson released, looking for improvement advice

2015-02-01 Thread data man via Digitalmars-d-announce
On Sunday, 1 February 2015 at 06:08:35 UTC, Vladimir Panteleev wrote: (Caveat: last one needs 5-ish compiler patches to work.) Which, please specify?

Re: painlessjson released, looking for improvement advice

2015-02-01 Thread data man via Digitalmars-d-announce
On Sunday, 1 February 2015 at 10:07:42 UTC, Vladimir Panteleev wrote: On Sunday, 1 February 2015 at 07:56:53 UTC, data man wrote: On Sunday, 1 February 2015 at 06:08:35 UTC, Vladimir Panteleev wrote: (Caveat: last one needs 5-ish compiler patches to work.) Which, please specify? It should

Re: painlessjson released, looking for improvement advice

2015-02-01 Thread Vladimir Panteleev via Digitalmars-d-announce
On Sunday, 1 February 2015 at 14:10:58 UTC, data man wrote: On Sunday, 1 February 2015 at 13:43:19 UTC, Vladimir Panteleev wrote: By 5-ish compiler patches I meant patches that are not in the official compiler. I would be very, very surprised if it worked out of the box for you. Yes, I

Re: painlessjson released, looking for improvement advice

2015-02-01 Thread Vladimir Panteleev via Digitalmars-d-announce
On Sunday, 1 February 2015 at 07:56:53 UTC, data man wrote: On Sunday, 1 February 2015 at 06:08:35 UTC, Vladimir Panteleev wrote: (Caveat: last one needs 5-ish compiler patches to work.) Which, please specify? It should tell you nicely when you try to compile without them:

Re: painlessjson released, looking for improvement advice

2015-02-01 Thread data man via Digitalmars-d-announce
On Sunday, 1 February 2015 at 13:43:19 UTC, Vladimir Panteleev wrote: By 5-ish compiler patches I meant patches that are not in the official compiler. I would be very, very surprised if it worked out of the box for you. Yes, I understand. You do not plan to modify their for current state of

Re: painlessjson released, looking for improvement advice

2015-02-01 Thread Vladimir Panteleev via Digitalmars-d-announce
On Sunday, 1 February 2015 at 11:12:11 UTC, data man wrote: Alas, but... void main() { pragma(msg, is(typeof({ struct S { int i; } S s; __traits(child, s, S.i) = 0; }))); } output false By 5-ish compiler patches I meant patches that are not in the official compiler. I would be very,

Re: painlessjson released, looking for improvement advice

2015-02-01 Thread Pierre Krafft via Digitalmars-d-announce
On Sunday, 1 February 2015 at 06:08:35 UTC, Vladimir Panteleev wrote: On Thursday, 29 January 2015 at 20:04:51 UTC, Pierre Krafft wrote: It's fun to see that there are so many different solutions to working with JSON in D. jsvar seems to be for keeping your variables in JavaScript-land,

Re: painlessjson released, looking for improvement advice

2015-01-31 Thread Vladimir Panteleev via Digitalmars-d-announce
On Thursday, 29 January 2015 at 20:04:51 UTC, Pierre Krafft wrote: It's fun to see that there are so many different solutions to working with JSON in D. jsvar seems to be for keeping your variables in JavaScript-land, something I think is a bad idea in most cases. The idea of painlessjson is

Re: painlessjson released, looking for improvement advice

2015-01-29 Thread BlackEdder via Digitalmars-d-announce
On Thursday, 29 January 2015 at 14:05:25 UTC, Chris wrote: Yeah, I was wondering, if you have to import std.json and use it as a basis for painlessjson, is it really so big an improvement? Especially since std.json might be replaced (sooner or later). I'd prefer an easy to use implementation

Re: painlessjson released, looking for improvement advice

2015-01-29 Thread Pierre Krafft via Digitalmars-d-announce
On Thursday, 29 January 2015 at 13:16:48 UTC, BlackEdder wrote: On Thursday, 29 January 2015 at 00:24:44 UTC, rlonstein wrote: Not quite the same, but I've been using dson (https://github.com/w0rp/dson). Have you looked it over? Did not know about that one. From looking through the source

Re: painlessjson released, looking for improvement advice

2015-01-29 Thread BlackEdder via Digitalmars-d-announce
On Thursday, 29 January 2015 at 00:24:44 UTC, rlonstein wrote: Not quite the same, but I've been using dson (https://github.com/w0rp/dson). Have you looked it over? Did not know about that one. From looking through the source it seems to have a different goal though. dson looks like it is

Re: painlessjson released, looking for improvement advice

2015-01-29 Thread Chris via Digitalmars-d-announce
On Thursday, 29 January 2015 at 13:44:04 UTC, Pierre Krafft wrote: On Thursday, 29 January 2015 at 13:16:48 UTC, BlackEdder wrote: On Thursday, 29 January 2015 at 00:24:44 UTC, rlonstein wrote: Not quite the same, but I've been using dson (https://github.com/w0rp/dson). Have you looked it

Re: painlessjson released, looking for improvement advice

2015-01-29 Thread Rory McGuire via Digitalmars-d-announce
:) I use jsvar for any JSON work in D. Javascript is the only thing I've used that is possibly easier to work with JSON values. https://github.com/adamdruppe/arsd/blob/master/jsvar.d On Thu, Jan 29, 2015 at 5:18 PM, BlackEdder via Digitalmars-d-announce digitalmars-d-announce@puremagic.com

Re: painlessjson released, looking for improvement advice

2015-01-29 Thread Pierre Krafft via Digitalmars-d-announce
On Thursday, 29 January 2015 at 18:47:37 UTC, Rory McGuire wrote: :) I use jsvar for any JSON work in D. Javascript is the only thing I've used that is possibly easier to work with JSON values. https://github.com/adamdruppe/arsd/blob/master/jsvar.d On Thu, Jan 29, 2015 at 5:18 PM, BlackEdder

painlessjson released, looking for improvement advice

2015-01-28 Thread Pierre Krafft via Digitalmars-d-announce
Hi, DUB lacked a package for going between D objects and JSON. painlessjson is a library just released on DUB looking to be the easy solution for converting D data to and from JSON. painlessjson uses templates and traits to generate code that converts to and from std.json. The goals of

Re: painlessjson released, looking for improvement advice

2015-01-28 Thread rlonstein via Digitalmars-d-announce
On Wednesday, 28 January 2015 at 21:54:06 UTC, Pierre Krafft wrote: Hi, DUB lacked a package for going between D objects and JSON. painlessjson is a library just released on DUB looking to be the easy solution for converting D data to and from JSON. painlessjson uses templates and traits to