SERVING THE QUANTITATIVE FINANCE COMMUNITY

 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

October 28th, 2015, 3:13 pm

IMO the best way to learn all this new C++ is to use the examples in cppreference.com and program until you are blue in the face. I reckon it takes about [300, 600] manhours to suss all this new stuff out.
Last edited by Cuchulainn on October 27th, 2015, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
ExSan
Posts: 4552
Joined: April 12th, 2003, 10:40 am

C++ 2017

October 28th, 2015, 6:04 pm

QuoteOriginally posted by: CuchulainnIMO the best way to learn all this new C++ is to use the examples in cppreference.com and program until you are blue in the face. I reckon it takes about [300, 600] manhours to suss all this new stuff out.t [300, 600] manhoursI would say much more, if some one really wants to claim to know one of those new stuff, much more !!!
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

October 28th, 2015, 8:42 pm

QuoteOriginally posted by: ExSanQuoteOriginally posted by: CuchulainnIMO the best way to learn all this new C++ is to use the examples in cppreference.com and program until you are blue in the face. I reckon it takes about [300, 600] manhours to suss all this new stuff out.t [300, 600] manhoursI would say much more, if some one really wants to claim to know one of those new stuff, much more !!!Nope! It's the Pareto 20/80. 80% does 20% of the work and vice versa. It's like learning Italian by memorizing the dictionary. Syntax lawyer :DLife is not so fast as you might think, all those production systems running VC++ 6.0.... Many developers don't use templates. To be honest, porting a library like Quantlib to C++11 (and determining which C++11 features to use and why) would be a gargantuan job IMO.There are 10,000 throws in judo, but you need 5 to become Olympic champion.
Last edited by Cuchulainn on October 27th, 2015, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

October 29th, 2015, 7:58 pm

QuoteOriginally posted by: ExSanQuoteOriginally posted by: CuchulainnIMO the best way to learn all this new C++ is to use the examples in cppreference.com and program until you are blue in the face. I reckon it takes about [300, 600] manhours to suss all this new stuff out.t [300, 600] manhoursI would say much more, if some one really wants to claim to know one of those new stuff, much more !!!On the other hand, much of C++11 has been cooking in Boost for many years already. In many cases it just a matter of replacing boost::xyz by std::xyz.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

December 2nd, 2015, 1:46 pm

Anyone know how to is_container()?
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
Polter
Topic Author
Posts: 2526
Joined: April 29th, 2008, 4:55 pm

C++ 2017

December 2nd, 2015, 4:04 pm

Perhaps you can enable_(overload)_if_t(type) is_a range_tag: http://boostorg.github.io/hana/#tutoria ... verloading
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

December 2nd, 2015, 4:35 pm

Even Boost Traits does not have it. Tried this boost::spirit::traits::is_container<T>()); but it complains about std::false_type
Last edited by Cuchulainn on December 1st, 2015, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

December 2nd, 2015, 7:28 pm

Thanks. I saw that earlier on Stackeroverflow but got a rake of errors. I'll have another shot at it.What I want is unary -tt1 + t2t, t1 and t2 can a scalar or a vector type be.C++11 has is_array() and is_compound() but they confuse me. I'm trying to think up maths examples like this
Last edited by Cuchulainn on December 1st, 2015, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

December 2nd, 2015, 8:09 pm

Regarding addition, I made a stupid mistake in the Addition() name and now is OK. It worked for vector but not yet for array:
Last edited by Cuchulainn on December 1st, 2015, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
 
User avatar
Cuchulainn
Posts: 61537
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ 2017

December 3rd, 2015, 12:29 pm

All this stuff is very interesting and applicable to many cases. I even feel it could be used to define concepts/contracts. The supplier/creator of a template class can specify what types are allowed etc.Just a matter of being 'more meta'?// Don't suppose Polter or anyone has a list of applications?
Last edited by Cuchulainn on December 2nd, 2015, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


Twitter LinkedIn Instagram

JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...


GZIP: On