Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Don't Write That In Perl!

by KurtSchwind (Chaplain)
on Dec 20, 2007 at 14:16 UTC ( [id://658119]=note: print w/replies, xml ) Need Help??

in reply to Don't Write That In Perl!

Well, not to interrupt the name calling going on with Perl6, but:

I was working on ETL for a datawharehouse. At the time, it was in the top 10 largest warehouses in the world. I was getting streamed binary data that was pretty complex. I had prototyped it in perl, but it was taking longer to process the data than it took to receive it. I ended up using my main ax (C/C++) to get it up and running.

This was, however, about 10 years ago. Although I can't cry poor in terms of CPU and RAM (as I recall, I had an E10K with 40CPUS and 20G of RAM or something. I'd love to give it another shot with a newer version of perl. But I don't recall perl being really good a bit-manip.

Example: I'd get 4 numbers to decode. The first was 3 bits, then 4 bits, then 7 bits, then 2 bits. This wasn't pretty in any language, but really nasty in perl. Not to mention the little/big endian issues to compensate for and getting data that doesn't line up nicely with byte boundries is pretty yucky as well.

Footnote: That was some of the most fun I've had in programming ever.

I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://658119]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-22 10:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found