Conversation

Mind is getting blown by multi-stage programming! Does anyone know of any simple examples of it being used as a way of doing offline partial evaluation in compilation? Most of the stuff I see is for run-time code generation. 🤔
3
4
I think there is some correspondence, but I don't know. The annoying thing about full spectrum dependent types is that you lose the phase information that is present in traditional languages, so it's hard to compile things like type parameters and constant parameters efficiently.
2
Replying to
Yeah, I think you need to use something other than the 'use count'. I believe McBride was talking about this in his presentation on 'Worldly Type Systems' - it's taken a long time for me to realise that he was talking about multi-stage programming here:
Show replies
Show replies