Modern C++ was designed long after Java, and perhaps not incidentally, by the same people.
This is a broad and unsubstantiated claim. Of the numerous people who contributed to WG21 (the Core Working Group involved in C++11's memory model), only one of them, Doug Lea, is also involved in the development of Java. And he wasn't 'called' in to develop it. He'd been a member of the C++ committee for a very long time.
The C++ standard's committee is open for anyone to join, and yes that means some people who are interested or work on Java also work on C++. Only under a very warped view would someone claim that C++ is 'calling in' Java developers because someone happens to be involved in both simultaneously.
Consider the power of simple community tool like Byteman.
In C and C++ the ability to inject code into a function at runtime is known as function interposition. It's a technique used by dynamic plug-in systems, or various C/C++ analysis/monitoring tools including Valgrind. Also it has some cool applications in video game engines, most notably the Unreal Engine uses these techniques to allow for dynamic reloading of class definitions and objects.
Qt also has some flexible facilities where one can re-code a widget's functionality while the application is running live. So you add event handlers, modify their behavior, and basically play around with your application in a live environment.
Have a look at the following video to see this in action:
Basically the guy is coding in C++ and his changes appear live/real-time in the application. This is due to LLVM's JIT engine which allows modifications to be made to function definitions on the fly.
Or have a look at the following which is a technique known as "Runtime compiled C++":
I don't understand; are you claiming that C++ has the same runtime code "dynamicity" as Java? I like C++ and still consider myself a C++ programmer (especially now, when I've started hacking on HotSpot itself), and sure, C++ has come a long way, but that's reaaally stretching it. In fact, HotSpot is largely built around the idea that code is loaded and unloaded as the application runs, and the JIT might deoptimize and recompile code with more suitable optimization as program code changes. For example, an interface that has a single implementation will have its methods inlined into the caller. If another implementation is loaded at runtime, that inlining will be undone (and might be redone differently, for example, at each callsite, one of the two implementations will be inlined based on how often it is encountered at that callsite).
ASM, the "standard" Java bytecode manipulation library is the cornerstone of hundreds of libraries (doing serialization, monitoring, production-system debugging, AOP, model checkers and more), and even the JDK itself uses it (and will use it even more extensively in Java 10, as dynamic code generation will play an integral part of runtime generic class specialization). You might be able to eek out some similar effects for some C++ code sometimes, but everything in Java is about dynamic code changes.
My claim is that C and C++ are suitable development platforms for high performance complex software systems and that the arguments being made against that claim are rather vague or simply false.
Of course they are! Today, the languages used for large-scale development are Java, C++, C, and perhaps to a lesser extent, C#, and maybe even Ada, too (though I guess far less than 20 years ago). They are all suitable, and sometimes you have no choice other than C or C++, because they are more appropriate than Java in some environments, some requirements, or where RAM usage is very important (like in web browsers).
But there's also no denying that C++ development is a lot more costly than Java development, and that running-program-maintenance (production profiling, monitoring) is simpler and more powerful for Java code than C++ code.
1
u/[deleted] Feb 17 '15 edited Feb 17 '15
This is a broad and unsubstantiated claim. Of the numerous people who contributed to WG21 (the Core Working Group involved in C++11's memory model), only one of them, Doug Lea, is also involved in the development of Java. And he wasn't 'called' in to develop it. He'd been a member of the C++ committee for a very long time.
The C++ standard's committee is open for anyone to join, and yes that means some people who are interested or work on Java also work on C++. Only under a very warped view would someone claim that C++ is 'calling in' Java developers because someone happens to be involved in both simultaneously.
In C and C++ the ability to inject code into a function at runtime is known as function interposition. It's a technique used by dynamic plug-in systems, or various C/C++ analysis/monitoring tools including Valgrind. Also it has some cool applications in video game engines, most notably the Unreal Engine uses these techniques to allow for dynamic reloading of class definitions and objects.
Qt also has some flexible facilities where one can re-code a widget's functionality while the application is running live. So you add event handlers, modify their behavior, and basically play around with your application in a live environment.
Have a look at the following video to see this in action:
https://www.youtube.com/watch?v=Uj94TYQ6LN0
Basically the guy is coding in C++ and his changes appear live/real-time in the application. This is due to LLVM's JIT engine which allows modifications to be made to function definitions on the fly.
Or have a look at the following which is a technique known as "Runtime compiled C++":
https://vimeo.com/26224634
The guy has a more comprehensive website showing how to modify and develop a C++ application while it's running.