I’m working on what may turn into a package.
Conceptually it’s fairly simple. It has a one type
StaticRange and a convenient interface through
srange (which is meant to act like
range from base). I shamelessly copied code from base julia to make it work. My current benchmarks (which litter the README page) show it may be a good alternative if you need to use the same set of indices many times.
Because this was more of a byproduct of something else I’m working on I don’t have a clear vision of the best way to handle it (package it, contribute to StaticArrays, leave it for my posterity to marvel at, etc.), but after benchmarking this morning I thought some people might benefit from it. I imagine there could be problems with ambiguities due to every field of ranges being part of the type’s parameterization, so it may serve as nothing more than an interesting idea.