News for hackers. Stuff that matters.
Re:The Next Step for Generics by mikelward on Tuesday June 16, 2020 @05:21PM (#23544324)
If this follows the monomorphic approach described in Featherweight Go [1][2], they will at least avoid problems caused by type erasure and avoid too much runtime overhead.

1. https://arxiv.org/abs/2005.11710 2. https://news.ycombinator.com/item?id=23368453

Re:The Next Step for Generics by jasonhansel on Tuesday June 16, 2020 @05:31PM (#23544465)
But then you have compile time overhead (an issue Rust and C++ have faced). One of Go's design goals was to have very fast compile times, which might be in doubt if they take the monomorphization approach.
Re:The Next Step for Generics by entha_saava on Wednesday June 17, 2020 @12:15AM (#23547717)
Is rust's slow compile time because of poor LLVM IR generation or just because monomorphization? D has generics and compiles fast. I guess Nim compile times are okay, too..