Re:Show HN: How to write a recursive descent parser
by Drup on Monday March 20, 2017 @01:17PM
(#13915889)
It'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.
The costy parts are the middle layer optimization anyway. Typechecking time, for a well written type checker, is not that big.