Post

another sweet port from Kyle! A touch of background on the original, for those interested: knaaptime.com/urban_analys...

knaaptime.com33  Spatial Optimization – Urban Analysis & Spatial Science
Kyle Walker@kylewalker.bsky.social

Announcing spopt-r: spatial optimization for regionalization, facility location, and market analysis in R. My all-time favorite Python package is PySAL's spopt - and until now, it did not have an R equivalent. Get started here: walker-data.com/spopt-r

lol i think it's really just the call chain though... afaict the rust HiGHS interface is just a passthrough, and all the algos are *actually* written in C++ (i guess it's easier to bind r to rust, and rust to C++ than make r talk to c?). Feels like rust is almost a cython-like layer here

Eek missed context! It’s actually probably easier to make R -> C because there’s an official C API lol! So technically this would be R -> C -> Rust -> C++ if I’ve got my head all figured out lol!