News for hackers. Stuff that matters.
Re:The promise of static typing by reverius42 on Thursday May 19, 2016 @07:10PM (#11734564)
This analysis seems a bit shallow and I'm not sure what point it's trying to prove. There are a lot of factors that aren't accounted for (as other commenters point out, project size is a major one), and a few others I can think of that would affect the metric used (apparently bugs/repo):

* Project management strategy for the repo/project.

* Commercial vs. non-commercial project.

* Ability and experience of the developers.

* Popularity of the project.

* Type of project (library, application, etc.)

I suspect all of these will correlate in a meaningful way with the language choice. Commercially produced or consumed projects may be more likely to have comprehensive bug reporting/tracking, and are more likely to be in a "mainstream" language, for instance.

Like Torvalds says, with enough eyeballs, all bugs are shallow. A corollary to that could be that without knowing how many eyeballs there are, and how well they can see, you don't really know how many bugs there are, either.

Re:The promise of static typing by Muges on Thursday May 19, 2016 @07:43PM (#11734731)
This analysis fails to take into account the popularity of a language. The repository of a library is likely to have more users if it's written in a popular language, and these users will probably report more bugs and feature requests.

Considering this I'm not surprised at all to see that Java, Python and C++ repositories have a higher "bug density" than Clojure, Go or Erlang ones.

Re:The promise of static typing by leoh on Friday May 20, 2016 @01:15AM (#11735677)
What about Ruby?
Re:The promise of static typing by Muges on Friday May 20, 2016 @05:48AM (#11736606)
I'm not saying that this metric measures language popularity, but that language popularity seems to have a big influence on it. I may be wrong, but that's what caught my eye when I read the article. There are plenty of other factors that aren't accounted for, some of which have been pointed out by other commenters.
Re:The promise of static typing by akras14 on Friday May 20, 2016 @01:39AM (#11735733)
What about JavaScript?
Re:The promise of static typing by itsdrewmiller on Thursday May 19, 2016 @04:28PM (#11733519)
Does anyone know what unit is being used for the x axis on these charts?

Edit: Figured it out (total bugs / repo). Seems like controlling for overall project size is an important missing component of this analysis.

Re:The promise of static typing by egwynn on Thursday May 19, 2016 @06:29PM (#11734380)
Agreed. I think (bugs/LOC) could even work.
Re:The promise of static typing by gdwatson on Thursday May 19, 2016 @06:47PM (#11734456)
That might be better, but it would still be misleading. "Denser" languages would have more bugs per line, but also fewer lines per program.

I've never used APL and wouldn't want to debug it, but its bug-to-line ratio could be much higher than Java and still come out ahead in practice.

Re:The promise of static typing by rbanffy on Thursday May 19, 2016 @08:21PM (#11734870)
APL is considered by many a write-only language.
Re:The promise of static typing by rbanffy on Thursday May 19, 2016 @08:21PM (#11734867)
> Seems like controlling for overall project size is an important missing component of this analysis.

That would bias the numbers against more concise languages.

Re:The promise of static typing by andyfleming on Friday May 20, 2016 @02:06AM (#11735814)
This analysis seems as though it could be misleading. Couldn't the number of bugs reported vs. the actual number of bugs that exist in the code differ significantly?
Re:The promise of static typing by cousin_it on Friday May 20, 2016 @03:14AM (#11736032)
It's impossible to find the truth by a single observational study with ten data points and tons of unaccounted variables.
Re:The promise of static typing by chrisdevereux on Friday May 20, 2016 @05:52AM (#11736623)
Aside from project size, the problem domains of libraries are likely to vary hugely between languages. With statically typed languages being biased towards either systems programming or more algorithmically complex tasks.

The proportion of Haskell libraries for tasks like string padding is probably lower than the proportion of ruby or js libraries, for example.

Re:The promise of static typing by ArkyBeagle on Friday May 20, 2016 @05:37AM (#11736562)
static languages and dynamic languages simply have different ways to injure yourself.