ISO Updates C Standard 378
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)."
Let's get C99 right first (Score:2, Informative)
Re:First post!! (Score:5, Informative)
Oh? $300? For a PDF file? Heh.
Re:Let's get C99 right first (Score:5, Informative)
Draft available for free (Score:5, Informative)
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 [open-std.org]
Re:So... (Score:5, Informative)
http://en.wikipedia.org/wiki/C1X [wikipedia.org]
Re:Let's get C99 right first (Score:4, Informative)
Re:Let's get C99 right first (Score:4, Informative)
"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.
Looks like story is already dated... (Score:5, Informative)
The standard is known unofficially as C1X
GCC already says: [gnu.org]
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.
Poul-Henning's take on this. (Score:5, Informative)
https://www.varnish-cache.org/docs/trunk/phk/thetoolsweworkwith.html
Re:Let's get C99 right first (Score:3, Informative)
For a windows developer MS make their proprietary C# language easy, and C hard work. Now for most stuff that's fine, but sometimes a lower level language is needed.
Interesting, it's like you've never heard of C++ which MS does fully support [slowly] and is standard. I know pure C is a sacred cow but writing pure procedural code in C++ won't kill you, in fact, it will probably make the code much easier to read since you can't just arbitrarily cast back and forth between void pointers and other types without explicit type brackets.
Ever tried writing a kernel mode driver in C#?
MS has been experimenting with that but it seems more likely that they'll just hoist most drivers into user space services so you can use any language, .Net based or not. They've already hoisted some USB drivers and the bulk of WDDM video card drivers, just backwards compatibility in the way for the rest.
Re:Let's get C99 right first (Score:5, Informative)
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) [wikipedia.org].
Re:First post!! (Score:5, Informative)
Re:Let's get C99 right first (Score:3, Informative)
Re:First post!! (Score:5, Informative)
Grab the original file from here [thepiratebay.org].
Re:So... (Score:5, Informative)
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).
Re:Let's get C99 right first (Score:5, Informative)
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.
Re:First post!! (Score:4, Informative)
Of course, when he's not doing that, he's advocating necrophilia [stallman.org] and "voluntary pedophilia" [stallman.org]. Maybe not the best spokesperson to get behind.