Reflecting JSON into C++ Objects

17 ibobev 3 6/26/2025, 12:59:44 PM brevzin.github.io ↗

Comments (3)

squirrellous · 4h ago
Exciting. Imagine shipping GCC at runtime and compiling a whole new program from a JSON configuration file, optimized to exactly that configuration.
dwrodri · 3h ago
> Imagine shipping GCC at runtime

The security engineer in me had a facial twitch, but for the right usecases this would be indeed be interesting!

vardump · 48m ago
That’s like having extra configuration dependent ASLR on top!

If carefully implemented the compiler and linker could omit code that the configuration didn’t require. Wouldn’t less code mean better security and performance?