December 14, 2017 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Monday, 11 December 2017 at 23:33:44 UTC, Seb wrote: > --- > void main(string[] args) > { > import std.conv, std.range, std.stdio; > foreach (d; File(__FILE_FULL_PATH__).byChunk(4096).join.take(5)) { > writefln("%s", d.to!char); > } > } > --- A variant: https://run.dlang.io/is/2TUQBv |
December 14, 2017 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | Or this https://run.dlang.io/is/MO9Wiy |
June 18, 2020 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Tuesday, 12 December 2017 at 20:51:30 UTC, Steven Schveighoffer wrote:
> On 12/11/17 6:33 PM, Seb wrote:
>> [...]
> Since iopipe was mentioned several times, I will say a couple things:
>
> [...]
I should really try iopipe this time round. I think I avoided toying with it because the making conventions put me off. Don't remember about the docs and available examples though.
|
June 18, 2020 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to aberba | On 6/18/20 10:53 AM, aberba wrote:
> On Tuesday, 12 December 2017 at 20:51:30 UTC, Steven Schveighoffer wrote:
>> On 12/11/17 6:33 PM, Seb wrote:
>>> [...]
>> Since iopipe was mentioned several times, I will say a couple things:
>>
>> [...]
>
>
> I should really try iopipe this time round. I think I avoided toying with it because the making conventions put me off. Don't remember about the docs and available examples though.
I have made some updates that are probably not reflected yet in the docs. But let me know if there are any stumbling blocks. I intend to make the iopipe + std.io (from Martin) a more user-friendly library in the near future.
-Steve
|
June 18, 2020 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Thursday, 18 June 2020 at 15:03:38 UTC, Steven Schveighoffer wrote:
> On 6/18/20 10:53 AM, aberba wrote:
>> On Tuesday, 12 December 2017 at 20:51:30 UTC, Steven Schveighoffer wrote:
>>> On 12/11/17 6:33 PM, Seb wrote:
>>>> [...]
>>> Since iopipe was mentioned several times, I will say a couple things:
>>>
>>> [...]
>>
>>
>> I should really try iopipe this time round. I think I avoided toying with it because the making conventions put me off. Don't remember about the docs and available examples though.
>
> I have made some updates that are probably not reflected yet in the docs. But let me know if there are any stumbling blocks. I intend to make the iopipe + std.io (from Martin) a more user-friendly library in the near future.
>
> -Steve
Will discuss in the GH issue
|
June 19, 2020 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to aberba | On Thursday, 18 June 2020 at 14:53:58 UTC, aberba wrote: > On Tuesday, 12 December 2017 at 20:51:30 UTC, Steven Schveighoffer wrote: >> On 12/11/17 6:33 PM, Seb wrote: >>> [...] >> Since iopipe was mentioned several times, I will say a couple things: >> >> [...] > > > I should really try iopipe this time round. I think I avoided toying with it because the making conventions put me off. Don't remember about the docs and available examples though. I too was trying to utilize iopipe and asked questions earlier this year[1] and I made a file writer util[2]. I haven't really taken advantage of the power yet, though it does appear that be a really nice abstraction. 1. https://forum.dlang.org/thread/faawejguebluwodflevh@forum.dlang.org 2. https://gitlab.com/jessephillips/devarticlator/-/blob/master/source/util/file.d |
June 19, 2020 Re: Why is there no std.stream anymore? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On 6/18/20 11:11 PM, Jesse Phillips wrote:
> On Thursday, 18 June 2020 at 14:53:58 UTC, aberba wrote:
>> On Tuesday, 12 December 2017 at 20:51:30 UTC, Steven Schveighoffer wrote:
>>> On 12/11/17 6:33 PM, Seb wrote:
>>>> [...]
>>> Since iopipe was mentioned several times, I will say a couple things:
>>>
>>> [...]
>>
>>
>> I should really try iopipe this time round. I think I avoided toying with it because the making conventions put me off. Don't remember about the docs and available examples though.
>
> I too was trying to utilize iopipe and asked questions earlier this year[1] and I made a file writer util[2]. I haven't really taken advantage of the power yet, though it does appear that be a really nice abstraction.
>
> 1. https://forum.dlang.org/thread/faawejguebluwodflevh@forum.dlang.org
> 2. https://gitlab.com/jessephillips/devarticlator/-/blob/master/source/util/file.d
>
I reread my comment and in particular this:
"I was going to write an ascii art concept to show how the pushing works, but I think I'll maybe draw an actual picture. I need some time to accomplish this, though."
I still haven't done this. I need to make this happen, probably with a blog post (Mike, keep bugging me on this).
-Steve
|
Copyright © 1999-2021 by the D Language Foundation