News for hackers. Stuff that matters.
Re:Julia is awesome, but.. by bachmeier on Monday December 29, 2014 @11:16AM (#8810339)
> There have been efforts in the past to introduce a JIT compiler, but nothing has become mainline yet

It's been included in the default install of R since version 2.14. You can compile any function you want, and in some cases you can get a speedup of several times. Sure, you're not getting the speed of C, but it's there, it works, and in the future it will lead to much larger speedups.

Some info and timings are here: http://www.rinfinance.com/agenda/2014/talk/LukeTierney.pdf

The experimental version of the compiler can achieve speedups in the neighborhood of 20x.

Re:Julia is awesome, but.. by lottin on Monday December 29, 2014 @02:43PM (#8811419)
Well, it's true, it is included in the default install. After unsuccessfully trying to locate the elusive 'compiler' package at CRAN, I came to the conclusion that the R compiler was an urban legend. Now I realise it was already installed all along from the start and all I had to do is 'library(compiler)'. Silly me.
Re:Julia is awesome, but.. by bachmeier on Monday December 29, 2014 @04:13PM (#8811817)
> Silly me.

Not really. That's an example of one R's rough edges. I did the same thing.

Re:Julia is awesome, but.. by grayclhn on Monday December 29, 2014 @11:23AM (#8810372)
Are you sure you're referring to JIT as opposed to byte-compilation?
Re:Julia is awesome, but.. by bachmeier on Monday December 29, 2014 @02:17PM (#8811282)
It is a byte code compiler that has a JIT mode.[1] I'm pretty sure that's what the parent comment was referring to.

[1] See page 7 of the presentation I linked above.

Re:Julia is awesome, but.. by grayclhn on Monday December 29, 2014 @03:10PM (#8811535)
I didn't know about the JIT mode. Thanks for the specific pointer.
Re:Julia is awesome, but.. by tenfingers on Monday December 29, 2014 @11:31AM (#8810419)
I have R 3.1.x and I never noticed (it's in "compiler"). It's off by default... pretty sad.
Re:Julia is awesome, but.. by jghn on Monday December 29, 2014 @02:10PM (#8811233)
It can, but it often doesn't, at least not a year or so ago (perhaps it got much better). I've seen the examples with great speedups but every time I've tried it on real code I never saw anything. You're much better off just using Rcpp for those sorts of cases.