Re: [Rd] [External] Re: JIT compiler does not compile closures with custom environments

2021-08-18 Thread Duncan Murdoch
On 18/08/2021 10:45 a.m., luke-tier...@uiowa.edu wrote: On Wed, 18 Aug 2021, Duncan Murdoch wrote: On 18/08/2021 9:00 a.m., Taras Zakharko wrote: I have encountered a behavior of R’s JIT compiler that I can’t quite figure out. Consider the following code: f_global <- function(x) {

Re: [Rd] [External] Re: JIT compiler does not compile closures with custom environments

2021-08-18 Thread luke-tierney
On Wed, 18 Aug 2021, Duncan Murdoch wrote: On 18/08/2021 9:00 a.m., Taras Zakharko wrote: I have encountered a behavior of R’s JIT compiler that I can’t quite figure out. Consider the following code: f_global <- function(x) { for(i in 1:1) x <- x + 1 x } f_env <-