▲ | pizlonator 3 days ago | |
Gotcha. For some reason I was under the impression that getting perf from gradual typing had been a goal of y'all's. > primary interest in building the type system is in supporting a better developer experience Yeah this is the right reason to do it :-) > there's definitely some interest in how we could leverage types to support more optimized code, but it's been a notoriously difficult problem for gradually-typed languages in general I know. I still get folks asking why TypeScript types can't be used to make JS fast and it's quite exhausting to explain this. Hard to imagine gradual types beating what you get from the combo of PICs, speculative JITing, and static analysis. (I worked on JavaScriptCore's optimizer, hence why I'm curious about where y'all are coming from on this) |