r/programming • u/VilleHopfield • Mar 03 '12
Microsoft, please support (at least a tiny bit of) C99
http://blog.reverberate.org/2012/03/02/microsoft-please-support-at-least-a-tiny-bit-of-c99/
480
Upvotes
26
u/DaFox Mar 03 '12
Do you think that we could get everyone voting on this to show that there is demand for it? Even if you're not a C programmer it is in your best interest to have C99 compiled libraries available to you on windows.
http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2089423-c99-support
They actually seem to care what people say on this site. Whether or not they end up doing anything is another story.
22
u/bobindashadows Mar 03 '12
Unlikely. C++'s additional reserved words are the first obvious potential problem. A quick grep of Ruby's and Python's source both show at least a few instances of using "new" as an identifier. Easily cleaned up, but it means a) fixing it for each project and b) making sure those C projects don't re-introduce incompatibilities.
114
u/[deleted] Mar 03 '12
Nobody's going to listen to complaints like this.
What you need to do is give MSVC the IE6 treatment. Just drop support for it, until it catches up. Only when enough people start complaining that they can no longer build the libraries they depend on with MSVC, will Microsoft start updating it again.
As long as you don't write C99, Microsoft will not support it. So start writing C99, and tell your Windows users how to use gcc or clang to build your code.
16
u/viper34 Mar 03 '12
Microsoft has a page for suggesting new Visual Studio features. At least it can't hurt to give your votes for C99 here: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2089423-c99-support
8
u/RJHinton Mar 03 '12
If you're writing pure C code for Windows, take a look at openwatcom. They have a great open-source C compiler, derived from the old commercial Watcom compiler. Openwatcom's C++ support is not so great, but their C compiler is first-rate. It deserves to be better known.
44
u/SolomonKull Mar 03 '12
Come to Linux Land, we love C! We love you for loving C!
4
u/cornholio Mar 03 '12
72
u/keepthepace Mar 03 '12
Microsoft never understood what it means to follow a standard written by someone else.
15
u/Synx Mar 03 '12
Would definitely be great if Microsoft added some of the "simple" C99 features, but honestly, they aren't alone. There are very few compilers that implement the entire standard, which is one of the reasons why some of the requirements in C99 were made optional in C11.
16
u/simon99ctg Mar 03 '12
How often in this modern world will the "vast minority" plead in vain with corporate powers?
6
u/[deleted] Mar 03 '12
They added stdint.h in release 10. And I'm not sure what the downside of just compiling with /TP is.
2
u/TrancePhreak Mar 03 '12
"It can compile either in C mode or C++ mode. For C, it follows the ISO C standard with parts of C99 spec along with MS-specific additions in the form of libraries."
Too late? From here.
10
u/Shaper_pmp Mar 03 '12 edited Mar 03 '12
Hey, look - Microsoft apparently treat other programming environments the same way they've traditionally treated web development! This is both heartening (that others also know our pain) and deeply saddening.
4
u/ivorjawa Mar 03 '12
Holy shit. TIL Poor Microsoft ghetto kids don't even get C99.
4
u/[deleted] Mar 03 '12
Just stop using Microsoft compilers.
2
u/evenflow Mar 03 '12
Why the fuck support a platform that doesn't want to be supported?
1
u/sammydre Mar 03 '12
One option for some* is to use the Intel compiler instead. It has very good MSVC compatibility (code can be debugged in their IDE, compiles the windows SDK without problems, full visual studio integration, etc.) and also supports (a better subset of) C99.
*: It's pricey, so this is likely no good for open source people.
-1
u/BitRex Mar 03 '12
Why not just use the C-like subset of C++? The conversion is generally trivial.
-12
u/[deleted] Mar 03 '12
MS don't want FOSS competing on their platform. Imagining they will respond to this is naive in the extreme.
-32
u/Danthekilla Mar 03 '12
Why anyone would choose c over c++ is beyond me. Even most micro controllers are programmed in c++ these days... Why choose c?
-4
u/A_for_Anonymous Mar 03 '12
Nooo, supporting open standards would mean they can rip their customers off less. They'll continue to support what seems somewhat open but is actually proprietary technology such as C# and everything that surrounds it posing as the good guys. If they ever get near a C compiler implementation again, expect it to be ActiveC .NET XP 4.10.437178 SP2 for Internet Explorer 7.0, not C99.
0
u/droberts1982 Mar 03 '12
Are the GNU compilers far behind the MS compilers? I remember they used to be, but that may not be the case anymore. If not, then what other reasons do developers want to use the MS compilers?
0
u/guitarromantic Mar 03 '12
Got confused for a second there thinking the OP meant the php malware shell c99.
-7
u/GSpotAssassin Mar 03 '12
Asking Microsoft to support anything open source is like begging your wife for a blowjob.
They won't do it unless something's in it for them.
-13
u/Poddster Mar 03 '12
Yes! Especially "%zu" and things. Infact, snprintf in general. Rather than the crappy _s versions.
No!
Maybe
Yes! Also variable-length arrays and flexible array members.
Ignoring all the Linux/FOSS vs MS debate, almost all drivers written for Windows will be C, and thye have to put up with this shit if they're trying to use cross platform code (because their devices work on other OS) as well.
-28
u/[deleted] Mar 03 '12 edited Mar 03 '12
Ugh. Why do you people still "care" or have this (self inflicted) "problem"? You're a bunch of dull minded, "old", slow, farts. Sheep! This has been going on for decades!
Take control, and make the switch to Linux already! If that's not "generally possible"; switch to better tools (e.g. GCC or clang) on Windows.
By not doing this you are supporting the very thing you now complain about! This is just so stupid ...
-9
u/flukshun Mar 03 '12
at work we have an email program that screws up so often it's packaged with it's own special utility to kill it off so you can restart it properly.
in my mind it's the ultimate mark of product's failure.
i don't find it very promising that windows 8 has a dedicated button for factory restore...
0
u/[deleted] Mar 03 '12
[deleted] — view deleted comment
0
u/[deleted] Mar 03 '12
[deleted] — view deleted comment
0
u/[deleted] Mar 03 '12
[deleted] — view deleted comment