Re: [Rd] Single-threaded aspect

2016-05-12 Thread Dirk Eddelbuettel
On 12 May 2016 at 09:25, Charles Determan wrote: | Thank you Simon for the detailed reply.  That explains much more of what I was | looking for from the R side. | | Dirk, I'm sorry if I seem hung up on anything here but I am trying to | understand the details.  My reply about XPtr or XPtr on arma

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Dirk Eddelbuettel
On 12 May 2016 at 09:18, Dirk Eddelbuettel wrote: | | On 12 May 2016 at 13:11, Mark van der Loo wrote: | | Charles, | | | | 1. Perhaps this question is better directed at the R-help or | | R-pacakge-devel mailinglist. | | | | 2. It basically means that R itself can only evaluate one R expressio

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Charles Determan
Thank you Simon for the detailed reply. That explains much more of what I was looking for from the R side. Dirk, I'm sorry if I seem hung up on anything here but I am trying to understand the details. My reply about XPtr or XPtr on arma/Eigen was to confirm my understanding was correct, which it

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Dirk Eddelbuettel
On 12 May 2016 at 13:11, Mark van der Loo wrote: | Charles, | | 1. Perhaps this question is better directed at the R-help or | R-pacakge-devel mailinglist. | | 2. It basically means that R itself can only evaluate one R expression at | the time. | | The parallel package circumvents this by star

Re: [Rd] Single-threaded aspect

2016-05-12 Thread William Dunlap via R-devel
The R language itself has features that limit how much mulitthreading/parallel processing can be done. There are functions with side effects, such as library(), plot(), runif(), <-, and <<- and there are no mechanisms to isolate them. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, May 12,

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Simon Urbanek
As others said XPtr is not something in R so Rcpp mailing list would be the right place for that aspect. However, it you forget Rcpp and phrase it as an R question, you also get much closer to the reason and answer. SEXP type is the internal representation of all objects in R. I assume your que

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Charles Determan
Thanks for the replies. Regarding the answer by Dirk, I didn't feel like I still understood the reasoning why mclapply or foreach cannot handle XPtr objects. Instead of cluttering the SO question with comments I was getting the impression that this was a limitation inherited with R objects (which

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Mark van der Loo
Charles, 1. Perhaps this question is better directed at the R-help or R-pacakge-devel mailinglist. 2. It basically means that R itself can only evaluate one R expression at the time. The parallel package circumvents this by starting multiple R-sessions and dividing workload. Compiled code calle

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Duncan Murdoch
On 12/05/2016 8:45 AM, Charles Determan wrote: R Developers, Could someone help explain what it means that R is single threaded? I am trying to understand what is actually going on inside R when users want to parallelize code. For example, using mclapply or foreach (with some backend) somehow

[Rd] Single-threaded aspect

2016-05-12 Thread Charles Determan
R Developers, Could someone help explain what it means that R is single threaded? I am trying to understand what is actually going on inside R when users want to parallelize code. For example, using mclapply or foreach (with some backend) somehow allows users to benefit from multiple CPUs. Simi