Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Not an entirely uncommon idea. I've written one.
There's also a well-known one here, in klib: https://github.com/attractivechaos/klib/blob/master/kvec.h
I like that the comments mention another two implementations of a similar idea and all are a bit different.
Here's one I've written a few years ago: https://github.com/kiryk/mlisp/blob/master/vector.c
awesome! i do the same thing for arrays[1] and maps[2].
stuff like this is great when you are trying to find performance ceiling of some workload. literally nothing to hide.
1. https://github.com/nathants/bsv/blob/master/util/array.h
2. https://github.com/nathants/bsv/blob/master/util/map.h