Hacker News new | ask | show | jobs
by pletnes 2335 days ago
The matrix algebra and array manipulation is written in C++. The statistical analysis is done in R, potentially using multiple different matrix algebra routines. For example.

I have no idea why you would not use R (or python) «at the top», though. R might not have great libraries for network protocols (REST, etc), as it’s not a general language, but more stats oriented.

2 comments

> R might not have great libraries for network protocols (REST, etc), as it’s not a general language

No idea how it compares to D, but REST in R is pretty straightforward through the httr library. And in general the "general purpose" aspect of the language is pretty good.

If you're doing a simulation, for instance, and you're missing a piece of functionality available in R, you can bring in just that piece. D's a nice language, and if you decide you want to use it, it's great to know that every line of R code you've ever written and every R library you've ever called is still available.