r/cpp • u/kindredseer • 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.
7
Upvotes
View all comments
Show parent comment
2
u/zerhud Sep 18 '26
The code looks better 99% code we can found in the r/cpp :) i have no pc for now, I’ll take a look on next week: can I use it in my project (I was trying to implement some language, may be visual, for my state machine in last week)
At first glance: it uses std::string and so on. I am using storage with mmap memory, all objects stored in it should not contain row pointers, only relative. So idk can it to be stored in mmaped file