Thread overview | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 28, 2004 More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Attachments: | Using File 's readLine method , I read in a line , that has nothing but a number and I get trash preceding each string. Its the same if i write to stdout or write to a file ( see attached )
This is bordering on ridicoulous ... I hate having to re-compile phobos everytime a new version comes out just to take out this worse than useless stream package. Why not adopt Andy's version untill some can be written ?? Something ... anything ... please!!!
C
--
D Newsgroup.
|
March 28, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to C | C wrote: > Using File 's readLine method , I read in a line , that has nothing but a number and I get trash preceding each string. Its the same if i write to stdout or write to a file ( see attached ) > > This is bordering on ridicoulous ... I hate having to re-compile phobos everytime a new version comes out just to take out this worse than useless stream package. Why not adopt Andy's version untill some can be written ?? Something ... anything ... please!!! > > C Stream.write() puts the string length (binary) before the string, which doesn't look good in the console. This is good for files, so you can use a corresponding Stream.read() to easily reconstruct the same length string. What you want is Stream.writeString() or Stream.writeLine(). -- Christopher E. Miller |
March 28, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vathix | Dont I feel like an ass :/. That works well thank you. On Sun, 28 Mar 2004 17:11:36 -0500, Vathix <vathix@dprogramming.com> wrote: > C wrote: >> Using File 's readLine method , I read in a line , that has nothing but a number and I get trash preceding each string. Its the same if i write to stdout or write to a file ( see attached ) >> >> This is bordering on ridicoulous ... I hate having to re-compile phobos everytime a new version comes out just to take out this worse than useless stream package. Why not adopt Andy's version untill some can be written ?? Something ... anything ... please!!! >> >> C > > Stream.write() puts the string length (binary) before the string, which doesn't look good in the console. This is good for files, so you can use a corresponding Stream.read() to easily reconstruct the same length string. What you want is Stream.writeString() or Stream.writeLine(). > > -- D Newsgroup. |
March 28, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to C | Don't feel bad, the current Stream implementation /does/ need some work, and in my opinion needs to get split into multiple modules (ie std.stream.console for stdin/out/err, std.stream.file for FileStream, etc, with a std.stream.stream defining the Stream interfact and StdStream base class... just as a suggested design. ;))
-C. Sauls
-Invironz
C wrote:
> Dont I feel like an ass :/. That works well thank you.
|
March 29, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to C. Sauls | I agree , needs work. So far no-one has stepped up , you want to give it ago :) ? Your uniquely qualified ;). C On Sun, 28 Mar 2004 16:51:52 -0600, C. Sauls <ibisbasenji@yahoo.com> wrote: > Don't feel bad, the current Stream implementation /does/ need some work, and in my opinion needs to get split into multiple modules (ie std.stream.console for stdin/out/err, std.stream.file for FileStream, etc, with a std.stream.stream defining the Stream interfact and StdStream base class... just as a suggested design. ;)) > > -C. Sauls > -Invironz > > C wrote: >> Dont I feel like an ass :/. That works well thank you. -- D Newsgroup. |
March 29, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to C | If you're interested, I have a high performance IO package that could use some practical feedback. It's part of the Dsc (D servlet container) project, but operates quite happily in a standalone configuration. Coincidently, it's partitioned pretty much as described below <g> - Kris "C" <dont@respond.com> wrote in message news:opr5l0f6imehmtou@localhost... I agree , needs work. So far no-one has stepped up , you want to give it ago :) ? Your uniquely qualified ;). C On Sun, 28 Mar 2004 16:51:52 -0600, C. Sauls <ibisbasenji@yahoo.com> wrote: > Don't feel bad, the current Stream implementation /does/ need some work, and in my opinion needs to get split into multiple modules (ie std.stream.console for stdin/out/err, std.stream.file for FileStream, etc, with a std.stream.stream defining the Stream interfact and StdStream base class... just as a suggested design. ;)) > > -C. Sauls > -Invironz > > C wrote: >> Dont I feel like an ass :/. That works well thank you. -- D Newsgroup. |
March 29, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris | Sweet , I was going to try the DSC out, but I have no idea what a servlet container is :D. Is there a download for the project ? C On Sun, 28 Mar 2004 20:38:50 -0800, Kris <someidiot@earthlink.dot.dot.dot.net> wrote: > If you're interested, I have a high performance IO package that could use > some practical feedback. It's part of the Dsc (D servlet container) project, > but operates quite happily in a standalone configuration. Coincidently, it's > partitioned pretty much as described below <g> > > - Kris > > > "C" <dont@respond.com> wrote in message news:opr5l0f6imehmtou@localhost... > I agree , needs work. So far no-one has stepped up , you want to give it > ago :) ? Your uniquely qualified ;). > > C > > On Sun, 28 Mar 2004 16:51:52 -0600, C. Sauls <ibisbasenji@yahoo.com> wrote: > >> Don't feel bad, the current Stream implementation /does/ need some work, >> and in my opinion needs to get split into multiple modules (ie >> std.stream.console for stdin/out/err, std.stream.file for FileStream, >> etc, with a std.stream.stream defining the Stream interfact and >> StdStream base class... just as a suggested design. ;)) >> >> -C. Sauls >> -Invironz >> >> C wrote: >>> Dont I feel like an ass :/. That works well thank you. > > > > -- > D Newsgroup. > > -- D Newsgroup. |
March 29, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to C | Not yet, though it will be available at dsource.org after the alpha round has completed. If you're willing to provide some feedback I'll email you a copy (though your stated email address is unlikely to be a real one :-) - Kris "C" <dont@respond.com> wrote in message news:opr5l6lebhehmtou@localhost... Sweet , I was going to try the DSC out, but I have no idea what a servlet container is :D. Is there a download for the project ? C On Sun, 28 Mar 2004 20:38:50 -0800, Kris <someidiot@earthlink.dot.dot.dot.net> wrote: > If you're interested, I have a high performance IO package that could use > some practical feedback. It's part of the Dsc (D servlet container) > project, > but operates quite happily in a standalone configuration. Coincidently, > it's > partitioned pretty much as described below <g> > > - Kris > > > "C" <dont@respond.com> wrote in message > news:opr5l0f6imehmtou@localhost... > I agree , needs work. So far no-one has stepped up , you want to give it > ago :) ? Your uniquely qualified ;). > > C > > On Sun, 28 Mar 2004 16:51:52 -0600, C. Sauls <ibisbasenji@yahoo.com> wrote: > >> Don't feel bad, the current Stream implementation /does/ need some work, and in my opinion needs to get split into multiple modules (ie std.stream.console for stdin/out/err, std.stream.file for FileStream, etc, with a std.stream.stream defining the Stream interfact and StdStream base class... just as a suggested design. ;)) >> >> -C. Sauls >> -Invironz >> >> C wrote: >>> Dont I feel like an ass :/. That works well thank you. > > > > -- > D Newsgroup. > > -- D Newsgroup. |
March 29, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris | I'm interested. I was rather seriously thinking of just writing my own, and it would be nice not to have to (at least for some things).
-C. Sauls
-Invironz
-ibisbasenji@yahoo.com (Yeah I'm bold.)
Kris wrote:
> If you're interested, I have a high performance IO package that could use
> some practical feedback. It's part of the Dsc (D servlet container) project,
> but operates quite happily in a standalone configuration. Coincidently, it's
> partitioned pretty much as described below <g>
>
> - Kris
>
>
> "C" <dont@respond.com> wrote in message news:opr5l0f6imehmtou@localhost...
> I agree , needs work. So far no-one has stepped up , you want to give it
> ago :) ? Your uniquely qualified ;).
>
> C
>
> On Sun, 28 Mar 2004 16:51:52 -0600, C. Sauls <ibisbasenji@yahoo.com> wrote:
>
>
>>Don't feel bad, the current Stream implementation /does/ need some work,
>>and in my opinion needs to get split into multiple modules (ie
>>std.stream.console for stdin/out/err, std.stream.file for FileStream,
>>etc, with a std.stream.stream defining the Stream interfact and
>>StdStream base class... just as a suggested design. ;))
>>
>>-C. Sauls
>>-Invironz
>>
>>C wrote:
>>
>>>Dont I feel like an ass :/. That works well thank you.
>
>
>
>
> --
> D Newsgroup.
>
>
|
March 29, 2004 Re: More problems with std.stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to C. Sauls | On Sun, 28 Mar 2004 16:51:52 -0600, "C. Sauls" <ibisbasenji@yahoo.com> wrote: >Don't feel bad, the current Stream implementation /does/ need some work, Is there a thread or page somewhere listing what should be done to std.stream? Is it just efficiency (ie: add BufferedStream)? Are people thinking of something like Java's stream package with interfaces for reading/writing etc? I like std.stream's simplicity - there is no heavy machinery or APIs to wade through. >and in my opinion needs to get split into multiple modules (ie std.stream.console for stdin/out/err, std.stream.file for FileStream, etc, with a std.stream.stream defining the Stream interfact and StdStream base class... just as a suggested design. ;)) if the std.stream API gets alot bigger then sure. Otherwise I'd vote to leave it the way it is. In general have D coders been putting one "public class" per module? I guess I do but that is just because I'm used to Java. >-C. Sauls >-Invironz > >C wrote: >> Dont I feel like an ass :/. That works well thank you. |
Copyright © 1999-2021 by the D Language Foundation