Re:Wt, C++ Web Toolkit
by Skinney on Saturday July 06, 2013 @06:08AM
(#5998481)
If you run out of memory you're just not doing it right. C++ uses less memory than Java, this is true. But if using the same algorithm in C++ with a larger database, generating a bigger PDF perhaps, you will still fail. Could also be that just increasing the managed heap will help, but I guess this is a case about keeping to much in memory.
[ Parent
| on HN ]
Switching to C++ solved his problem; if tools don't exist to solve problems, what, indeed, are they for?
The code was trivial, using common libraries for the language. I wanted to show a situation where a c++ web framework was useful.
I understand the intent. However, out of memory exceptions usually mean wrongful use of libraries, or poor quality of said libraries. It doesn't make C++ more or less usefull than Java for a particular task, as the exact same code in C++ would lead to the same result, altough it would take longer for C++ to get there.
We agree. The fact is that the java libs blew, and not the cpp libs. Making the decision to develop the solution in cpp the right one, contradicting the top comment of this thread.