The [unroll directive from Odin](https://odin-lang.org/docs/overview/#for-loop-unrolling) looks interesting, not sure the benefits for R though.