photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

242
active users

#rcpp

0 posts0 participants0 posts today

New post: jcarroll.com.au/2025/06/29/cou

What if you could just wave a magic wand over your R #rstats :rstats: code and have it transform into something that ran as fast as or faster than C? @t_kalinowski's {quickr} 'R to Fortran Transpiler' does that for you! #fortran

With bonus comparisons to #Rcpp #julialang :julia: and #rustlang :rust:

Updated to restrict to integers thanks to @toddixd

Irregularly Scheduled ProgrammingCounting Digits Quickly
More from Jonathan Carroll

Don't scold me, I won't use this, I was just testing – I was expecting a crash, but no, it works.

* No, all the threads do not produce the same results, even with a shift: the RNG is not private (this is not like a cluster with parallel !)

* You can see the same number twice in different threads, although not often -- looking at .Random.seed afterwards shows that most of the time, the RNG was updated the same number of times.

* If you set a seed, the result will differs from a call to another, because the threads do not always call the RNG in the same order