News for hackers. Stuff that matters.
Re:Rise of the Scientific Programmer by Fede_V on Thursday January 01, 2015 @03:15PM (#8824106)
As other people have mentioned - the problem is that academia rewards producing papers, not stable software libraries.

For example - scikit-learn is an amazing project, lead mostly by a small group at INRIA with Gael at the helm - and in terms of academic prestige, scikit-learn is probably 'worth less' on your CV than a couple of Nature papers.

This is of course ridiculous - scikit learn is used by a huge amount of people, it takes an insane amount of work to run the project, yet the incentives are what they are.

Re:Rise of the Scientific Programmer by palvaro on Thursday January 01, 2015 @05:07PM (#8824523)
> the problem is that academia rewards producing papers, not stable software libraries.

isn't this the good thing about academia? aren't you kids getting paid the big bucks to write and maintain the software libraries, while we work on novel problems for pennies?

Re:Rise of the Scientific Programmer by Fede_V on Thursday January 01, 2015 @05:29PM (#8824577)
I am an academic myself! Aside from that - it's actually a bad thing, poor software quality is incredibly harmful when trying to create reproducible research.

A few people are fighting this (Titus Brown, etc) but it's mostly swimming against the tide of bad incentives.

Re:Rise of the Scientific Programmer by blackkettle on Thursday January 01, 2015 @06:38PM (#8824792)
i have started using Docker for this kind of stuff. you can build an isolated environment for your software and experiments, where you can absolutely guarantee that anyone who wants to can easily replicate your experiments, since they don't need to create the environment themselves - just pull the docker image for conference-paper# and run the scripts.

if the experimental data is proprietary, or you want to keep it separate, you can set a mount point for it in the lxc.

Re:Rise of the Scientific Programmer by mcguire on Thursday January 01, 2015 @08:50PM (#8825158)
"anyone who wants to can easily replicate your experiments"

Replicate the experiments, or just repeat the results?

Re:Rise of the Scientific Programmer by jsprogrammer on Friday January 02, 2015 @01:59AM (#8825856)
How about, verify the published code (!) even produces the published results?
Re:Rise of the Scientific Programmer by blackkettle on Friday January 02, 2015 @07:31AM (#8826524)
the stuff i work on is in the area of machine learning, so most published work involves one or more well-known data sets.

i would argue that the two are the same in this case.

the lxcs provide all the source code i write [plus of course the compiled version], all third-party libraries, and all scripts used to run and evaluate the experiments, and the data as well, where that is permitted.

it's still not perfect, but for my area, i honestly think it is the best, and most accountable way to do things that i have seen.

Re:Rise of the Scientific Programmer by mcguire on Friday January 02, 2015 @10:33AM (#8827037)
And hopefully one or more not-so-well-known, local data sets to check that the results are actually as claimed?
Re:Rise of the Scientific Programmer by blackkettle on Friday January 02, 2015 @08:33PM (#8829570)
well, the idea is that you should be able to run any data set you have, and get good results relative to other solutions. but that is an open question with any research.

the point of the docker/lxc aspect is to provide a simple working environment to facilitate replication and validation.

so in comparison to the status quo, which is basically 'write a paper, include some high level equations, and results', i think this is a step forward in a better direction.

Re:Rise of the Scientific Programmer by Fomite on Friday January 02, 2015 @09:57AM (#8826906)
+1 for this. There is so much more to repeatability beyond "When I click run, does it give me the same number again?"
Re:Rise of the Scientific Programmer by Blahah on Friday January 02, 2015 @03:45AM (#8826069)
if it's an entirely computational experiment, which is not uncommon, then 'replicate the experiments' is correct.
Re:Rise of the Scientific Programmer by mcguire on Friday January 02, 2015 @10:38AM (#8827059)
I tend to worry that an error in the code will be baked into the theory for generations.

I don't deal with much scientific code myself, but at one point I dealt with a proof-of-concept cryptographic library from a reasonably well-respected researcher. The code behaved correctly from the outside, but when I dug into it, deviated wildly from the published specification.

Re:Rise of the Scientific Programmer by forgottenpass on Friday January 02, 2015 @01:51PM (#8827939)
Recent Eurpoean economic policy was based on a paper that relied on an Excel formula error http://theconversation.com/economists-an-excel-error-and-the...

It only lasted a few years, but I find the idea of exiting long lasting research founded on bad code a to be very real possibility.

Re:Rise of the Scientific Programmer by gnufx on Friday January 02, 2015 @08:01PM (#8829487)
A distressing number of runs on our HPC system simply aren't reproducible twice in a row anyway. They get repeated until, or in the hope that, they don't deadlock or segv, not that users typically believe in deadlock. They aren't debugged -- it's blamed on supposed system problems, not the code -- and it doesn't seem to worry the people publishing results from them. I doubt our users are unique.

Even for decent code, docker is being over-sold for this sort of thing. Serious large-scale calculations, in particular, simply aren't hardware-independent in practice. Consider a 1024-core PSM MPI job with Haswell-specific code or requiring some GGPU, or a 128-core, 2TB SMP one; you can't run them anywhere. Even if you can package and run in docker at another site, if you don't get the "right" results, what do you do about it if you don't have source?

Re:Rise of the Scientific Programmer by blackkettle on Friday January 02, 2015 @08:41PM (#8829590)
source code should also be included as a matter of course...

i don't think it is an oversell, in the sense that it is still unusual to include source code and experimental setups [at least in my field]. a replicable environment with included source code is a large step forward.

sad as that might be.

Re:Rise of the Scientific Programmer by seanmcdirmid on Thursday January 01, 2015 @06:59PM (#8824849)
This reminds me of Phillip Guo's work; maybe this one?

http://pgbovine.net/publications/CDE-create-portable-Linux-p...

Re:Rise of the Scientific Programmer by blackkettle on Friday January 02, 2015 @07:34AM (#8826532)
also it hadn't occurred to me that this might be something interesting to even publish a paper about. so thanks for that too [assuming someone else hasn't already done this too..]

edit: well no surprise there i guess! http://www.nextflow.io/blog/2014/nextflow-meets-docker.html

Re:Rise of the Scientific Programmer by blackkettle on Friday January 02, 2015 @07:17AM (#8826487)
cool, i had not heard of this. i just started using docker for work and came to the conclusion that it was epically well-suited to this purpose as well. i think docker might be even nicer, since there is no special tools required [but ill definitely take a closer look at this work]
Re:Rise of the Scientific Programmer by seanmcdirmid on Friday January 02, 2015 @09:50AM (#8826878)
Guo's work is a bit old, docker is a very new thing.
Re:Rise of the Scientific Programmer by palvaro on Thursday January 01, 2015 @05:36PM (#8824602)
I agree that this is a serious issue in our community, but I am not sure I agree that stable libraries <=> reproducible experiments.
Re:Rise of the Scientific Programmer by nitrogen on Thursday January 01, 2015 @05:42PM (#8824617)
If those experiments involve automated data collection or computer models, then stable data collection or modeling libraries would be kind of important for reproducing them.
Re:Rise of the Scientific Programmer by Fede_V on Thursday January 01, 2015 @05:44PM (#8824622)
Try to reproduce the analysis published in a paper when all you have is a matlab script with one letter variable names and zero comments :)
Re:Rise of the Scientific Programmer by _delirium on Thursday January 01, 2015 @05:54PM (#8824648)
If you're running someone else's code, imo that's not reproduction in the first place, just like re-running an experiment using the original experimenter's preparations and lab apparatus is not what's usually meant by "reproducing" an experiment. Too much undocumented stuff can creep in if you don't independently reproduce, with independent apparatus, preparations of samples, etc. (I don't think having someone's code is useless, and it can be especially useful for elaborating on the original experiment, but I would purposely avoid looking at it if I were aiming for an independent reproduction.)
Re:Rise of the Scientific Programmer by rntz on Thursday January 01, 2015 @07:22PM (#8824913)
You are always running someone else's code. It starts the moment you boot up your machine.
Re:Rise of the Scientific Programmer by jsprogrammer on Friday January 02, 2015 @02:01AM (#8825860)
Not if you bootstrap from the silicon up.
Re:Rise of the Scientific Programmer by zo1 on Thursday January 01, 2015 @06:15PM (#8824719)
If you even have access to the source code, detailed algorithm, or even a matlab script. It's either a citation or a plain old equation.

Often times, and especially from what I've seen in the computer vision papers, the authors merely state what algorithm they used, and how they combined it with their novel method. And that algorithm is in another paper, by the way, probably by the same author. Definitely not the implementation you're working with, too, if you have it.

It's almost as if they need a combined repository. And each paper that presents a novel algorithm, or implementation of an existing one, is a "changeset" or "branch". And the citations to algorithm's used in a paper would be changeset hashes, or branch names. Hey, it's the first thing that popped into mind for me to solve this horrendous problem.

Re:Rise of the Scientific Programmer by Toenex on Friday January 02, 2015 @09:57AM (#8826911)
I certainly agree with this. The computer vision field is awash with papers proposing a 'new' algorithm which is then poorly compared to some select group of existing techniques under criteria chosen by the author. A paper is a very poor substitute for the code itself and really it should be mandatory for code to be submitted with the paper, especially in a field such a computer vision where the entire experimental apparatus could be packed into a zip file. That way any other group could take the code and independently evaluate the technique without reimplementation. Indeed my own experience is that often the maths described in the paper is not necessarily responsible for all the results! As you say this could even become the start of collaborative improvement.

Unfortunately my experience is that too many academic groups believe that their source code is the route to untold riches.

Re:Rise of the Scientific Programmer by GFK_of_xmaspast on Thursday January 01, 2015 @06:50PM (#8824828)
Better than nothing. (Been there, done that).
Re:Rise of the Scientific Programmer by ehurrell on Friday January 02, 2015 @05:24AM (#8826301)
I agree with you here, but I think 'stable libraries' is perhaps a good target for a few reasons, right now the culture isn't just bad code, it's "There is no advantage or benefit to showing your code". I would say a difference between computer scientists and programmers is that frequently the work isn't just the code, but still, nurturing something like an open-source scientific community would accelerate a lot of learning.
Re:Rise of the Scientific Programmer by walshemj on Thursday January 01, 2015 @06:05PM (#8824686)
The bad thing is academia is badly paid so are the support staff which is why I left a world class RnD organisation to work in commercial software.

have you read Cryptnomicon look at how Randy's first job at a University is described.

Re:Rise of the Scientific Programmer by Chinjut on Friday January 02, 2015 @11:31AM (#8827331)
Prestige should accumulate to anyone who does good work, of whatever kind. Stable software libraries can help science as much as producing papers (if nothing else, because of their effect on future production of papers!).
Re:Rise of the Scientific Programmer by IndianAstronaut on Thursday January 01, 2015 @06:14PM (#8824715)
In the middle of my PhD I got offered to work on some major Python projects. I had to turn it down since it would have hurt my already shaky PHD progress. I couldn't have used it to contribute to my degree.
Re:Rise of the Scientific Programmer by saraid216 on Thursday January 01, 2015 @03:30PM (#8824171)
It's just a standard consequence of underfunding. No one gets paid to develop scikit-learn full time. An academic gets paid by getting grants. When you look at a lot of the best libraries out there, how were the top contributors employed at the time?

Generally speaking, you'll find that most of them were employed by companies who were willing to let them burn money to develop the library. Universities don't have that luxury anymore.

Re:Rise of the Scientific Programmer by Fede_V on Thursday January 01, 2015 @08:12PM (#8825073)
There actually are some full time developers for scikit-learn - and they are amazingly talented.

There's lots of difficulties in securing that funding though. Getting funding for permanent staff is incredibly tough - usually you have 3 year contracts for 'postdocs' that pay around ~40% of what a similarly skilled software developer could earn. The only stable positions in academia are professorship - and even those are going away in favour of positions where people are expected to pay increasing portions of their salary from their grants.

How can you credibly offer someone 40-50k dollars a year, with no job security, tied to some grants that might or might not be renewed and expect them to turn down offers from companies looking for data scientists?

Re:Rise of the Scientific Programmer by zo1 on Friday January 02, 2015 @05:45AM (#8826343)
"How can you credibly offer someone 40-50k dollars a year, with no job security, tied to some grants that might or might not be renewed and expect them to turn down offers from companies looking for data scientists?"

The same way that restaurant owners ask their servers to work for sub-minimum wage and expect them to bring that up to minimum wage via "tips"(Law mandates they bump that up to minimum wage of 7+ if tips don't cover it, but that's separate). Not entirely the same, but it's an alternate form of payment for services rendered. If you ask me, I think it's perfectly reasonable as long as there are no laws meddling and causing an increase of such "odd" remuneration schemes.

Re:Rise of the Scientific Programmer by mamoswined on Friday January 02, 2015 @10:55AM (#8827142)
I work in academia and I have job security and full benefits. I can't work on projects like this all the time though. I'm responsible for more generalized infrastructure like webservers, but when I have free time I'm welcome to work on stuff like this. I think more academic IT departments should leverage their talent like this.
Re:Rise of the Scientific Programmer by frozenport on Thursday January 01, 2015 @08:49PM (#8825155)
>>'worth less' on your CV than a couple of Nature papers.

Because Nature is for biologists? A couple of Nature paper's won't get you a job at Google.

Re:Rise of the Scientific Programmer by BaryonBundle on Thursday January 01, 2015 @09:55PM (#8825317)
Nature is also important in Physics and Astrophysics.
Re:Rise of the Scientific Programmer by Fomite on Friday January 02, 2015 @09:59AM (#8826924)
Is here where I point out that Google employees have publications in Nature?
Re:Rise of the Scientific Programmer by musername on Saturday January 03, 2015 @06:47AM (#8830541)
yes, it would almost seem so, if you had presented sources to back the claim :)
Re:Rise of the Scientific Programmer by Fomite on Saturday January 03, 2015 @08:44PM (#8832823)
Re:Rise of the Scientific Programmer by musername on Wednesday January 07, 2015 @07:50AM (#8850183)
we were talking in plural form