Le 29/11/12 15:00, Hadley Wickham a écrit :
I'm not sure I'd go quite this far in ragging on the C API.  For someone who
wants to write plain-vanilla C code (without C++) working on vectors and
matrices, it really seems acceptable to me.  If someone doesn't have at
least some basic technical ability, they shouldn't be writing C or C++ code,
anyway.

In my defence, I did also write a chapter on the C API:
https://github.com/hadley/devtools/wiki/c-interface, and I think
arcane is the right word to describe it! There's a lot of historical
baggage in the API, and most things are not named the same way as in R
(eg. real instead of numeric, VECSXP vs LISTSXP, namesgets to _set_
names, ...)

+1

In my view people should want to "write performance code" not "write C code" or "write C++ code", and Rcpp is a very good candidate for this.

I'll look this over, Hadley, once things settle down.  Thanks for your
efforts on this!

You're welcome, and any feedback will be greatly appreciated.

Hadley



--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30

R Graph Gallery: http://gallery.r-enthusiasts.com
`- http://bit.ly/SweN1Z : SuperStorm Sandy

blog:            http://romainfrancois.blog.free.fr
|- http://bit.ly/RE6sYH : OOP with Rcpp modules
`- http://bit.ly/Thw7IK : Rcpp modules more flexible

_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to