by 1718627440 · 1w ago · 0 comments
Note that most compile-time partial evaluation options are automatically included under -O3 switch.
Some of the techniques were interesting specifically profile guided and aggressive cloning based on hot paths.
Regarding libgccjit you are essentially right; basically you construct the IR for the active path with the runtime values as constants and then compile it in memory to get a pointer to the function. In that sense JIT is partial evaluation done at runtime.
You're longer explanation makes it even more confusing to me. Like I understand the words, but I fail to see the meaning that you want to convey to me. You are giving me "mongoDB is web-scale"-vibes.
To the last point are you saying that the programmer could essentially implement partial evaluation himself using libgccjit?
Honestly you could be saying interesting things, but I fail to get rid of the impression that I am just talking to a human proxy for an AI.