Type: Posts; User: razzle
Search took 0.01 seconds.
My advice to achieve the same would be to write the whole application in either Java or in native C++ with a Qt GUI.
Important in both cases is that the application is based on the object oriented...
Is it a fact and no BS? Fine then prove your claim.
In my experience the major languages running on virtual machines execute code as fast as any natively compiled language including C++. Any local...
You are confusing matters. There is always a context in the semantics of parameter passing, namely the actual passing. In all your examples value semantics is used. All pointers (parameters) are...
We're dealing with an established terminology used for parameter passing to functions. The basic distinction is between pass by value and pass by reference. Only those. There's is no by pointer, no...
August 16th, 2014, 05:23 AM
No, there are just two parameter passing mechanisms, by value and by reference. (See for example The C++ Programming Language by Stroustrup).
To pass a pointer is not a parameter passing...
August 15th, 2014, 12:43 AM
And there are even more issues with your advice.
2) Avoid using dynamic memory allocation except when it is really necessary.
Use dynamic memory whenever appropriate (design, object lifetime,...
August 14th, 2014, 03:41 AM
You may be inspired by human intelligence but your approach to problem solving is based on the principle of emergence with evolution as the direction force. That's completely general as you say. It's...
August 13th, 2014, 01:40 AM
Say you have a million lines and each line contains a word then the total size will be less than 10 Mbyte (if each word is less than 10 chars on average). That fits easily in memory of most today's...
August 10th, 2014, 07:39 AM
You did mention performance in your original post and I consider it a more important problem than the rather trivial porting issue. And obviously you referred to Mopeks in order to draw attention to...
August 10th, 2014, 01:58 AM
It's probably because LPSTR was expected and that's a pointer to char.
It means you should declare ac_Result as
or more generically
August 8th, 2014, 03:59 PM
Since it's now known that the OP's question is not about any program but specifically about MOPEK and because the OP is referring to this project in every one of his post, I feel it's okay to comment...
August 8th, 2014, 03:05 PM
Why will they be laughing?
Do you mean,
1. they have the same discussion then because the issue still hasn't been resolved, or
2. the issue has been resolved and one side has won?
August 6th, 2014, 03:19 AM
Why not allign your ideas with other ongoing research in the same area. Check out this for example,
August 6th, 2014, 02:21 AM
That's not true. Also NP-hard problems have algorithms that solve them, just not in polynominal time (what hasn't been found yet is a formal proof of this).
My point is that if the OP is trying to...
August 5th, 2014, 02:36 AM
It's not a good idea.
Never use both pointers and smart pointers on an object type. It completely defeats the purpose of using a smart pointer in the first place. In fact it makes object deletion...
August 5th, 2014, 01:09 AM
--- double post by mistake ---
August 4th, 2014, 11:34 AM
Why don't you write it in MOPEKS instead? :)
Just kidding but if it's MOPEKS we're dealing with here than it's most likely a combinatorial problem (I've suspected in my previous posts). In that...
August 3rd, 2014, 01:16 PM
When you start optimizing I strongly suggest you analyze the core algorithm to establish what you're actually dealing with. The use of recursion indicates it's a combinatorial problem. When naively...
August 1st, 2014, 05:32 PM
"If you get yourself into that case"
Well you see, it's not that simple.
In my view you can use the program termination process to your favour.
You think one shouldn't.
That's what we...
August 1st, 2014, 04:29 PM
Program termination is a complex situation.
I've removed my advice.
I think your idea that RAII will handle it perfectly well is naive.
If you want to discuss this further start a new thread.
August 1st, 2014, 02:52 PM
Certainly there is no such thing as an "acceptance of a 10% slowdown" philosophy in C++.
The C++ philosophy is that you only pay for what you get.
The figure 10% comes from the anti-OO camp's...
August 1st, 2014, 09:21 AM
Yes that's your view and I've acknowledged that.
I've also explained why I don't agree but why I still did removed my advice.
So it's back to general information: The system will reclaim any...
August 1st, 2014, 09:10 AM
Or rather the central algorithm is crucial. Why not take this opportunity to have a hard look at it?
Maybe it can be replaced altogether with a more efficient alternative. Or maybe it can be...
August 1st, 2014, 01:56 AM
I've stopped arguing with you since I don't understand your point.
In my last post I just put in my two cents on this proposal you referred to,
August 1st, 2014, 01:43 AM
I'm refering to the Navy of this proposal the OP linked to,
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.