cPP11 migration ?

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

cPP11 migration ?

Postby jarod42 » Mon Nov 04, 2013 10:58 pm

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 ?

Postby Big Daddy » Tue Nov 05, 2013 12:29 pm

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

Re: cPP11 migration ?

Postby jarod42 » Tue Nov 05, 2013 10:59 pm

* 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 ?

Postby Kyran » Wed Nov 06, 2013 11:14 am

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 ?

Postby Big Daddy » Thu Nov 07, 2013 9:31 am

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 ?

Postby cybermind » Fri Nov 08, 2013 1:47 am

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 ?

Postby jarod42 » Fri Nov 08, 2013 9:23 pm

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 ?

Postby Kyran » Sat Nov 09, 2013 10:48 am

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: 259
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

Re: cPP11 migration ?

Postby DinkyDyeAussie » Wed Feb 26, 2014 1:53 am

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 ?

Postby Kyran » Wed Feb 26, 2014 5:16 pm

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

Who is online

Users browsing this forum: No registered users and 2 guests