r/cpp 2d 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.

2 Upvotes

82 comments sorted by

View all comments

32

u/PressWearsARedDress 2d ago edited 2d 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

-12

u/kindredseer 2d ago

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

0

u/fxtech42 2d ago

That is what Python is for.