Reply to post: Re: Crippled C++

Java? Nah, I do JavaScript, man. Wise up, hipster, to the money

Kevin McMurtrie Silver badge

Re: Crippled C++

Java exists because it has safer memory handling. Desktop app developers can laugh this one off, but C++ memory management is really hard on multi-threaded servers. In Java, a hundred threads can continuously grab references to a shared cached object, a dozen of those threads can throw random exceptions due to GIGO, several threads can stall because somebody is on dialup, and at the same time the cache can be updated without ever a single memory leak or pointer bug. C++ can do that too but it requires a tedious level of manual effort and testing.

It's a double-edged sword. Java can't bulk-allocate structures so it's a mess for image and signal processing where there may be 100 million complex data points.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon