3 ms·
I used to be able to kill Scala compiler performance with just a a few identifiers. Well, Scala is trying to deal with nominal subtyping, which is well known to
by seanmcdirmid 12y ago
I used to be able to kill Scala compiler performance with just a a few identifiers. Well, Scala is trying to deal with nominal subtyping, which is well known to be quite hard (so the type inference algorithm isn't really H-M, and must rely on heuristics).
- virtualwhys 12y ago> I used to be able to kill Scala compiler performance with just a a few identifiers Interesting, got an example? Also, what version of Scala were you on?
- seanmcdirmid 12y agoThis was in 2006/7 when I was working on scalac, so the early 2.1/2.2 days. I seemed to often push the type system in places that were not well defined, mostly because my scala style was so different (very OO, but with heavy recursive use of type parameters). Unfortunately, I've forgotten what the cases were, but they were usually simple constructions.
- virtualwhys 12y agoheh, ok, the stone ages of Scala ;-) Current Scala (2.11) has many issues to be ironed out, but I'd be surprised if the topic at hand here were one of them.
- deleted 12y ago[deleted]