Re: jsoniopipe - exaples?

2023-12-30 Thread Zz via Digitalmars-d-learn
On Saturday, 30 December 2023 at 01:30:22 UTC, Steven Schveighoffer wrote: On Friday, 29 December 2023 at 08:09:58 UTC, Zz wrote: But yeah, I could ingest all the functionality from std.json there. Or maybe even just use `JSONValue` from std.json. Could you make an issue? -Steve Hi Steve

jsoniopipe - exaples?

2023-12-29 Thread Zz via Digitalmars-d-learn
snt exist yet, so use .object to assign jj.object["rating"] = JSONValue(3.5); // create an array to assign to list jj.object["list"] = JSONValue( ["a", "b", "c"] ); // list already exists, so .object optional jj["list"].array ~= JSONValue("D"); string jjStr = `{"language":"D","list":["a","b","c","D"],"rating":3.5}`; writeln(jj.toString); // jjStr Regards, Zz

jsoniopipe now supports JSON5

2023-12-29 Thread Zz via Digitalmars-d-announce
it to support [JSON5](https://json5.org), which is a format much more suited to configuration than straight JSON. AFAIK, this is the first D project that parses JSON5! -Steve Hi, Any plans on having an interface similar to std.json? Regards, Zz

Question regarding mir.csv.

2023-11-01 Thread Zz via Digitalmars-d-learn
Hi, Currently using std.csv and would like to do the following using mir.csv. auto data = std.csv.csvReader!Layout(input).array; Are there any examples out there on using mir.csv? Regards, Zz

Re: How pretty-print a struct?

2022-03-31 Thread ZZ via Digitalmars-d-learn
On Thursday, 31 March 2022 at 16:08:19 UTC, mw wrote: On Thursday, 31 March 2022 at 06:35:15 UTC, ZZ wrote: Hi, Is there an easy way to pretty-print a struct which also includes arrays? pretty_array does a very good job for arrays. If you want the field variable names in the output, you

How pretty-print a struct?

2022-03-31 Thread ZZ via Digitalmars-d-learn
Hi, Is there an easy way to pretty-print a struct which also includes arrays? pretty_array does a very good job for arrays. ZZ

Re: Write native GUI applications for Windows

2017-12-18 Thread Zz via Digitalmars-d-learn
help me? You can use libuid which can be found here https://code.dlang.org/packages/libuid. It wrapped the native os gui for d, and it's cross-platform. Any chance of having a version that allows static linking? Zz

Re: Guide - Migrating from std.experimental.ndslice to mir-algorithm

2017-06-03 Thread Zz via Digitalmars-d-learn
On Saturday, 3 June 2017 at 05:21:13 UTC, 9il wrote: On Friday, 2 June 2017 at 16:08:20 UTC, Zz wrote: Hi, Just tried migrating from std.experimental.ndslice to mir-algorithm. Is there a guide on how migrate old code? I used the following imports before and using then with ndslice

Guide - Migrating from std.experimental.ndslice to mir-algorithm

2017-06-02 Thread Zz via Digitalmars-d-learn
will be going through the documentation. Zz

Re: ndslice help

2016-02-18 Thread Zz via Digitalmars-d-learn
On Thursday, 18 February 2016 at 02:24:20 UTC, ZombineDev wrote: On Thursday, 18 February 2016 at 00:25:09 UTC, Zz wrote: Hi, I'm trying to generate the following sequences with ndslice. 0 0 0 1 1 1 1 1 1 0 0 0 0 1 2 0 1 2 2 1 0 2 1 0 It's okay with loops but was checking to see if it's

ndslice help

2016-02-17 Thread Zz via Digitalmars-d-learn
Hi, I'm trying to generate the following sequences with ndslice. 0 0 0 1 1 1 1 1 1 0 0 0 0 1 2 0 1 2 2 1 0 2 1 0 It's okay with loops but was checking to see if it's possible with ndslice. Zz

Re: Proposal: Database Engine for D

2016-01-04 Thread Zz via Digitalmars-d
What is Boost.Sprint? I haven't heard of it, and can't find it. Thanks! -- Andrei I believe he meant Boost Spirit http://www.boost.org/doc/libs/1_60_0/libs/spirit/doc/html/spirit/introduction.html Zz

ndslice help.

2015-12-30 Thread Zz via Digitalmars-d-learn
. [[0][2][4]] [[1][3][5]] [[4][2][0]] [[5][3][1]] Zz

Re: ndslice help.

2015-12-30 Thread Zz via Digitalmars-d-learn
On Wednesday, 30 December 2015 at 20:43:21 UTC, Ilya Yaroshenko wrote: On Wednesday, 30 December 2015 at 18:53:15 UTC, Zz wrote: Hi, Just playing with ndslice and I couldn't figure how to get the following transformations. given. auto slicea = sliced(iota(6), 2, 3, 1); foreach (item

Re: Kinds of containers

2015-10-21 Thread Zz via Digitalmars-d
=sr_1_1?ie=UTF8qid=1386946808sr=8-1keywords=SERIALIZATION+AND+PERSISTENT+OBJECTS#productPromotions%22%20target=%22_blank Intrusive Data Structures. http://www.codefarms.com/home http://www.codefarms.com/dol http://www.codefarms.com/ppf http://www.codefarms.com/ptl Zz

Re: Kinds of containers

2015-10-21 Thread Zz via Digitalmars-d
On Wednesday, 21 October 2015 at 19:17:52 UTC, Andrei Alexandrescu wrote: On 10/21/2015 02:18 PM, Zz wrote: While looking at containers take a look at Jiri Soukup's work some good ideas could come from there. http://www.amazon.ca/Serialization-Persistent-Objects-Structures-Efficient/dp

Re: Kinds of containers

2015-10-21 Thread Zz via Digitalmars-d
On Wednesday, 21 October 2015 at 22:12:32 UTC, Zz wrote: On Wednesday, 21 October 2015 at 19:17:52 UTC, Andrei Alexandrescu wrote: On 10/21/2015 02:18 PM, Zz wrote: While looking at containers take a look at Jiri Soukup's work some good ideas could come from there. http://www.amazon.ca

Re: CppCon: Declarative Control Flow

2015-10-19 Thread Zz via Digitalmars-d-announce
because you make great entertaining talks? No idea. -- Andrei ... And I hope that's why! -- Andrei That's why, your talks are really informative and entertaining. Zz

Compile failing with D 2.068.2 works with 2.068.1

2015-10-01 Thread Zz via Digitalmars-d
Hi, When using D 2.068.2 I get the following error with some code I have. Assertion failure: 'minst->isRoot() || minst->rootImports()' on line 8013 in file 'template.c' dmd failed with exit code 1. It work with 2.068.1. No idea why it fails, moved back to 2.068.1. Regards, Zz

Re: Compile failing with D 2.068.2 works with 2.068.1

2015-10-01 Thread Zz via Digitalmars-d
On Thursday, 1 October 2015 at 17:16:47 UTC, Meta wrote: On Thursday, 1 October 2015 at 16:37:25 UTC, Zz wrote: Hi, When using D 2.068.2 I get the following error with some code I have. Assertion failure: 'minst->isRoot() || minst->rootImports()' on line 8013 in file 'template.c

Problem with paths and dub

2015-09-26 Thread Zz via Digitalmars-d
k with dub? Zz

Re: Graphics Library for D

2014-01-07 Thread Zz
More interesting was the link that Herb Sutter provided. Lightweight Drawing Library http://isocpp.org/files/papers/n3791.html Looks like he nailed the problem very well - it will be interesting to see what they come up with. On Monday, 6 January 2014 at 18:34:53 UTC, Keesjan wrote:

Re: Graphics Library for D

2014-01-06 Thread Zz
article on how AGG works in Haiku and covers some of the compile time properties of AGG https://www.haiku-os.org/documents/dev/painter_and_how_agg_works There is also a c# port. Zz

Re: Need sounding board for GUI library

2013-12-15 Thread Zz
Hi Boyd, Here something that might be interesting for you the gui is rendered using the C++ version of AntiGrain Geometry (with C# wrappers). http://www.creativedocs.net/devs/gui http://www.creativedocs.net/devs/agg http://www.creativedocs.net/screenshots/ Zz On Sunday, 15 December 2013

Re: PropertySheet

2013-12-10 Thread Zz
On Friday, 6 December 2013 at 07:23:45 UTC, Jacob Carlborg wrote: On 2013-12-06 00:27, Zz wrote: Hi, Are there any plans to include PropertySheet's in DWT. http://www.eclipse.org/articles/Article-Properties-View/properties-view.html http://www.eclipse.org/articles/Article-Tabbed-Properties

Building DFL errors.

2013-10-25 Thread Zz
in file package.d Zz

Re: Building DFL errors.

2013-10-25 Thread Zz
Which version of DMD should I use? I'm currently using 2.063.2. Zz On Friday, 25 October 2013 at 12:53:42 UTC, Jacob Carlborg wrote: On 2013-10-25 14:30, Zz wrote: Hi, Tried building DFL from github.com/Rayerd/dfl and I get the following errors when trying to build. Any ideas on how

Re: DQuick a GUI Library (prototype)

2013-08-27 Thread Zz
Here is an old IUP wrapper in D. https://code.google.com/p/iupd/ Zz On Friday, 23 August 2013 at 16:26:37 UTC, Michael wrote: On Thursday, 22 August 2013 at 21:44:57 UTC, Andrej Mitrovic wrote: On 8/22/13, Michael p...@m1xa.com wrote: For me it's no problem) How are other people supposed

Re: Is there anything in the standard library to help writing a file watcher?

2013-07-15 Thread Zz
https://code.google.com/p/simplefilewatcher/ may help with platform specific solutions. On Thursday, 23 May 2013 at 18:56:41 UTC, Gary Willoughby wrote: Hmmm.. this is what i first thought. I think i'll implement a simple watcher based on modification times as a first iteration. Then if time

Interesting talk on ParaSails approach to Memory.

2013-05-24 Thread Zz
Region-Based Storage Management: ParaSailing without a (Garbage) Chute https://air.mozilla.org/region-based-storage-management-parasailing-without-a-garbage-chute/ Home Page http://parasail-programming-language.blogspot.com Zz

kxml help.

2013-05-09 Thread Zz
() { auto node = new XmlNode(); node.addChild(new XmlNode(mynode).setAttribute(x, 50). addChild(new XmlNode(Waldo).addCData(Hello!))); } - it's taken out of an example in the code. Zz

Re: kxml help.

2013-05-09 Thread Zz
Thanks On Thursday, 9 May 2013 at 20:26:28 UTC, John Colvin wrote: On Thursday, 9 May 2013 at 19:32:44 UTC, Zz wrote: Hi, I decided to try out kxml and I have the following error. test.d(10): Error: found '.' when expecting ',' test.d(11): Error: found '.' when expecting ',' when

Re: Folding algorithm help.

2013-03-18 Thread Zz
On Monday, 18 March 2013 at 22:31:20 UTC, Ali Çehreli wrote: On 03/18/2013 02:20 PM, rookie wrote: Hi, I was trying to do a folding algorithm in D and just got stuck on how to approach the problem - I must be missing something (math). Given the following: 2 1 - Both folds are from

Re: D Swing

2012-12-24 Thread Zz
Have a look at Sciter (http://www.terrainformatica.com/sciter), Andrew Fedoniouk of Terra Informatica once did Harmonia for D1, Hope he would do a Sciter version or wrapper for D2. Zz On Monday, 24 December 2012 at 10:57:48 UTC, evilrat wrote: On Monday, 24 December 2012 at 10:34:42 UTC

Ideas for Phobos.

2012-03-16 Thread Zz
Wrapper http://aswang.sourceforge.net/ Simple and straight forward. Zz

(Interesting) Microsoft Demos C++ AMP Heterogeneous Computing at AMD's Fusion Developer Summit

2011-06-16 Thread Zz
Interesting article and video. Microsoft Demos C++ AMP Heterogeneous Computing at AMD's Fusion Developer Summit. http://hothardware.com/News/Microsoft-Demos-C-AMP-Heterogeneous-Computing-at-AFDS/

Re: (Interesting) Microsoft Demos C++ AMP Heterogeneous Computing at AMD's Fusion Developer Summit

2011-06-16 Thread Zz
it again and it's really impressive. Cheers, Zz bearophile Wrote: Zz: Interesting article and video. Microsoft Demos C++ AMP Heterogeneous Computing at AMD's Fusion Developer Summit. http://hothardware.com/News/Microsoft-Demos-C-AMP-Heterogeneous-Computing-at-AFDS/ I don't see

Re: Implementing std.log

2011-04-22 Thread Zz
I currently use the logger written by Masahiro Nakagawa and it has handled what I need. You can get it from: http://www.bitbucket.org/repeatedly/scrap/src/tip/logger.d Zz Robert Clipsham Wrote: Hey folks, I've just finished porting my web framework from D1/Tango to D2/Phobos

Re: [GSoC] Container proposals by Ishan and Christian

2011-04-04 Thread Zz
You can look at IUP which is simple written in C and comes with the MIT licence. http://www.tecgraf.puc-rio.br/iup/ Zz Matthias Pleh Wrote: On 2011-04-03 21:05, Andrei Alexandrescu wrote: I think it's not too late to improve our GSoC ideas page So here come my ideas There is still

Intrusive Data Structures

2010-10-07 Thread Zz
The following libraries by Jiri Soukup are quite interesting and could stir up some ideas for phobos. Data Object Library http://www.codefarms.com/dolclasses Persistent Pointer Factory http://www.codefarms.com/ppf Pattern Template Library http://www.codefarms.com/ptl Tutorial for the C++

Proposal to expand existing OO languages (Jiri Soukup)

2010-10-07 Thread Zz
Here is an interesting paper by Jiri Soukup. http://www.codefarms.com/docs/proposal.pdf

Re: Using glog's design for Phobos?

2010-08-27 Thread Zz
looks interesting. Other interesting libs to look at are: Simple Log - Just plain straight forward https://simple-log.dev.java.net/ Some of you might remember Matthew Wilson and he has Pantheios which looks interesting, http://www.pantheios.org/ Zz

Re: lexertl

2009-11-17 Thread Zz
Looks very interesting. Zz

Std Phobos 2 and logging library?

2009-04-10 Thread Zz
Hi, Are there any plans for a logging library in Std Phobos 2.0? Zz