Great, Simon! How do you feel this compares with the following? https://github.com/blackrock/NamedTuples.jl
One difference is using generated functions versus on-the-fly type creation. Any trade-offs in performance or usability from that? On Mon, Apr 11, 2016 at 8:08 AM, Simon Danisch <[email protected]> wrote: > Here is yet another package: FixedSizeDictionaries.jl > <https://github.com/SimonDanisch/FixedSizeDictionaries.jl> > > From the README: > *Library which implements a FixedSize variant of Dictionaries. These can > be stack allocated and have O(1) indexing performance without boundcheck. > It implements most parts of the Base.Dict interface. * > *This package is useful, when you want anonymous composite types. You > should be a bit careful with generating a lot of FixedSizeDict's, since it > will compile a unique set of functions for every field of a Dict.* > > I'll be using it to speed up various places where I'm currently using a > dictionary but where the number of keys is set at compile time. > Also, Shashi <https://github.com/shashi> and I contemplated to implement > <http://goog_285611601>Extensible Records > <http://elm-lang.org/docs/records>, which seems like a good fit to > represent all kind of graphics/geometry types. > FixedSizeDictionaries could be an integral part of this! > > Best, > Simon > > PS: > I do feel like it's time for a package announcement list... >
