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
From:
Leon Timmermans
Date:
January 14, 2014 14:15
Subject:
Re: How on earth did we manage to break pack() so badly?
Message ID:
CAHhgV8g5Y359-UuNqp-LHb2AcSRne0TuF2caN=1qvio4WraP1g@mail.gmail.com
On Tue, Jan 14, 2014 at 2:38 PM, Paul "LeoNerd" Evans <
leonerd@leonerd.org.uk> 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).

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About