mikefc (@coolbutuseless) header
mikefc (@coolbutuseless) profile picture

R. Graphics. Code. he/him.

Joined May 2009
Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)Photo by mikefc (@coolbutuseless)
I'm really excited for the plot manipulation possibilities excalidraw opens up in #RStats ! Fantastic work by @baptnz ! nitter.gq/baptnz/status/13423417…
2
4
Current self-inflicted 'advent-of-code': Writing an "unpack_void_ptr()" in C for interfacing #RStats with C code.
1
6
Naming things: If 'ptr' is an abbreviation for 'pointer', what's a good abbreviation or shorter alternate name for 'scalar'? #RStats #C
4
1
1
Current idea: a "storage only" container for 64bit and 128bit integers in #RStats similar to 'bit64' integer64 values, but not for maximum C compatibility rather than R calculations... #RStats
1
1
4
Motivating example: A C function I need to call from R wants a 64bit unsigned integer as an argument. How do I construct that from the R side with the least user-friction possible? #RStats
3
1
1
{zstdlite} updated with latest zstd v.1.4.7 Fast, configurable in-memory compression of R objects with zstd. * Configurable speed/compression tradeoffs * Fast decoding github.com/coolbutuseless/zs… github.com/fa cebook/zstd/releases/tag/v1.4.7 #RStats
1
10
2 things I keep learning the hard way: (1) Never get involved in a land war in asia (2) Never try and add a finalizer to free memory that you don't own in C #RStats
1
3
Hello segfault, my old friend.... #RStats and C go together like chalk and cheese...
1
6
#RStats experiment - directly interfacing with standard C library from R This is actually calling the C library functions for 'fopen()' etc. Not sure where this is going. Just pushing the boundaries to see what happens...
1
2
15
#RStats give mind: does anyone recall the recent work someone was doing with raw C data types in R? It might have been using {vctrs}. #HelpMeObiWan
1
2
1
I declare that calling variadic functions in C is impossible in #RStats #RStats #NerdSnipingAttempt
#RStats gurus: Does anyone know how to call a variadic C function from R? e.g. printf() I believe #Rcpp can do something with templates, but I'm really looking for a C solution.
1
1
5
#RStats gurus: Does anyone know how to call a variadic C function from R? e.g. printf() I believe #Rcpp can do something with templates, but I'm really looking for a C solution.
2
2
1
4
I'm currently entertaining the idea of multiple C functions (all callable from R) and each one is a specific pattern of arguments to call into the variadic function with. Definitely not scalable - but would work if I put a lot of work in... #RStats
1
1
2
Google tells me there was a metal band called Emphatic who are now the current front-runners for the {emphatic} hex logo design.... #RStats
1
3
{flexo} update v0.2.1 - bug fixes! Also added a more complicated vignette showing the beginnings of a recursive descent parser for PBRT 3d scene description format github.com/coolbutuseless/fl… coolbutuseless.github.io/pac… #RStats @tylermorganwall
#Rstats people - has someone done a survey recently (last year or so) on other programming languages that #RStats people use? I recall something from earlier this year, but can't find it.
2
1
2
Introducing {flexo} - simple lex/parse tools in #RStats I wrote {flexo} as I often need to parse structured text where no parser yet exists. {flexo} is rough but helps me prototype quickly github.com/coolbutuseless/fl… coolbutuseless.github.io/pac… Note: {flexo} replaces {minilexer}
5
10
1
65
A signifier that {flexo} may be useful to you is if you have an explosion of fragile regexes in a spaghetti of ad-hoc conditional rules #RStats
1
4
$Milion #RStats Idea(*): I wonder if you could automatically translate a limited subset of C-to-R or vice-versa e.g. @kcf_jackson has an R-to-JS package in which he rewriting the AST github.com/kcf-jackson/sketc… #RStats 1/2 (*) Not a $million idea
1
1
6
And then automatically compile and inline the code (with {inline}). And a heavy sprinkling of magic and get a work-a-like to "Cython" i.e. fast C implementation but only using knowledge of R cran.r-project.org/package=i… #RStats 2/2
2
1
3
Current self-inflicted advent of code: Using regex to check some user supplied regexes. #RStats
2
1
7
Current package stack: 1. {Minilexer} new lex/parse features needed for 2. {Roxy} doc format translator needed for 3. {Cheddite} C header utilities needed for 4. {Sdlcore} SDL interface for #RStats needed for 5. {WorldDomination} #RStats
1
1
8
My #RStats tombstone: "Just need to write a quick package. Should only take a couple of hours ...."
1
1
14