stream nile fixes?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

stream nile fixes?

Stéphane Ducasse
Damien or cyrille

could you check if the following is working in Nile?
http://code.google.com/p/pharo/issues/detail?id=1595

Stef

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: stream nile fixes?

Damien Cassou
On Sun, Dec 13, 2009 at 11:04 AM, Stéphane Ducasse
<[hidden email]> wrote:
> could you check if the following is working in Nile?
> http://code.google.com/p/pharo/issues/detail?id=1595

I wrote Nile results.

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: stream nile fixes?

Nicolas Cellier
2009/12/14 Damien Cassou <[hidden email]>:
> On Sun, Dec 13, 2009 at 11:04 AM, Stéphane Ducasse
> <[hidden email]> wrote:
>> could you check if the following is working in Nile?
>> http://code.google.com/p/pharo/issues/detail?id=1595
>
> I wrote Nile results.
>

About Nile, don't know if it is the right place, but I have a few
questions about implementation...
(I looked once a year ago but now have new light of recent trials on XTream)

Why NSMultiByteBinaryOrTextStream don't use a NSDecoder pattern ?
Maybe it would help retiring the basicNext & co protocol...

Why does NSTDecoder peek answers nil when atEnd ? Cannot nil be a
regular answer ?

Why NSBuffer use hardcoded buffer length of 100 ? Is this just an example ?
I ask because buffering is a key to efficiency both for files and TextConverter.

Micro-detail in NSTReadingChunks:
Why #skipSeparators use explicitRequirement whiel
#skipSeparatorsAndPeekNext provides an implementation for
skipSeparators (test isSeparator)

This is a first fast read of source, no time to even load or execute,
but I can see a lot of work here.

Cheers

Nicolas


> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Lambdas are relegated to relative obscurity until Java makes them
> popular by not having them." James Iry
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: stream nile fixes?

Damien Cassou
I will answer part of your questions and let Cyrille answers the others:

On Mon, Dec 14, 2009 at 11:00 PM, Nicolas Cellier
<[hidden email]> wrote:
> Why does NSTDecoder peek answers nil when atEnd ? Cannot nil be a
> regular answer ?


because it is what core streams are doing and I wanted to mimic core
streams to be able to replace them easily. Once replaced, we will be
able to change things.

> Why NSBuffer use hardcoded buffer length of 100 ? Is this just an example ?
> I ask because buffering is a key to efficiency both for files and TextConverter.

this is a stupid proof of concept implementation that we will have to
change when we decide to do something serious with it.

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project