5 ms·
You might be interested to know Scala's new compiler dotty takes the phase approach - there are 40-50 phases and logic for fusing phases together to work in one
by bonobo3000 11y ago
You might be interested to know Scala's new compiler dotty takes the phase approach - there are 40-50 phases and logic for fusing phases together to work in one traversal.
Check it out - a list of all the phases in the source! https://github.com/lampepfl/dotty/blob/master/src/dotty/tools/dotc/Compiler.scala#L38 https://github.com/lampepfl/dotty/blob/master/src/dotty/tool...
- vidarh 11y agoYikes... The sheer size of the transformation code for that compiler terrifies me. I think that's a good demonstration of the type of compiler I would not want to be forced to have to work on.