News for hackers. Stuff that matters.
Re:When zero cost abstractions aren't zero cost by still_grokking on Tuesday August 10, 2021 @10:09AM (#28129063)
What would be the alternative?

Not specializing at all would make your code awful slow (as you would need some quite complicated and costly treatment of generics at runtime).

"Specializing by hand" is not realistically doable besides toy programs.

And not having generics in the language at all will result in "solutions" like in Go…

I see no way around (semi-)automatic specialization done by the compiler.

There are no comments on this comment yet.