Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 6 submissions in the queue.
posted by n1 on Tuesday May 13 2014, @01:11AM   Printer-friendly
from the it's-dark-in-here dept.

We all know that python is slower than compiled languages like C. But what can you do about it? Jake VanderPlas, director of research in the physical sciences for the university of Washington's eScience institute, digs into python's internals to explain how it works and what program design choices you can make to use python efficiently.

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Insightful) by maxwell demon on Tuesday May 13 2014, @08:04AM

    by maxwell demon (1608) on Tuesday May 13 2014, @08:04AM (#42583) Journal

    I don't get why they characterize "forgiving" as a virtue of dynamic typing. I don't want my language to be forgiving. I prefer to be told quite from the start that I'm trying to do nonsense, not some time later when my code fails at run time.

    Dynamic typing has advantages, but "forgiving" is not one of them. Forgivingness is a disadvantage. It's a price you pay for the flexibility dynamic typing gives you. It's often a price worth to pay, but it's still a cost, not a benefit.

    --
    The Tao of math: The numbers you can count are not the real numbers.
    Starting Score:    1  point
    Moderation   +1  
       Insightful=1, Total=1
    Extra 'Insightful' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3  
  • (Score: 0) by Anonymous Coward on Tuesday May 13 2014, @08:30AM

    by Anonymous Coward on Tuesday May 13 2014, @08:30AM (#42595)

    Exactly. Add on to that the fact if you write 'forgiving' code, you might get to meet your unforgiving boss or his boss!

    • (Score: 0) by Anonymous Coward on Tuesday May 13 2014, @10:24AM

      by Anonymous Coward on Tuesday May 13 2014, @10:24AM (#42619)

      But ... I'm so proud of my forgiving password check. It not only tolerates typos, it even tells you how to correct them! ;-)

  • (Score: 1) by romlok on Tuesday May 13 2014, @09:03AM

    by romlok (1241) on Tuesday May 13 2014, @09:03AM (#42605)

    I don't get why they characterize "forgiving" as a virtue of dynamic typing.

    On that specific point, they don't. The comment about "forgiving" is a separate sentence to that regarding dynamic typing. They are saying that Python in general is "forgiving".

    Whether "forgiving" is a good thing or not I couldn't really say in this case, since I'm not sure in what ways the author means that Python is forgiving (and can't really think of any myself).

    • (Score: 0) by Anonymous Coward on Tuesday May 13 2014, @01:51PM

      by Anonymous Coward on Tuesday May 13 2014, @01:51PM (#42716)

      Well, it certainly isn't forgiving about changes of indentation. ;-)