News for hackers. Stuff that matters.
Re:Ask HN Hackers: What's R's future? by eliben on Thursday November 11, 2010 @08:23AM (#1893724)
I wonder - could R in theory be rewritten as a Python library? If not, why not? Is there any special syntax of R that makes it more amenable to statistical analysis than Python? Performance concerns?

It's just a shame to see a whole language popping out of something that could just be a library.

Re:Ask HN Hackers: What's R's future? by cdavid on Thursday November 11, 2010 @09:10AM (#1893832)
[caveat: I am a numpy/scipy developer]

The idea of rewriting a large body of code in a different language does not make much sense.

Also, being a niche language has some nice consequences:

  * R has been there for a long time through its predecessor S
  * R is a specialized language: little chance to see it being screwed up by some library which wants to change everything, as it happens too often in python
  * Because it is a niche language, its behavior is consistent across platforms (it is just easier to do with R than with python, or other "real" languages).
Note how being a "real" language goes against those advantages. Also, most researchers are very lousy programmers. Often, their software is super smart, but the code quality is awful and write-only. A less powerful language may mitigate those issues
Re:Ask HN Hackers: What's R's future? by hadley on Monday November 15, 2010 @09:24AM (#1906308)
Would love to know why you think R isn't a "real" language.
Re:Ask HN Hackers: What's R's future? by mbreese on Thursday November 11, 2010 @11:00AM (#1894165)
I've called out to R libraries before using rpy/rpy2. These have made it pretty easy. Then I can work with my data in Python, but when I need to use a stat function, I can just call out to R.
Re:Ask HN Hackers: What's R's future? by equark on Friday November 12, 2010 @12:02AM (#1896585)
There are a few issues. For me two of the most basic are 1) the lack of a ubiquitous NA across all data types and 2) lack of 754 floating point behavior. The lack of custom infix operators is also a bit painful, especially if you view matlab as a competitor. The unquoted formula type is also nice, although you could get some of that by parsing strings.
Re:Ask HN Hackers: What's R's future? by EventHorizon on Thursday November 11, 2010 @08:43AM (#1893772)
R is an implementation of S. According to http://en.wikipedia.org/wiki/S_%28programming_language%29 it has its origins in 1975.
Re:Ask HN Hackers: What's R's future? by lazyfunctor on Thursday November 11, 2010 @09:30AM (#1893894)
Something like that exists for clojure. http://incanter.org/ "Incanter is a Clojure-based, R-like platform for statistical computing and graphics."
Re:Ask HN Hackers: What's R's future? by boothead on Thursday November 11, 2010 @08:59AM (#1893809)
You mean like numpy/scipy/matplot lib?
Re:Ask HN Hackers: What's R's future? by eliben on Thursday November 11, 2010 @09:23AM (#1893866)
Yes, on top of these
Re:Ask HN Hackers: What's R's future? by hogu on Thursday November 11, 2010 @09:58AM (#1893984)
scikits.statsmodels, pandas, rpy2