An IO Streams Library

2016-02-06 Thread Jason White via Digitalmars-d
I see the subject of IO streams brought up here occasionally. The general consensus seems to be that we need something better than what Phobos provides. I wrote a library "io" that can work as a replacement for std.stdio, std.mmfile, std.cstream, and parts of std.stream: GitHub: https:/

Re: An IO Streams Library

2016-02-06 Thread Jason White via Digitalmars-d
On Sunday, 7 February 2016 at 01:01:21 UTC, cym13 wrote: From what I can see without testing it, very nice work, thanks! More a little surprise than anything serious though, why did you choose to go with "println" instead of "writeln" and such? I find it more confusing than anything given phob

Re: An IO Streams Library

2016-02-06 Thread Jason White via Digitalmars-d
On Sunday, 7 February 2016 at 01:20:26 UTC, Rikki Cattermole wrote: I posted a link to your repo a couple days ago in IRC. Honestly? I like it. It looks reasonably well made. Thanks. I saw a link to it in a recent thread in Learn. I figured I'd finally make a proper post on it. There is a b

Re: An IO Streams Library

2016-02-06 Thread Jason White via Digitalmars-d
On Sunday, 7 February 2016 at 01:59:43 UTC, Rikki Cattermole wrote: Actually I think there are plenty of use cases not implemented. Done properly as a full replacement and rework of Phobos will mean you need to do almost everything in e.g. std.stdio and std.socket but with better abstractions.

Re: An IO Streams Library

2016-02-07 Thread Jason White via Digitalmars-d
On Sunday, 7 February 2016 at 10:50:24 UTC, Johannes Pfau wrote: I saw this on code.dlang.org some time ago and had a quick look. First of all this would have to go into phobos to make sure it's used as some kind of a standard. Conflicting stream libraries would only cause more trouble. Then

Re: An IO Streams Library

2016-02-08 Thread Jason White via Digitalmars-d
On Monday, 8 February 2016 at 07:50:33 UTC, Jakob Ovrum wrote: I like what I've seen so far, but I'd just like to note that it's easier to give feedback on the API when there is web documentation. GitHub Pages would be a natural place to host it. A lot of D libraries on GitHub do this and not

Re: An IO Streams Library

2016-02-08 Thread Jason White via Digitalmars-d
On Monday, 8 February 2016 at 12:02:08 UTC, Kagamin wrote: In the output stream you compare output data length to the input data length. In case of a transcoding stream they can be different. Are you trying to account for partial writes? Reads and writes are not guaranteed to fill/write the en

Re: Command line parsing

2016-05-14 Thread Jason White via Digitalmars-d
On Saturday, 14 May 2016 at 04:34:06 UTC, Andrei Alexandrescu wrote: On 5/13/16 2:27 PM, Russel Winder via Digitalmars-d wrote: On Thu, 2016-05-12 at 18:25 +, Jesse Phillips via Digitalmars-d wrote: […] unknown flags harder and displaying help challenging. So I'd like to see getopt merge