Just implement generics already. Sheesh. https://github.com/google/gvisor/blob/master/tools/go_generics/generics.go …
-
-
To be clear, I was talking about compile-speed, not runtime-speed. I'd be perfectly alright with compromising on runtime speed. I think Rust (and before Rust, C++) overly focuses on "zero-cost" abstractions, by accepting rather depressing consequences at compile-time.
-
Also, Swift's implementation is such that a particular generic instantiation can be monomorphized *at the compiler's discretion*, and interoperate with non-specialized code. This seems much much saner (especially if used in combination with PGO).
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.