There been, that done.
http://stackoverflow.com/questions/9968578/speeding-up-julias-poorly-written-r-examples/10712158#10712158
MW
On Tue, Dec 4, 2012 at 2:34 PM, Suzen, Mehmet <msuzen at gmail.com>
wrote:> Hello List,
>
> Probably many of you aware of the Julia language
> (http://julialang.org/), It is a promising project.
>
> However it seems like R is very slow in their benchmarks. Very
> important point they omit, they did not
> use R's own JIT ! I had a feeling that R is mistreaded there :)
> Also another important
> point is that they all use for-loops in R instead of vectorized code!
>
> Any thought on this? Are there any other improvement one can do with
> compiler package other then
> 'cmpfun'?
>
> Best,
> -m
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.