39 points · by mindcrime · 11y ago · 49 comments
You missed the point. Everything is fast when you export what you're doing to a library. Julia is fast when you do, and when you DON'T.
In modern times, vector based thinking like that that's present in R or numpy is the only sane way to program. Because these are not "library calls," they are the primitives of modern architectures.
I think that scientists are much more likely to enjoy the lisp nature of R than the code-monkeys that get caught up because arrays start with 1 instead of 0.
P.S. that function name though...
My interpretation of the term "data science" is much more in line with practicality of engineering rather than the purity of traditional statistics. To that end, Python is leagues ahead.
He's right. 'Machine learning' is just statistics with better, cleaner names for things. The underlying theory is the same.
(The commenter below says that 'statistics explains, ML predicts', but this isn't really true. Both statistics and ML build models, whether you use these models for prediction or explanation is up to you.)
One problem is that the 'statistics' as usually taught in a college course or explained in a textbook comes from a much earlier age, before supercomputers were available to the average man; in essence, it's like a kind of machine learning as done by paper-and-pencil. In contrast, 'ML' assumes from the start that computing resources will be available.
Right, but I'm not sure that "better, cleaner names for things" actually follows. Instead, I find that the ML folks just hacked their way to similar results as traditional statistics, but in many cases were comfortable with the algorithms as "black boxes" rather than having a clear understanding of why the algorithms worked. In that sense, the author's "unprincipled" criticism is valid. This is less true today, but the new research in convolutional neural nets shows how ML starts from hacking things until they produce practical results then backing into the theory of why. This habit has resulted in much duplication of effort and naming schemes. My ML prof at Georgia Tech (Isbell was awesome! http://www.cc.gatech.edu/~isbell/) constantly trashed "genetic algorithms" for being a silly form of randomized hill-climbing.
The beneficial side of these less-principled techniques is that they happen to work on larger scale datasets. It turns out approximate results are more scalable than exact results.
"This has been the subject of huge controversy over the years, so Guido Van Rossum, inventor of the language, added a multiprocessing module."
I think that assigns too much agency to van Rossum. PEP 371 describes the justification for bringing pyProcessing into the standard library. The primary developer was Richard Oudkerk, who along with Jesse Noller volunteered to maintain it in the standard library.
While it's true that van Rossum accepted the PEP (on Thu, Jun 5, 2008 at 1:22 PM according to the mailing list), that's not quite the same thing as adding it.
For that matter, the version control logs point out who originally added the code, in its most literal sense:
user: Benjamin Peterson <benjamin@python.org>
date: Wed Jun 11 02:40:25 2008 +0000
summary: add the multiprocessing package to fulfill PEP 371As both a heavy R user and a software engineer, I can promise you that one of the quintessential aspects of R is it's actually "written by statisticians, for statisticians."
You can't accuse R of having great code and language design. Or good code and language design. Or even mediocre code and language design.
Imagine what you would get if you got a million monkeys drunk, put them on a roller coaster with laptops, and had them bang keys while they were upside down on loops. And then the result suddenly, miraculously runs and produces output. Now you understand R's software design.
cat(paste("That", "and", "string", "manipulation", "in", "R", "is", "a", "pain", "in", "the", "ass", sep=" "))
[1]: If A is n by m and B is p by q, and m is a multiple of p, then R will SILENTLY concatenate copies of B to itself to form an m by q matrix, and then do the multiplication.Case in point:
- stringsAsFactors is True by default, leading to all kinds of weird silent behaviors
- length('string') being 1, since that's silently a vector of length 1 (~ length(c('string')) ). Have to use nchar() or str_length()
But, analyzing strings is pretty cool - stringdist() or levenshteinDist() are great!
Well I think that everybody will agree that R is not good software. It's still useful, though.
A couple of idiotic things about R have already been posted in this thread, let me add one of my pet peeves: "how does one get the path of the currently executing script?". Last time I looked, the answer was "there is no way to do so without relying on implementation details that can and have changed between minor releases.". Lol, that's pathetic.
Now that Microsoft has made substantial investments in R, I hope that at least they'll fix the major issues in embedding R through the C api. (and no, Rcpp is substandard - it doesn't even support the msvc compiler).
Oh, and you think all programmers from all time were all born with the same background and same experience and CS degree?
Yeah, like the Wright Brothers were aviators and aircraft designers before they made their own plane ?
What are we supposed to glean from this paragraph?
1. Not good to make assertions that you immediately undermine by admitting you don't know what you are talking about 2. I find @spawn and @fetch quite nice, in fact I think that Julia was built from the ground up around notions of parallelism (ie. multiple dispatch)
> There is a huge discussion about this on the mailing list; please see that. If 0 is mathematically "better", then why does the field of mathematics itself start indexes at 1? We have chosen 1 to be more similar to existing math software.
A post above also appeals to mathematica. It's been a while since I've had to internalize the "cost" of zero indexing, so this never felt very compelling.But it's true, indexing from 1 is common, or idiomatic, in Fortran.