News for hackers. Stuff that matters.
Re:Study of 49 programmers: static type system had no effect... by jfoutz on Friday June 08, 2012 @01:28AM (#4082824)
so, by swiching from python to haskell, you can get code that's 20x faster for no extra development time? sounds like a win to me. (cherry picked shootout data - http://shootout.alioth.debian.org/u32q/which-programming-lan...)
Re:Study of 49 programmers: static type system had no effect... by pelotom on Friday June 08, 2012 @01:57AM (#4082916)
Not to mention being able to rule out large classes of errors at compile time, and ease of refactoring large code bases. You mean I get all that for free? Where do I sign up?
Re:Study of 49 programmers: static type system had no effect... by comex on Friday June 08, 2012 @02:39AM (#4083043)
Obligatory language argument: If by ease of refactoring you mean having to change everything whenever anything changes just to avoid a little messiness. :)
Re:Study of 49 programmers: static type system had no effect... by troels on Friday June 08, 2012 @02:32AM (#4083013)
Yes, but funnily enough it won't improve your development time. Go figure.
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

Re:Study of 49 programmers: static type system had no effect... by quadhome on Friday June 08, 2012 @05:20AM (#4083426)
Please read the paper and not the HN title.

The paper's title is casting doubts on the positive impact of statically typed languages as they had a negative impact on development time. (though not quality)

Re:Study of 49 programmers: static type system had no effect... by cageface on Friday June 08, 2012 @05:40AM (#4083469)
From the very first paragraph:

In the experiments the existence of the static type system has neither a positive nor a negative impact on an application's development time (under the conditions of the experiment).

What's the point of dynamic languages if they don't even make the initial implementation faster? They're certainly harder to maintain afterwards.

Re:Study of 49 programmers: static type system had no effect... by quadhome on Friday June 08, 2012 @05:56AM (#4083506)
From the conclusion:

We measured two different points in the development: first, the development time until a minimal scanner has been implemented, and second the quality of the resulting software measured by the number of successful test cases fulfilled by the parser. In none of these measured points the use of a static type system turned out to have a successful impact. In the first case, the use of a statically typed programming language had a significant negative impact, in the latter one, no significant difference could be measured.

Re:Study of 49 programmers: static type system had no effect... by jfoutz on Friday June 08, 2012 @10:29AM (#4084326)
Here's my pet unprovable theory. Development time is dominated by a programmer's understanding of a problem. Static languages force programmers to say a lot about their understanding of a problem.

Dynamic code can be very fast, but in lisp, after algorithms, that means actually going and finding all of the calls to elt and replacing them by calls to nth. With a static language the compiler has a much better chance of specializing the code for you.