Post #3407654
2026-06-25 05:52 UTC
@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)
Replies (1)
-
@slava@mathstodon.xyz 2026-06-26 14:16
@SRAZKVT@tech.lgbt @pinskia@hachyderm.io Swift generics are separately compile. They do not require monomorphization, it is an optimization that can be performed when function bodies are visible to the caller (but obviously an important one because you can imagine there is some overhead otherwise)