Re: [Cppcms-users] Proposal to release CppCMS 2.0 and migrate to C++11
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-10-29 17:34:21
|
On Fri, Oct 28, 2016 at 1:10 AM, <ano...@op...> wrote: > Hi Artyom, > > I read your position about migration to C++11 > > https://sourceforge.net/p/cppcms/mailman/message/35292236/ > > BTW, I have proposal to preparing release CppCMS 2.0 with breaking API. If you read this message why do you ask? How do you address my concerns? > > > 2. We can drop some booster classes, and using pure STL and new language features. For example, migrate to std::thread, smart-pointers, etc. It wouldn't work standard library does not have 1/4 of what I need or provides inconsistent functionality - even in basic threading library - have you notices for example shared lock and recursive shared lock ;-)... It is there for purposes. > > 3. We can clean-up code, make it more robust, cleaner and faster (rvo, constexpr, lambdas, syntax sugar). > Not it wouldn't but in some special cases. Only stuff that really may give some performance gain in C++11 is move constructor the rest does not relay to performance. > 4. We can completely drop old and deprecated stuff. > > 5. We can continue support 1.x for those who need C++0x. > > [*we - you and community] > This is exactly the core issue - we... it isn't we it is me... so far there is virtually 0 contributions by the community I have received only from very few users there. > > Of course, it will little bit harder because of needing to backport bugfixes and some features into 1.x. > > If you don't want do it, then please answer - how many years you want to wait before CppCMS will migrate to C++11? > As I explained I do want to support C++11 but without dropping C++03 support. For example booster::callback and booster::function is 100% compatible with C++11 lambdas. Also what is "needed" is probably adding move constructor but not much. Bottom line - in most of the cases I write using CppCMS I do write in C++11... To be honest I have much urgent stuff to do with CppCMS rather than waste the time on code migration. http://cppcms.com/wikipp/en/page/cppcms_1x_tasks Artyom |