How do you estimate the potential gain of the rare case of a software rewrite that makes sense? You want to differentiate between the two outcomes: - "this is one the best pieces of work I've ever done" - "we tried our best; I wished we knew better from the start"
I think the comparison is a bit misleading, though... even if the input provided to Scala is the same complexity as Java, the fact that Scala *can* accept more complex input put a dynamic requirement (ie more work) on Scalac which Javac doesn't have.
-
-
As an extreme example, consider a trivial compiler which only accepts one single possible Java program as input. It could "compile" it near-instantaneously, and Javac would never be able to match it.
-
But I really like the experimentation you're doing. It does at least feel like there is a lot of scope to improve compiler performance in scalac/dotc!
End of conversation
New conversation -
-
-
The comparison is to establish the performance gap relative to the difficulty of the task. The next question is how hard would it be to structure the compiler to scale up and down with the difficulty of an input. My hunch is that it's actually not that hard.
-
My hunch is less optimistic, I think. ;)
- Show replies
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.