News for hackers. Stuff that matters.
Re:Cling: An Interactive C++ interpreter by microcolonel on Sunday May 22, 2016 @12:48PM (#11749260)
"May" ought to be translated as "must". Templated C++ is incredibly sluggish without inlining. People are comfortable debugging C programs with more advanced optimizations turned off because performance will still be decent. In C++, the optimizations are the only reason it ever performs reasonably.
Re:Cling: An Interactive C++ interpreter by ccurtsinger on Sunday May 22, 2016 @01:10PM (#11749349)
Not really. Calling a C++ template-generated function is no different than calling a C function. If you have a lot of tiny template-generated functions then sure, it would be slow. But no slower than a C program with a bunch of tiny functions.
Re:Cling: An Interactive C++ interpreter by doomrobo on Sunday May 22, 2016 @04:01PM (#11750025)
Maybe they are thinking of specializing for static dispatch?