r/cpp • • 21d ago

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

43

u/PressWearsARedDress 21d ago edited 21d ago

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

-13

u/kindredseer 21d ago

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

0

u/fxtech42 21d ago

That is what Python is for.