On Wednesday, 11 May 2022 at 15:31:02 UTC, Steven Schveighoffer
wrote:
I just spent a couple hours making a library AA solution that
is binary compatible with druntime's builtin AA.
The benefits:
1. Proves that a library implementation is possible, also shows
where shortcomings are.
2. Usable at compile time to make an AA that can be used at
runtime.
3. Much more approachable code than the AA runtime, does not
require "faking" a typeinfo, dealing with typeinfo in general,
or deal with magic compiler hooks. This gives a good base to
start experimenting with.
This is great!
2. Look at alternatives to GC for allocation/deallocation.
Maybe add `@nogc` overloads that take
`std.experimental.allocator`s? That could be the best way to
accomplish this.