Re:Multi-Stage Programming with Splice Variables
by naasking on Saturday June 28, 2025 @11:30AM
(#44405393)
Typically, multistage languages permit program generation at any stage, including runtime. So that would be different than C++.
[ Parent
| on HN ]
Re:Multi-Stage Programming with Splice Variables
by gsliepen on Wednesday July 02, 2025 @06:37AM
(#44442057)
You can get pretty far in C++ though: https://codereview.stackexchange.com/questions/259045/poor-m...
Re:Multi-Stage Programming with Splice Variables
by naasking on Wednesday July 02, 2025 @11:18AM
(#44444798)
This looks like a reinvention of the final, tagless interpreter, which has been a great, common technique in functional languages for awhile:
https://okmij.org/ftp/tagless-final/index.html#tagless-final
It's an interpreter though, not a JIT. This kind of programming language thing is a bit of a hobby horse of mine, so see the comment I just posted on this for full details:
https://codereview.stackexchange.com/questions/259045/poor-m...