Re: [R] Compiling R code to native code?

2012-01-28 Thread Ben Bolker
Jeff Newmiller dcn.davis.ca.us> writes: > Nope. Most users get speed by using vectorized calculations. If you > have already identified how to get correct answers, the next step is > something like Rcpp or linking to a shared library written in your > language of choice. > But seriously, vecto

Re: [R] Compiling R code to native code?

2012-01-28 Thread Bert Gunter
Facts: 1. R does not by default compile bytecode. It uses a read-parse-eval cycle as described in the R Language Manual. 2. However, as of 2.14.0 (anyway) there is a "compiler" package that is shipped as part of the standard distribution. Written by Luke Tierney and his graduate student minions,

Re: [R] Compiling R code to native code?

2012-01-28 Thread Jeff Newmiller
Nope. Most users get speed by using vectorized calculations. If you have already identified how to get correct answers, the next step is something like Rcpp or linking to a shared library written in your language of choice. But seriously, vectorizing is enough for most applications, and making s

[R] Compiling R code to native code?

2012-01-28 Thread Gregory Propf
Simple question: is there a way to compile R scripts to native code?  If not is there anything else that might improve speed?  I'm not even sure that R compiles internally to byte code or not.  I assume it does since all modern languages seem to do this.  Maybe there's a JIT compiler?  Yes, I ha