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

Show parent comment

4

u/CalebGT Sep 22 '26

The idea that there are a large number of devs out there that are only comfortable with C/C++ and no other languages is so very funny to me. Like being surprised to find out an Olympic diver is able to do a cannonball. Like being surprised a surgeon also knows what to take for a cough. Like being surprised a track & field star doesn't need their morning jog on vacation to have hurdles.

2

u/kindredseer Sep 22 '26

I wasn't implying that C/C++ devs only know C/C++ ... just that I would expect they would be more familiar and comfortable writing C/C++ code than Lua scripts.