4 ms·
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 data
by Skinney 13y ago
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.
- raphinou 13y agoThe code was trivial, using common libraries for the language. I wanted to show a situation where a c++ web framework was useful.
- Skinney 13y agoI 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.
- raphinou 13y agoWe 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.
- Skinney 13y agoNo we still disagree. A poor library, or poor use of said library, is not a reason to use an entirely diffrent language. It's a reason to use a diffrent library or fix your code.
- codex 13y agoSwitching to C++ solved his problem; if tools don't exist to solve problems, what, indeed, are they for?