LLVM's Libc++ Now Has C++1Y Standard Library Support
An anonymous reader writes "LLVM's libc++ standard library (an alternative to GNU libstdc++) now has full support for C++1y, which is expected to become C++14 next year. Code merged this week implements the full C++1y standard library, with support for new language features in the Clang compiler frontend nearly complete."
GCC has some support for the soon-to-be standard too. The C++ standards committee is expected to produce a more or less final draft in just a few weeks. The LLVM and GCC C++14 status pages both have links to the proposals for the new features.
Now that Clang/LLVM has got this finished, I'm wondering what a system would look like with:
* Linux as the kernel
* Clang/LLVM as the system C/C++ compiler
* Heirloom Toolchest as the basic userland toolchain
* Wayland as the underlying display system
* musl as the system C library
That would be Linux, but would contain almost no GNU code. Not that I have anything against GNU, but the Heirloom Toolchest, Clang, and musl are all more standards compliant, smaller, and often faster than their GNU counterparts. I wonder what a Linux distribution like that would look like. I'd use it.
(I hate how "GNU's Not Unix!" is really becoming more and more true. Unix was about minimalism, and sometimes GNU seems like it's about stuffing everything possible into every tool.)
...but it's being eaten...by some...Linux or something...
Now that Clang/LLVM has got this finished, I'm wondering what a system would look like with:
... * Clang/LLVM as the system C/C++ compiler
Slower
I've tried to make an argument with the development studio where I work that we should be looking at C++11 for future projects, but the technical director and producer won't hear of it.
"It's not universally supported yet", being their biggest objection. Most significantly, MSVC's latest roadmap doesn't show full C++11 compliance before 2015, and the custom compilers used for some hardware platforms (particularly certain game consoles) don't even have a hint of C++11 support for current platforms on their horizon.
Now that Clang/LLVM has got this finished, I'm wondering what a system would look like with:
* Linux as the kernel
* Clang/LLVM as the system C/C++ compiler
* Heirloom Toolchest as the basic userland toolchain
* Wayland as the underlying display system
* musl as the system C library
That would be Linux, but would contain almost no GNU code. Not that I have anything against GNU, but the Heirloom Toolchest, Clang, and musl are all more standards compliant, smaller, and often faster than their GNU counterparts. I wonder what a Linux distribution like that would look like. I'd use it.
(I hate how "GNU's Not Unix!" is really becoming more and more true. Unix was about minimalism, and sometimes GNU seems like it's about stuffing everything possible into every tool.)
So kind of like FreeBSD: less and less GNU code over time.
Perhaps a much better one would be whether to call a Honda Civic a Am/Jap car because it has a Chevy engine...
.. I want to start hacking around with it. But then I remember how much I love and I just don't care anymore.
Stone Temple Pilots vs. Velvet Revolver is a far more rockin' analogy*.
*Any spelling errors contained in this gag are just so many flies in the vaseline.
Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
If you are interested, the GoingNative 2013 talks include a C++11/14 Sampler by Scott Meyers.
Okay, I'm not a programmer, but shouldn't libc++ be a part of Clang - presumably C language, and not a part of a low level virtual machine?
B'cos if I understood it right, LLVM is the platform to which the code is compiled, while LLVM itself has to run on the bare metal. Or am I missing something here?
Where are static_if (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3613.pdf) and modules (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3347.pdf)?
*These* are the things that will really make C++ a better language and I can't wait to use them. :(
C++14 seems to be a very minor update.
"LLVM's Libc++ Now Has C++1Y Standard Library Support"
Seriously, is that a real headline, or did your cat just walk across the keyboard?!
The "it" you are referring to doesn't need to be referred to at all.
It does when "free Linux-based OS with a multiwindow GUI" takes up the majority of a 50-character "Comment Subject" box. You need the "multiwindow GUI" part to distinguish the multitude of Linux distributions for desktop and laptop PCs from Android and from Linux distributions designed for servers.
If you must err on the side of brevity, GNU/Linux is best
I need brevity because there are plenty of Slashdot users who repeatedly point to Google Play Store as evidence that there are plenty of games and other commercial apps "on Linux". So is there a shorter term for Linux-based systems that aren't Android or embedded?
GNU/Linux is a term that should be universally rejected
It's still far less clunky than "Linux-with-a-GNU-userland" or "Linux-that-isn't-Android-or-embedded".
Linux distributions have distinct names
Listing all Linux distributions in an application's "system requirements" would require excessive space. This means there's a need for a precise name for the set of Linux distributions that support Gtk+ and/or Qt userland as opposed to only the Android userland. Would Qt/Linux or Gtk+/Linux be more accurate?
Allow me to show you to handle such people.
Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
Then what is the proper term for Debian, Fedora, Gentoo, and other desktop Linux distributions that resemble Debian, Fedora, and Gentoo more than Android?
it really doesn't matter whether clang/llvm catches up to gcc or not in terms of speed or any other feature.
the crucial issue is what's strategically best for the long term interests of free software, and there is no way in hell that a compiler developed by the Lords of the Walled Garden at Apple is ever going to be a good thing for free software.
Apple's agenda is to sabotage copyleft and the GPL, because they want the benefits they can get from free code from tens of thousands of developers but without having to pay the entirely reasonable price of distributing and freely licensing the source along with any modified binaries.
The fact that Apple has been - and still is - smarter than Microsoft in their anti-free-software campaign just highlights how dangerous they are. Microsoft took the stupid head-on approach to attacking free software. Apple's method has been stealthy subversion and erosion of principles. smart, competent evil is far worse than stupid, incompetent evil.
GCCs middle end is intentionally blurry
How can it be an end if it's in the middle?
Esli epei etot cumprenan, shris soa Sfaha.
a compiler developed by the Lords of the Walled Garden at Apple is ever going to be a good thing for free software.
License: NCSA Open Source License
Product: ISO standards compliant
So what is the problem here?