News for hackers. Stuff that matters.
Re:Calling R lovers to work together on “The R Programming w... by mjw on Monday June 20, 2011 @05:38PM (#2676210)
I'd love to see an "R for rubyists/pythonists/...", basically an R tutorial aimed at reasonably experienced programmers which explains what you need to know about the quirks of R to properly grok it as a language, how it differs to ones you're familiar with, etc.

As opposed to a tutorial aimed at the "I really just want a recipe to achieve statistical task xyz" crowd.

In particular: every time I delve back into R, I forget how its funky data structures work.

Re:Calling R lovers to work together on “The R Programming w... by noahnoahnoah on Monday June 20, 2011 @07:18PM (#2676550)
I've always found this to be helpful for programmers coming from other languages: http://www.johndcook.com/R_language_for_programmers.html

(not the author, just a fan)

Re:Calling R lovers to work together on “The R Programming w... by ahi on Monday June 20, 2011 @06:30PM (#2676407)
Not sure that's possible. "R in a Nutshell" is 640 pages for a reason.
Re:Calling R lovers to work together on “The R Programming w... by jergosh on Monday June 20, 2011 @02:16PM (#2675290)
Even better, reimplement the interpreter with modern data structures...
Re:Calling R lovers to work together on “The R Programming w... by mjw on Monday June 20, 2011 @05:46PM (#2676246)
Glad I'm not the only one bugged by this.

Next time I think I might try the http://rubyforge.org/projects/rsruby/ bindings instead.

Re:Calling R lovers to work together on “The R Programming w... by jergosh on Monday June 20, 2011 @06:49PM (#2676460)
I would recommend http://rpy.sourceforge.net/rpy2.html (I'm biased, though ;))
Re:Calling R lovers to work together on “The R Programming w... by ahi on Monday June 20, 2011 @03:37PM (#2675635)
Didn't they try that once? And instead of fixing things they ended up with two sets of broken data structures? I could be mistaken.
Re:Calling R lovers to work together on “The R Programming w... by TalGalili on Monday June 20, 2011 @02:32PM (#2675361)
Go ahead... :)
Re:Calling R lovers to work together on “The R Programming w... by MaxMorlock on Monday June 20, 2011 @04:55PM (#2676021)
Would you please be so kind and explain in some more detail what you mean? Thank you!
Re:Calling R lovers to work together on “The R Programming w... by jergosh on Monday June 20, 2011 @05:19PM (#2676124)
Well, as far as I remember lists (which are used like hash tables, as they associate variables with names, see http://cran.r-project.org/doc/manuals/R-lang.html#List-objec...), implement indexing as an O(n) operation. Only after they reach a certain size are they converted to a hash table.

Everything is pass by value with some cases being marked as 'safe', i. e. if you know beforehand the variable won't be changed it's not copied to save time.

The reason for this is that the project was designed by people who were primarily statisticians, and the most glaring performance problems were later fixed by hacks and 'special cases'.

Disclaimer: Most of this I know second hand from a coworker who's an author of many R packages. I worked with R's interface to C and it wasn't a pleasant experience.

Re:Calling R lovers to work together on “The R Programming w... by klipt on Monday June 20, 2011 @07:57PM (#2676705)
Even better, write a statistical module for scipy that's competitive with R.