News for hackers. Stuff that matters.
Re:Matlab vs. Julia vs. Python by WhompingWindows on Wednesday July 03, 2019 @02:53PM (#20347421)
Where is the discussion of R? You talk of scientific computation and don't speak of R? That's an oversight, given the majority of the scientists I know have used R. There's also STATA, which economists love, which can do somethings in my workflow much quicker than R. There is also a huge contingent of analysts that uses SAS, especially in healthcare and finance.

The car analogies in the blogpost are not particularly useful... Why do people feel the need to dumb down a topic with off-the-wall analogies? Talking about Julia like it's Tesla is laughable. Tesla is a huge innovator, Julia is another tool that does similar things to the other tools. The apt analogy for Julia would be a new ICE company, not a new EV company.

Re:Matlab vs. Julia vs. Python by ballenarosada on Wednesday July 03, 2019 @03:14PM (#20347637)
"Julia is a huge innovation; a Tesla is another car that does similar things to the other cars."
Re:Matlab vs. Julia vs. Python by BeetleB on Wednesday July 03, 2019 @03:01PM (#20347503)
Yes, but the majority of computational scientists do not use statistics - something that may be hard to believe.

As an example, most physics programs don't even have an introductory statistics class in their curriculum.

Some engineering disciplines use it more, and it is often relied a lot in industry. But most engineering research makes little to no use of it.

Re:Matlab vs. Julia vs. Python by kgwgk on Wednesday July 03, 2019 @03:21PM (#20347712)
"If your experiment needs statistics, you ought to have done a better experiment." Lord Rutherford (maybe)
Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @05:32PM (#20349037)
Except there's a whole field of statistics called Design of Experiments, which describes the mathematical basis for how to create a good experiment :-)
Re:Matlab vs. Julia vs. Python by kgwgk on Wednesday July 03, 2019 @05:47PM (#20349188)
In physics you often have the luxury, not always available in other disciplines, of having a good theory :-)
Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @06:08PM (#20349408)
Oh, I know (I have a PhD in physics)--but I'd say the main reason statistics isn't used in most fields of physics isn't because it wouldn't help, but rather because most physicists don't know much about statistics.

And publication-wise, it's a bit of a chicken and the egg problem: since most reviewers are also not well-versed in statistics, they are less likely to accept a paper that uses statistical methods to confirm or reject a hypothesis. Thus, there's no institutional pressure for a physicist to learn statistics.

(And a graduate course in statistical mechanics does not count, saying that as someone who used to use that excuse)

Re:Matlab vs. Julia vs. Python by duguxu on Wednesday July 03, 2019 @09:20PM (#20350693)
I agree with you but IMO, this could be a good thing sometimes. Avoiding statistics to some extent requires more deterministic experiments, where statistics are limited to quantum uncertainty or gaussian distribution. Otherwise there is probably some unknown mechanism to be revealed, and that’s exactly what the community expects physicists to do.
Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @10:32PM (#20351021)
There's no such thing as a deterministic experiment. There are so many sources of uncertainty in all fields of experimental physics, and statistics can help quantify and even design better experiments. It's just a shame statistics has never become a part of the standard physicist's education.
Re:Matlab vs. Julia vs. Python by duguxu on Wednesday July 03, 2019 @11:07PM (#20351172)
I agree that statistics can help a lot in experiments and should be a part of standard education. My point here is, when physicists encounter uncertainty, they are encouraged more by the current culture to design a better experiment with deterministic theory to reduce the error, compared to analysing the results statistically. It would be better to have both, but it's not as bad as you might think for focusing more on the former one, at least for some fields I'm familiar with.
Re:Matlab vs. Julia vs. Python by BeetleB on Wednesday July 03, 2019 @06:22PM (#20349519)
>And publication-wise, it's a bit of a chicken and the egg problem: since most reviewers are also not well-versed in statistics, they are less likely to accept a paper that uses statistical methods to confirm or reject a hypothesis. Thus, there's no institutional pressure for a physicist to learn statistics.

Not to mention that if experimentalists actually used statistics, they would have to describe their experiment in more detail when publishing for their statistical analysis to make sense. And in my experience, they really prefer to list as little about their experimental setup as they can get away with.

>And a graduate course in statistical mechanics does not count, saying that as someone who used to use that excuse

Heh heh. Most physicists I know would invoke "But we use probability in quantum mechanics all the time!"

Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @08:25PM (#20350407)
> Most physicists I know would invoke "But we use probability in quantum mechanics all the time!"

I have absolutely heard that one before :-)

Re:Matlab vs. Julia vs. Python by gnufx on Wednesday July 03, 2019 @07:25PM (#20350036)
I think a variant from A Random Walk in Science was "The experiment failed, so we had to use statistics", which I appreciate up to a point. However, I'd hope that physicists calculate error estimates in some sense, and goodness of fit. You hear the statistical significance of results from CERN, for instance.
Re:Matlab vs. Julia vs. Python by roel_v on Wednesday July 03, 2019 @03:08PM (#20347579)
There is a lot more to scientific computation than statistics, and the only thing R is good at is statistics.
Re:Matlab vs. Julia vs. Python by kgwgk on Wednesday July 03, 2019 @03:18PM (#20347683)
It's quite popular in bioinformatics as well: https://www.bioconductor.org/
Re:Matlab vs. Julia vs. Python by lbeltrame on Wednesday July 03, 2019 @04:43PM (#20348565)
Unfortunately the quality of the Bioconductor packages varies wildly, from pretty good to downright abysmal.

Some can't even work: take a look at this one[1], which is part of the current release of BioC: it will never work because the hardcoded host there is no longer functioning and the author wrote that for their master's thesis and have since moved on.

In addition, there's no centralized bug reporting, and some packages use GH issues while for others you may need to email the author and hope for the best (sometimes works, sometimes doesn't).

I use BioC regularly every day because I have no other alternatives, but its main advantage is the sheer numbers of packages available for almost every bioinformatic niche, rather than the quality of the packages themselves.

[1] https://github.com/AllenTiTaiWang/anamiR/blob/7a7a133c553f8c...

Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @05:06PM (#20348786)
That's not a true statement. R has packages for a wide variety of fields--statistics is just the most well developed.

And an important aspect of scientific computation is data visualization, an area in which R is decidedly more advanced than other languages.

Re:Matlab vs. Julia vs. Python by geoalchimista on Wednesday July 03, 2019 @05:12PM (#20348841)
One thing I can think of is that R is not well suited for computationally expensive work --- by "computationally expensive" I mean something that takes months to run on a cluster. Not only is R 100--1000x slower than Fortran, but it also does not have strong support for parallelism or GPU computing. I have yet to see a computational fluid dynamicist using R. Though Python is also not much better in that aspect, it can be used as a glue language to interact with native C/C++/Fortran code under the hood.
Re:Matlab vs. Julia vs. Python by gnufx on Wednesday July 03, 2019 @07:16PM (#20349952)
R is actually the basis of one of the CORAL2 benchmark sets, and there are published scaling results to 5000 cores as far as I remember. I've not done it, but presumably you can substitute its BLAS with a GPU version, the same as with an OpenMP-parallelized one to get performance for anything linear algebra-ish.

[HPC clusters on which you'd run CFD typically don't let you run for more than days, let alone months. There's probably no reason you couldn't use R the same way as Python for such things.]

Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @05:34PM (#20349059)
R has interfaces for Fortran, C, and C++ as well. Quite good ones, in fact.
Re:Matlab vs. Julia vs. Python by locoman88 on Wednesday July 03, 2019 @08:04PM (#20350278)
You are soo wrong. R for earth scientists is a god send thing. Not even Python has as many packages/libraries for earth science as R