Re:Rust – Faster compilation with the parallel front-end in ...
by neonsunset on Friday November 10, 2023 @02:11PM
(#38223131)
Still worse than true monomorphized generics in C# which too has fast compilation times (by nature of being JIT-compiled, but AOT target is still faster than Rust once you download dependencies).
[ Parent
| on HN ]
Re:Rust – Faster compilation with the parallel front-end in ...
by foldr on Saturday November 11, 2023 @11:02AM
(#38231461)
Go’s implementation strategy for generics essentially is monomophirization plus obvious code size optimizations (e.g. don’t generate different code for different pointer types given that they all have the same underlying representation). Do you have specific scenario in mind where Go’s implementation strategy carries a significant performance penalty? I think possibly there are some misconceptions in this thread about how Go’s implementation actually works.