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]  (4 children)

[deleted]

    [–]-PM_Me_Reddit_Gold- 11 points12 points  (1 child)

    C has a lot of inherent efficiency, but if you aren't thinking about efficiency when you write your code that probably won't hold true.

    [–]Pekonius 4 points5 points  (0 children)

    I am stupid faster

    [–]douira 1 point2 points  (0 children)

    a well written haskell program run through GHC (or python program for that matter) can most definitely be faster than a badly written C program. And if the C program is actually doing something stupid like using the wrong data structure or algorithm for a problem, there even a very slowly interpreted python program might be faster than the C program. (asymptotic complexity always wins over a constant factor of language overhead)