|
|
|
|
|
by zak_mc_kracken
4106 days ago
|
|
OCaml and Haskell offer very similar functionalities and their compilation times are lightning fast. The main reason why Scala is slow is because the compiler is poorly written. Take a look at the articles from Paul Phillips, one of the Typesafe cofounders who left the company in frustration, he's probably the person who knows scalac the best and he says the code base is basically hopeless. Note that 1/3rd of Martin's presentation is about Dotty, and that's basically where he spends most of his time these days, he hardly contributes to Scala any more [1]. [1] https://twitter.com/odersky/status/574665768484339713 |
|
[edit: the bug is not in the scala compiler, the bug is in my code - I almost certainly did not want `f` to have type `Int => Any`. My phrasing, now edited, was misleading. ]