Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JIT of R code using Ra

Tags:

r

jit

I just discovered Ra from Ubuntu repositories. Has anyone used it in actual projects? Have you encountered any problems and are there any trade offs with using Ra instead of R or JIT in general?

like image 734
Matti Pastell Avatar asked Jul 16 '10 13:07

Matti Pastell


People also ask

Does R use JIT?

R also supports Just-in-time (JIT) compilation. When JIT compilation is enabled, R will automatically byte code compile any code that is executed without explicitly having called one of the compile functions. To activate JIT compilation, use the enableJIT() function.

What is jit in R?

Torch. Using the torch just-in-time (JIT) compiler, it is possible to query a model trained in R from a different language, provided that language can make use of the low-level libtorch library.

What is a JIT code?

In computing, just-in-time (JIT) compilation (also dynamic translation or run-time compilations) is a way of executing computer code that involves compilation during execution of a program (at run time) rather than before execution.

Is there a compiler for R?

Introduction. R compiler, write R codes on your device. You can easily execute basic statistical analysis in mobile itself. This is ideal for learning and testing code snippets.


2 Answers

Well, I like it. But then it is in Ubuntu ... because I created the Debian package in the first place. And I feature Ra and jit in my 'Intro to High-Performance Computing with R' tutorials (next one on Tuesday at useR! 2010).

But sadly, Steven never got the feedback he anticipated and has stopped updating Ra. The most recent version is R 2.9.*, i.e. from a year ago. This would be worth keeping alive, but a few more people (with highly specialized knowledge) would need to appear on the scene to help...

like image 119
Dirk Eddelbuettel Avatar answered Oct 04 '22 22:10

Dirk Eddelbuettel


Since this question was asked the {compiler} R package was introduced. I wrote a post describing what I have found this far regarding the use of JIT and R:

http://www.r-statistics.com/2012/04/speed-up-your-r-code-using-a-just-in-time-jit-compiler/

The post describes some advances since what Dirk wrote in his reply (several of the links in the post are actually to Dirk's newer articles regarding this topic)

I hope this help future R people searching on this topic.

like image 43
Tal Galili Avatar answered Oct 04 '22 21:10

Tal Galili