News for hackers. Stuff that matters.
Re:Study of 49 programmers: static type system had no effect... by carterschonwald on Friday June 08, 2012 @01:37AM (#4082847)
only 20x? What happens when you reevaluate it with the python code not having any pieces that are C under the covers? (my understanding that a lot of python idioms for fast code basically turn into ah "use the approach that pushes as much work into C as possible")
Re:Study of 49 programmers: static type system had no effect... by algorias on Friday June 08, 2012 @02:51AM (#4083071)
Comparing favorably against a subset of a language that noone uses as such sounds pretty pointless. More interesting would be a comparison with pypy.
Re:Study of 49 programmers: static type system had no effect... by lloeki on Friday June 08, 2012 @03:02AM (#4083102)
which, FWIW, usually makes my typical code run 2x to 10x times faster than CPy
Re:Study of 49 programmers: static type system had no effect... by kinghajj on Friday June 08, 2012 @02:10AM (#4082955)
That's a common idiom in Haskell, too :)
Re:Study of 49 programmers: static type system had no effect... by carterschonwald on Friday June 08, 2012 @07:12AM (#4083655)
Not in the same way at all. Bytestring or hmatrix may have their primops in C, but the control flow stuff code for libs like Repa or Vector are pure Haskell (and in fact current state of the art work on Repa has it matching if not beating C code).

The crucial difference is that in python, these faster python idioms are for using C as the control code