Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: What is the best way to master perl

by bulk88 (Priest)
on Dec 04, 2012 at 20:34 UTC ( #1007153=note: print w/ replies, xml ) Need Help??


in reply to Re: What is the best way to master perl
in thread What is the best way to master perl

What is wrong with writing a device driver in Perl other than performance?


Comment on Re^2: What is the best way to master perl
Re^3: What is the best way to master perl
by blue_cowdawg (Monsignor) on Dec 04, 2012 at 21:27 UTC

    Never said it wasn't possible. But to stretch an analogy I could probably put a screw into a board with some measure of success with a hammer clearly there are better tools designed for the job. I do remember in a McGiver style situation using a hammer and nail to "drill" a pilot hole for a screw, but I'd rather not do that on a normal basis.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re^3: What is the best way to master perl
by space_monk (Chaplain) on Dec 05, 2012 at 10:13 UTC

    You said "other than performance". Those are the magic words that govern the operation of most device drivers.

    Within reason, no-one cares if your Perl program takes a couple of extra seconds to generate that report/parse that text document, but if your device driver is making the rest of the system slow and unusable, noone is gonna be happy

    A Monk aims to give answers to those who have none, and to learn from those who know more.
Re^3: What is the best way to master perl
by blue_cowdawg (Monsignor) on Dec 06, 2012 at 20:57 UTC

    A trip down memory lane here:

    Closest I ever came to writing a driver in Perl was a while back when I used to use a EPROM burner that I got for free that didn't have the user software to go with it. I obtained a photocopy-of-a-photocopy-of-a-... you get the idea of the user's manual and it had the command protocol documented in its appendix.

    I wrote a UI of my own using Perl running on top of a pre-cursor to Cygwin on DOS and wrote a XS module to actually talk to the serial port on the burner. The Perl program used the XS module for the low level stuff passing commands and data to the XS module's methods and happily burning on to the EPROMs or dumping them or whatever I needed.

    Don't really use EPROMs any more and I gave the burner away along with the XT that I used to drive it. Getting XS to work was an education to say the least.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
      ... and that was back when we were making our own EPROMS
          with a broken exacto knife, a pair of waterpump pliers and a band saw!

      ...and going to and from school required a 9-mile walk thru 6-foot (2m) snowdrifts, going uphill both ways!


        :-) but ++blue's memory-lane-byway. XS still isn't for the fainhearted.

            with a broken exacto knife,

        You had a broken xacto knife to work with? We'd have killed for one of those... we had to start with iron ore! :-D


        Peter L. Berghold -- Unix Professional
        Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (18)
As of 2014-12-22 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (119 votes), past polls