[Pharo-project] stream nile fixes?
Damien or cyrille could you check if the following is working in Nile? http://code.google.com/p/pharo/issues/detail?id=1595 Stef
On Sun, Dec 13, 2009 at 11:04 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> 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
2009/12/14 Damien Cassou <damien.cassou@gmail.com>:
On Sun, Dec 13, 2009 at 11:04 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I will answer part of your questions and let Cyrille answers the others: On Mon, Dec 14, 2009 at 11:00 PM, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> 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
participants (3)
-
Damien Cassou -
Nicolas Cellier -
Stéphane Ducasse