Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Isn't Python still viewed as a mess now?

Imo the coding part is fine. I have no mayor complains about it. I even like indentation as syntax as long as you use tabs :)

Python is the modern day BASIC. Slow interpreted lingua franca. As long as you are ok with its speed I say go for it. Python is the only scripting language where I maintain constant lingering awareness that every single line of code adds milliseconds to run time. As bad as instantiating new variable costing single digit ms on a GHz CPU. This quickly adds up the more you are trying to achieve.

Example benchmark, Python 3.4:

    # Direct Access d['key']: 3.3710 seconds
    # Direct Enum Access d[enum.key]: 157.9954 seconds
In latest versions Enums got "fixed" to "only" 3-6x slower than strings! SimpleNamespace to the rescue.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: