Elektrine lite

← Feed

@GillesColling@fosstodon.org

Post #3266142

2026-04-07 11:31 UTC

Third use-after-free in a month. Only triggers above 4 million points — never shows up in testing. Rewrite the backend in Rust. The borrow checker catches out-of-bounds errors at COMPILE time that would've been segfaults weeks later. Not warnings — compilation refuses to proceed until the memory access pattern is fixed. Trade-off is real: Rust toolchain plus rextendr adds build complexity that Rcpp doesn't have. Rcpp is still excellent for tight numerical loops with simple data structures. 1/2

Replies (1)

  • @GillesColling@fosstodon.org 2026-04-07 11:31

    But if your segfault frequency is climbing — meaning your data structures have complex ownership where memory gets accessed from multiple places — rextendr eliminates that entire class of bugs before your code ever runs. #rstats 2/2

    Open ##4191618