2 ms·
It's often faster to do as much as you can in a single pass, and language front ends are one of those areas where squeezing every last drop of performance out s
by munificent 10y ago
It's often faster to do as much as you can in a single pass, and language front ends are one of those areas where squeezing every last drop of performance out still really matters.
- Drup 10y agoIt's actually faster to separate things, because you will be able to implement them cleanly. Having a good pipeline such as "text -> AST -> typed AST -> IR -> .... -> ASM/VM code" is very valuable. The costy parts are the middle layer optimization anyway. Typechecking time, for a well written type checker, is not that big.
- Ericson2314 10y agoI think incremental compilation is a far more elegant and efficient way to shorten debug cycles. Also makes IDE stuff easier too.