by ovaistariq on 4/15/23, 12:28 PM with 6 comments
by ttymck on 4/15/23, 5:15 PM
The compiler and code-generation implementation seems equally straightforward and complex, my mind is racing trying to build a mental model of the whole thing.
The code generation comes after a feature-packed parser and "compilation" step. Emitting go source code is nice because subsequent compilation tells you if its valid or not.
I'm wondering if there is a specific reason the "framework" source code is emitted via a series of printf calls[0]. A library of go template "fragments" might be easier to manage (and debug).
[0] https://github.com/adhocteam/pushup/blob/0519a782c1c9fc79877...
by dr_faustus on 4/17/23, 6:13 AM
by nicpottier on 4/15/23, 5:42 PM
by godisdad on 4/15/23, 4:01 PM
by cseleborg on 4/15/23, 10:10 PM