1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

More Open-Source Projects Eyeing Up C++11

KDE

Published on 26 November 2012 08:46 PM EST
Written by Michael Larabel in KDE
Comment On This Article

KDE developers are currently contemplating the idea of allowing a subset of the C++11 language to be used within the KDevelop code-base. This C++11 change would happen for the KDevelop 4.6 integrated development environment release. Reasons are shared in this article for why one should consider using C++11 code.

Milian Wolff, a developer on the KDevelop IDE, has proposed to their development community that a subset of the C++11 language be permitted following the KDevelop 4.5 branching in a few weeks.

While KDevelop is a promising open-source IDE for developers, this C++11 change is being mentioned since there's likely many Phoronix readers curious about the reasoning behind this proposal. The reasons were shared and include C++11 being "quite a lot of fun" to develop, which is actually the main reason for this proposal.

There are also technical reasons behind this proposal: C++11 can offer potential performance benefits by using constantexpr, noexpect, r- value references, and other new language features.

C++11 code is also potentially easier to read thanks to auto, lambdas, alias templates, defaulted functions, and other features that can improve the maintianability of the code-base. There's also improved compiler analysis with features like static assert, override, final, nullptr, explicit conversion operators, deleted functions, etc. An overview of C++11 changes can be found via Wikipedia.

For those curious about the C++11 language support state in different compilers, it's nicely documented on the Apache.org Wiki. The C++11 compiler support basically comes down to LLVM/Clang 3.1 and GCC 4.7 (there is also greater C++11 support in GCC 4.8) as the primary base targets.

There are some potential issues with a migration to C++11 code though due to some Linux distributions sticking to older compiler releases, the varying compiler state in BSD, potential problems with Microsoft MSVC on Windows, and the back-porting of KDevelop changes to older releases.

In terms of KDevelop handling C++11 code through the IDE itself, there's been basic C++11 support dating back to KDevelop 4.3.

Qt 5.0 is taking advantage of C++11 too, but there it's being handled in a backwards compatible manner so the code will still build as C++03 on older compilers. There is also more Qt C++11 developer information shared via slides from the recent Qt Developer Days event. KDE Frameworks 5 may also use C++11.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Preview: AMD's FX-9590 Eight-Core At Up To 5.0GHz On Linux
  2. Intel Launches The Core i7 5960X, Mighty Powerful Haswell-E CPUs
  3. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
  4. AMD Radeon R9 290 Open-Source Driver Works, But Has A Ways To Go
Latest Linux Articles
  1. How Intel Graphics On Linux Compare To Open-Source AMD/NVIDIA Drivers
  2. The Fastest NVIDIA GPUs For Open-Source Nouveau With Steam Linux Gaming
  3. Testing For The Latest Linux Kernel Power Regression
  4. The Most Energy Efficient Radeon GPU For AMD Linux Gaming
Latest Linux News
  1. Nouveau X.Org Driver Released With DRI3+Present, Maxwell, GLAMOR
  2. Microsoft & AMD Release C++ AMP Compiler With Linux Support
  3. AMD, Wine & Valve Dominated August For Linux Users
  4. Linux 3.17-rc3 Kernel Released Back On Schedule
  5. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  6. Mesa 10.3 RC2 Arrives Via Its New Release Manager
  7. Ubuntu 14.10's Lack Of X.Org Server 1.16 Gets Blamed On AMD
  8. MSI Motherboard BIOS Updating Remains A Pain For Linux Users
  9. See How Your Linux System Performs Against The Latest Intel/AMD CPUs
  10. AMD Steppe Eagle Flys To Coreboot
Latest Forum Discussions
  1. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  2. The dangers of Linux kernel development
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. AMD Releases UVD Video Decode Support For R600 GPUs
  5. SSD seems slow
  6. Is laptop with Intel CPU and AMD dGPU worth buying considering especially AMD Enduro?
  7. Radeon HD5670 and Ubuntu 14.04
  8. Btrfs Gets Talked Up, Googler Encourages You To Try Btrfs