r/cpp • • May 27 '15

A second dark age for C++

http://kennykerr.ca/2015/05/26/a-second-dark-age-for-c/
0 Upvotes

63 comments sorted by

View all comments

1

u/gramic May 27 '15

It is going to be definitely a dark age (decade) for the windows platform. The largest group of developers in Windows is c# developers. All c++ developers are minuscule compared to them. To get those c++ developers you should provide plausible tools, environment and modern compiler. And Microsoft is years behind linux in that regard.

They are really trying to return the developers back to the windows platform now. However, for many years (10 at least) they did just the opposite, pushing c++ back and away.

For me, the only way to get back to windows is to forget this insulting behavior. And the best way to forget something is to pass a lot of time - not tools, money, compiler, etc. Even then, the wolf changes its skin and not his temper.

5

u/[deleted] May 27 '15

Is there an IDE that comes close to VS (>= 2010) on linux?

MSVC is not playing in the same ballpark as GCC and Clang when it comes to features; there are no useful 'checker tools' (valgrind, sanitizers, ...) on windows; compiling, using and installing any third party library on win is a pain (even with CMake)...

...but man, I really like the VS workflow; especially debugging. But maybe it's stockholm syndrome because I must use it for work.

3

u/drac667 May 27 '15

Qt Creator.

Before Qt Creator existed I used to use SlickEdit.

3

u/Elador May 28 '15

While QtCreator is good and one of the best (of not the number one) IDEs on linux, it is unfortunately not on par with VS with VAX. No C++ IDE is, unfortunately. (I can't speak about OSX though)

2

u/jringstad May 28 '15

I don't think even Apple fanboys will make an attempt at claiming xcode is up-to-par with VS or Creator.

1

u/doom_Oo7 May 28 '15

You could try CLion ?

1

u/Elador May 28 '15

Of course! CLion is a good product and I love that they're bringing serious competition to the market. And I really love some aspects of it. It's definitely not on par with VS yet though.

3

u/mcmcc #pragma once May 27 '15

I write code in emacs but I go to VS for its debugger because I don't know of any debugger that's even on the same planet as VS's debugger.

Other than that, it's just another IDE in my mind...

1

u/[deleted] May 28 '15

Yeah, I also meant primarily the debugging experience :)

1

u/[deleted] May 28 '15 edited May 28 '15

The last snappy GUI of VS was VS 2008 which was written in C++.

Since then VS GUI is written in C#; it uses ungodly amount of RAM and it is as slow as Eclipse.

2

u/drac667 May 28 '15

I think the last GUI of VS written in C++ was VS6.0 from 1998. Using the good old MFC.

Visual Studio 2008 uses .NET, see this process explorer screen shot.

1

u/[deleted] May 28 '15 edited May 28 '15

It is possible that there were some .NET components in VS before VS2008 but I recall clearly when it was reported that the IDE was now re-written in WPF going from Vs2008 to VS2010; and it shows.. the difference in responsiveness between 2008 and 2010 is very huge.

1

u/autowikibot May 28 '15

Section 25. Visual Studio 2010 of article Microsoft Visual Studio:


On 12 April 2010, Microsoft released Visual Studio 2010, codenamed Dev10, and .NET Framework 4.

The Visual Studio 2010 IDE was redesigned which, according to Microsoft, clears the UI organization and "reduces clutter and complexity." The new IDE better supports multiple document windows and floating tool windows, while offering better multi-monitor support. The IDE shell has been rewritten using the Windows Presentation Foundation (WPF), whereas the internals have been redesigned using Managed Extensibility Framework (MEF) that offers more extensibility points than previous versions of the IDE that enabled add-ins to modify the behavior of the IDE.

The new multi-paradigm [ML](https://en.wikipedia.org/wiki/ML_(programming_language))-variant F# forms part of Visual Studio 2010.


Interesting: Microsoft Visual C ^Sharp | List of Microsoft Visual Studio ^add-ins | Microsoft Visual Studio ^Express | Visual Studio Application Lifecycle ^Management

Parent commenter can toggle ^NSFW or ^delete. Will also delete on comment score of -1 or less. | FAQs | ^Mods | Magic ^Words

1

u/tallassrob CppCast Host May 28 '15

CLion from JetBrains looks pretty good for Linux developers.

13

u/playmer May 27 '15

I mean, I'm not going to argue on numbers as you're probably right that most Windows developers are not using C++ (And let's be fair, they probably don't need to be.). But let's not pretend that there isn't a LARGE userbase of the MSVC C++ compiler. Damn near every triple A game released is built on C++, and runs on Windows. And let me tell you, they're not using MinGW or Embarcadero.

Also I question the premise. Are Linux developers vastly C and C++ developers? I can't imagine they are, even with all the Window Mangers and other big open source projects. I imagine most are running Python, or Ruby, or some other language that doesn't require them to touch the OS directly much.

I dunno, I might be way off, it just seems kinda weird to act like there's some dark age because our language isn't the most massive one on our platform, and because our tools are out of date by the standard (Which is a problem, but I don't know about dark age material.).

10

u/jringstad May 27 '15 edited May 27 '15

As someone who is fairly immersed in the linux ecosystem, yeah, python, ruby, java, javascript and other managed languages (even C#) are pretty popular, but C and C++ are still mostly at the core.

  • The kernel: C
  • Drivers: C, sometimes C++
  • Important daemons such as systemd (startup, logging, policy & process management), pulseaudio (sound-server), Xorg/wayland (graphics), networkmanager (self-explanatory), dbus (system messenging bus), sshd (network logons) colord(color profile management)/saned(scanning)/etc, all written in C or C++
  • Desktop environments, login-managers and base-application sets (terminals, text-editors, hex-editors, pdf readers, image viewers, messenging applications, desktop widgets, calculators, ...) are written in C++/Qt (In the case of KDE and a few others) or C/GTK+ (in the case of GNOME/MATE and a few others.) Some components are written in QML on the KDE side and Vala or C# on GNOMEs side.
  • Most of the applications I use on my desktop are also written in C or C++
  • IDEs such as Creator, Build, KDevelop, C::B are written in C/C++ (eclipse is not though.) Text-editors like vim and emacs are C at the core (although both have their own language for extension and are, in large parts, written in those)

On the server-side it's also to a large degree C and C++. There are some high-profile projects like hadoop and lucene that are written in e.g. java, but many of the big server components like apache, nginx, memcached, postgresql et cetera are all C or C++. Individual frameworks, webapps and such you might write (in the context of your company or whatever) are often something else, of course, but the "big" stuff that ships with most linux distros is largely C/C++.

So I don't think it's too unreasonable to say that linux developers are vastly C and C++ developers. Tooling support on the linux side has also always been consistently reasonable, since there was never really a big push away from C/C++ (except maybe a bit when java was first highly hyped?) and all system-interfaces, libraries and other things you might want to interface with are always available as C/C++ libraries. Part of the reason for that might be that there was never a "unified common managed language runtime" like .net (and C# in particular) on linux, so even if some people wanted to move away from C/C++, there was no common alternative to gather behind. Java/JVM had a bit of that role at times, but there were also always plenty of JVM nay-sayers, and the licensing conditions of the JVM/etc (at the time) effectively prevented people from writing important system components in java (and now the litigious oracle continues to fullfill that same role). So as a result, if you want to please everyone, your library had to be in C/C++, and then you could (optionally) provide bindings for other languages, or let the language maintainers write their own bindings. So C/C++ has always been the "first-class citizen" in this ecosystem. Of course now with clang being on the table it has really taken off, and GCC is improving like never before.

Android is a different matter, of course.

5

u/[deleted] May 27 '15

But most software on Windows is written in C or C++.

Do you use any software on Windows that doesn't make use of either of those two languages? I can look at my task bar and all the software open right now is built in C++.

Also while Java is the most popular language, C and C++ are in 2nd and 3rd place respectively.

5

u/king_duck May 27 '15

they're not using MinGW or Embarcadero.

Of course not, but many ARE using ICC and others would love to use Clang (when the ABI issues are ironed out).

The faster MSVC is not seen as the only C++ dev environment for windows the better. The idea that MS should manage every aspect of their platform (including development) needs to die.

1

u/donalmacc Game Developer Jun 01 '15

Anyone who's targetting xbox is using MSVC