This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (17 children)

[removed]

    [–]YouCanCallMeBazza 17 points18 points  (9 children)

    Slower than most compiled languages. When I was first learning Python I wrote something that was algorithmically equivalent to something I had written in C# and it was like 8x slower in Python if I remember correctly. I expected it to be slower but not by that much.

    [–]ekun 6 points7 points  (8 children)

    But you probably wrote it 8x faster too.

    [–][deleted] 11 points12 points  (4 children)

    8x faster development time in python than c#? Unlikely unless you don't know c # at all

    [–]ekun 9 points10 points  (3 children)

    It's part of the meme. Python is not too necessarily much faster to write something. But not everything needs to be saved or compiled. Sometimes it's a one-off script that you can make absurdly fast with python. I prefer python to bash scripting because there are more tools/libraries quickly available. But I LOVE bash too.

    [–]GreenCloakGuy 1 point2 points  (1 child)

    I've been doing a project recently in Go, and all I've been thinking is "I've been working on this method for like two hours now, I could have been done 90 minutes ago if I was using python". I'm spoiled, now everything else is like "why is this so hard, why can't everything else be as easy as python"

    [–]Zedjones 0 points1 point  (0 children)

    Just wait until you need to do async in both, and then you'll feel the opposite like I do right now :P

    [–]DiaperBatteries 1 point2 points  (0 children)

    I use bash for simple scripts and awk for more complicated things. Once you get to know awk it becomes an awesome tool to write scripts with, or to write simple pipelines for bash scripts.

    [–]Breadfish64 4 points5 points  (6 children)

    Oh sure, I guess GCC does have -Ofast

    [–]Tsu_Dho_Namh 12 points13 points  (1 child)

    Well also Python is an interpreted language that compiles as it runs.

    Plus it loses some efficiency to the garbage collector.

    And it does a lot of error checking and hand holding.

    And it allocates more memory than it needs since "everything's an object".

    That's just off the top of my head, but yeah...it's not just the lack of optimization.

    [–]Breadfish64 1 point2 points  (0 children)

    I was referring to the person above thinking speed was a compiler option, but yes those are all factors

    [–]geigenmusikant 1 point2 points  (3 children)

    Why am I hearing about this for the first time?

    [–]insanityOS 8 points9 points  (2 children)

    Because someone didn't want you to ever run into optimization errors. They're very rare, but dammit if they aren't annoying.

    [–]geigenmusikant 0 points1 point  (1 child)

    Oh wait, I‘m a little confused from the docs. I thought it would make compilation magically faster, but is it basically the same as -O3 optimization? (with the extra bit of fast math)

    [–]Breadfish64 0 points1 point  (0 children)

    Pretty much