develooper Front page | perl.perl5.porters | Postings from January 2014

Re: How on earth did we manage to break pack() so badly?

Thread Previous | Thread Next
Leon Timmermans
January 14, 2014 14:15
Re: How on earth did we manage to break pack() so badly?
Message ID:
On Tue, Jan 14, 2014 at 2:38 PM, Paul "LeoNerd" Evans <> wrote:

> Personally I'd be in favour of prototyping a brand new pack-alike thing
> on CPAN, to fix these and some other issues.[*]
> pack/unpack don't do anything truely "interesting" in core that
> couldn't be done with regular XS code; their presence in the core
> binary is purely a convenience. A CPAN prototyped replacement could
> easily be possible.
>  * Such issues as lack of stream-reading unpack, Google-style varints,
>    terrible behaviour on buffer under-runs, ...

Stream reading would be terribly useful, but the buffer underrun behavior
that makes scream with despair to the point where I consider adding
something for it (despite knowing what unpack looks like on the inside).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About