The cost of compiling at -O3 is going to affect interactive use of course though.
What part of "interpreted" did you not understand?
I don‘t understand your comment, do you care to enlighten me?
Python is an interpreted language.
Yes, dynamic recompiling, JIT-ing, etc etc.
But you used a interpreter (for C++) with some expectation it would be faster than a language that is itself interpreted? I mean, I guess you could assume that the stronger typing of C++ would provide an advantage over Python...
But if you hear "interpreted", you should assume 10x slowdown at minimum, unless there has been human-centuries invested in performance improvement like the JVM.
This is because D has one of the fastest compilers. You can use rdmd as the REPL and also invoking the compiler for scripting [1].
[1]Why I use the D programming language for scripting: