Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Reflecting JSON into C++ Objects (brevzin.github.io)
21 points by ibobev 5 months ago | hide | past | favorite | 5 comments


Exciting. Imagine shipping GCC at runtime and compiling a whole new program from a JSON configuration file, optimized to exactly that configuration.


> 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!


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?


What is the problem? Not being able to audit the code running on the machine?


As opposed to generating C++ code by a Python script reading that json.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: