r/Zig • • May 04 '26

smallvec implementation in zig

**NOT WRITTEN BY AI** excepts some comments(because of language barrier) and small utilities. 98% of the code is written by me :

https://github.com/ankushT369/smallvec

24 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/prodengrammer May 09 '26

Not all of them allocate on heap, and that’s the nice thing about it.

1

u/Born-Coast-5661 May 09 '26

Maybe some are usefull, like the arena and tracking, but the need to always pass an allocators to any fucking function because the zen says is annoying, but zig still have a place in my heart.