cPP11 migration ?

User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

cPP11 migration ?

Post by jarod42 »

Is migrating code to C++11 arise problem to someone ?

I don't think it will happen soon, but I would have an idea of possible objection.
User avatar
Big Daddy
Posts: 118
Joined: Sun Jan 08, 2012 11:23 pm

Re: cPP11 migration ?

Post by Big Daddy »

cost benefit analysis?
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

Re: cPP11 migration ?

Post by jarod42 »

* Benefit: mostly readability of the code:
- use `auto` instead of std::vector<MyType *>::iterator.
- use `for (auto unit : Units)` instead of a long C++98 way equivalent...
we may have some performance gain, but I don't expect significant changes from that.

* cost: clang has a tool to migrate C++98 into C++11.
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: cPP11 migration ?

Post by Kyran »

Cost: We'll be letting the 90s die.

Image
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
User avatar
Big Daddy
Posts: 118
Joined: Sun Jan 08, 2012 11:23 pm

Re: cPP11 migration ?

Post by Big Daddy »

I would love to bang Elaine.

Image

Also, migration to the new standard seems to only make sense.
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: cPP11 migration ?

Post by cybermind »

My opinion is that migration to SDL 2.0 will make more profit to engine than c++11
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

Re: cPP11 migration ?

Post by jarod42 »

It seems harder/longer to migrate to SDL2 than to c++11.

And both could be done.
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: cPP11 migration ?

Post by Kyran »

So it is feasible to do c++11 and SDL2, but not to do Elaine.
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

Re: cPP11 migration ?

Post by DinkyDyeAussie »

Sinfeld needs to die...F*@#$# hate that show. He's not even funny.

Moving on. C++11 would be good. We need a clean start on this engine and if there's proper commenting - I'm talking every single freakin variable commented here so new poeple can come aboard and contribute new code, and also variable named appropriatly, i.e. instead of:

Code: Select all

int i;
we can have

Code: Select all

int ImageSliderButton    // the button that manipulates the slider to change the value of the slider
stuff like that...Really damn neat and well commented, with class functions and all that...I may not know much, but confusing code is annoying.
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: cPP11 migration ?

Post by Kyran »

DinkyDyeAussie wrote:Sinfeld needs to die...F*@#$# hate that show. He's not even funny.
All proposals containing disrespect to Seinfeld will be rejected out of hand.
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
Post Reply