Post #3407655
2026-06-25 05:48 UTC
@pinskia@hachyderm.io last i checked, zig used it with comptime, there was not enough capabilities in the type system to have type safe non monomorphic generic data structures, and the stdlib ones definitely rely on comptime
just checked, yep, still basically monomorphisation
Replies (1)
-
@SRAZKVT@tech.lgbt 2026-06-25 05:52
@pinskia@hachyderm.io as for swift, their generics allow direct use of parameter types, which requires monomorphisation unless your compiler can somehow rewrite it to not require it (but that's hard and not good for a systems lang anyway because it hides what's actually goes on)