Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Unix to Perl

by Boldra (Deacon)
on Mar 26, 2010 at 09:22 UTC ( #831091=note: print w/replies, xml ) Need Help??


in reply to Unix to Perl

dear all , I am struck with performace issue on road while trying drive to Memphis: I need to turn left somewhere, until i hit a cow. Then i need to move the cow to another place. The way was given: left, right, up, up more, white cow, red cow, left. could you please drive me to Memphis in your porsche as i heard its much fastre than road.

BTW, Really sorry for misusing the words. When i said road, I actually meant to say car ( tractor, wheels, etc). please find my road below. It takes approx 15 mins for me to drive to Memphis.

Replies are listed 'Best First'.
Re^2: Unix to Perl
by CountZero (Bishop) on Mar 26, 2010 at 17:56 UTC
    in your porsche as i heard its much fastre than road
    It is a blatant lie that my Porsche is faster than the road (or car or whatever). I have been driving my Porsche towards Memphis now for over an hour already and still no Memphis in sight. As a matter of fact, my Porsche just fell into the water and has stopped driving. Locals say the water is the North Sea. You did not mention I had to cross a sea and an ocean to reach Memphis.

    BTW: I am living in Belgium.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Humorous, but rather unfair.

      The confusions of the OP are, unfortunately, commonly held ones. I have had people attend a "UNIX Programming" course expecting to be taught how to write shell scripts (if they had read the description they would have seen it was for C programmers). I had a dig about the use of AWK above, yet lines like that are very common in shell scripts.

      At least give the OP credit in asking for help. This is an opportunity for education, not mockery.
        I did give him credit, even ++ his nodes and gave him a solution for his problem. I had not at all the intention to mock him, my node was not even a reply to one of his nodes.

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        Your criticisms are probably meant for me, and I accept them. Yes, I feel bad about the possibility discouraging someone who is apparently trying to learn.

        OTOH, I think that ridicule does have a role to play in learning, and we don't write replies just for the OP, but also for other readers. I wish Umesh the best and hope he hasn't given up.



        - Boldra

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831091]
help
Chatterbox?
[Corion]: And performance linear to the number of registered one-shots doesn't feel that bad. Maybe I should collect statistics on how many callbacks are outstanding ;)
[Corion]: choroba: Yes, but the longer I thought about efficient hashes mapping the event type back to their callbacks, and how to keep them in sync, the more I thought that all that optimization might just not be worth it, even if it's horribly inelegant
[Lady_Aleena]: My biggest problem with hashes at the moment is one with 2,501 keys.
[choroba]: how many event types are there?
[Corion]: Also I found that I can't conveniently weaken an array slot, which also is inconvenient, as I want my one-shots to disappear if the caller discards them
[Corion]: choroba: Currently two or three that my program handles (WWW::Mechanize:: Chrome), but there might be more that become interesting
[Corion]: But I don't expect more than 100 to be active at the same time, so I'm not really sure if there is a not-too-fancy data structure that is maintained with few lines of code where the performance is better than the linear scan ;)
[Corion]: But I should do a mock-up program so that others can see what I'm talking about ;)
[robby_dobby]: Corion: I hope you know all too well that passing around "fancy" datastructures is a recipe for disaster :-)
[robby_dobby]: As in, it's-too-fancy- that-it-will-be- messy-to-handle

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-05-29 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?