Random thought: It sure is nice that we went with typed generics in Rust instead of untyped templates like C++/D/Nim/etc, so that we can even *have* the monomorphization debate at all.
-
-
Are higher ranked types supported in Swift? If not, why not monomorphize everything in release builds?
-
No higher rank types, but we could add them. The Swift compiler doesn’t monomorphize everything in release builds because (1) it can’t because one can ship a generic entity in a compiled shared library, so you don’t have the generic code and concrete types together until runtime
- Još 2 druga odgovora
Novi razgovor -
-
-
I watched a video about this once. Interesting talk, but the presenters seemed a bit odd (and who is the third speaker “Douglas Gregor”? He never came on for some reason)https://m.youtube.com/watch?v=ctS8FzqcRug …
-
He’s kinda like the advisor at the end of the author list of an academic paper...
- Još 1 odgovor
Novi razgovor -
-
-
I had a hard time with this when trying to write a generic graph algorithm for SwiftGraph. I’d would be very useful to have a way to enforce monomorphisation.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.