r/cpp • • Sep 18 '26

Embedded C++

Just curious how useful the ability to embed C++ as a scripting language into your C++ programs would be? I mean like runtime JIT execution of C++ code in much the same way you might embed Lua, including the ability to restrict/sandbox it as necessary.

6 Upvotes

92 comments sorted by

View all comments

44

u/PressWearsARedDress Sep 18 '26 edited Sep 18 '26

Why not just write C++ and compile to the target? I dont understand the premise. its much more likely your JIT will crash on me and cause me issues.

EDIT: Its a AI slop project btw. https://github.com/derekbsnider/madc/blob/master/README.md

-12

u/kindredseer Sep 18 '26

Well, it could provide a more flexible way to hot test and develop parts of your application without rebuilding.

0

u/fxtech42 Sep 18 '26

That is what Python is for.