Re: [Rd] Performance of .C and .Call functions vs. native R code

From: Alireza Mahani <>
Date: Tue, 19 Jul 2011 12:13:43 -0700 (PDT)

Prof. Bates,

It looks like you read my mind! I am working on writing an R package for high-performance MCMC estimation of a class of Hierarchical Bayesian models most often used in the field of quantitative marketing. This would essentially be a parallelized version of Peter Rossi's bayesm package. While I've made great progress in parallelizing the most mathematically difficult part of the algorithm, namely slice sampling of low-level coefficients, yet I've realized that putting the entire code together while minimizing bugs is a big challenge in C/C++/CUDA environments. I have therefore decided to follow a more logical path of first developing the code logic in R, and then exporting it function by function to compiled code.

The tools that you mentioned seem to be exactly the kind of stuff I need in order to be able to do go through this incremental, test-oriented development process with relatively little pain.

I'm not sure if this is what you had in mind while suggesting the tools to me, so please let me know if I'm misinterpreting your comments, or if I need to be aware of other tools beyond what you mentioned.

Many thanks,

View this message in context:
Sent from the R devel mailing list archive at

______________________________________________ mailing list
Received on Tue 19 Jul 2011 - 19:16:33 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Jul 2011 - 20:40:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive