ISO Updates C Standard
An anonymous reader writes "The International Organization for Standardization (ISO) has published the new specifications for the C programming language. The standard is known unofficially as C1X and was published officially as ISO/IEC 9899:2011. It provides greater compatibility with the C++ language and adds new features to C (as indicated in the draft)."
Oh? $300? For a PDF file? Heh.
C is withering and dying? Isn't it still used more than any other language: http://langpop.com/
For those interested, the last draft before the official version is available for free here: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
http://en.wikipedia.org/wiki/C1X
"This includes even the most basic stuff, like declaring variables in the middle of your code. It's actually a GCC extension to C"
No it's not— it's part of ISO C99.
The standard is known unofficially as C1X
GCC already says:
A fourth version of the C standard, known as C11, was published in 2011 as ISO/IEC 9899:2011. GCC has limited incomplete support for parts of this standard, enabled with -std=c11 or -std=iso9899:2011. (While in development, drafts of this standard version were referred to as C1X.)
Syntax is everything in C.
Orwell: "In a Time of Universal Deceit, telling the Truth is a Revolutionary Act"
https://www.varnish-cache.org/docs/trunk/phk/thetoolsweworkwith.html
Actually, C# is as proprietary as C - it isn't. Check http://msdn.microsoft.com/en-us/netframework/aa569283 for the ISO standard details regarding C#. .NET implementation is proprietary, but there is an early open source release of the .NET CLI implementation codenamed "Rotor", for XP, FreeBSD and MacOS X. Additionally, the Mono project is an opensource clean-room implementation, but it may not be feature-complete.
Microsoft
Microsoft Research has an interesting project called Singularity - an operating system running (mostly) in managed code. Some initialization routines are done in Assembly/C/C++, but the kernel itself and respective drivers are written entirely in managed code. Check http://en.wikipedia.org/wiki/Singularity_(operating_system).
The last draft and the errata are always free downloads. That's what I've been using to implement the atomics stuff in clang / FreeBSD.
I am TheRaven on Soylent News
It's 300 bucks, it was produced by a committee financed by tax payer's money, it's a pdf, not even a printed book. It's an open standard and will be needed by a lot of developers who want or must write standard compliant code. This is EXACTLY the thing RMS means when he is shouting his song.
Grab the original file from here.
On second thought, let's not go to Camelot. It is a silly place.
Some of the not-so-nice features include threads.h, which is equivalent to pthreads but with a different function names (and ones that seem quite likely to cause conflicts with existing code).
I am TheRaven on Soylent News
Simply put, gcc beats VC on standard compliance, and VC beats gcc on optimization quality.
Anyway, VC is primarily a C++ compiler. C support is largely legacy, and hasn't been updated for a long time now.
Of course, when he's not doing that, he's advocating necrophilia and "voluntary pedophilia". Maybe not the best spokesperson to get behind.