Slashdot Mirror


Most Popular Programming Languages: C++ Knocks Python Out of Top Three in New Study (techrepublic.com)

C++ has knocked machine-learning favorite Python out of the top 3 in the TIOBE Index of popular programming languages. From a report: It marks a reversal of fortune for C++, which, after years of occupying third place in the index, was pushed down to fourth place by Python in September last year. First and second place in the list remain unchanged, with Java in pole position and C at number two. The TIOBE Index attempts to estimate the popularity of languages worldwide based on results from major search engines. The index is sometimes criticized for being a rather blunt measure, likely to be influenced by a range of factors beyond a language's popularity, but its rankings are broadly in line with others, with a similar mix of languages albeit arranged in a different order.

In an analysis alongside the latest figures, TIOBE attributes the comeback of C++ to a surge in its popularity, rather than a fall in the use of Python. "This is certainly not because Python is in decline: Python is scoring all time highs almost every month. It is just that C++ is also getting more and more popular," it writes. The report credits this growing interest in C++ to C++11, the version of the language released in 2011 that TIOBE said made C++ "much simpler, safer and more expressive."

96 of 161 comments (clear)

  1. Safer, simpler, more expressive by Latent+Heat · · Score: 3, Insightful

    Pick any two.

    1. Re:Safer, simpler, more expressive by mschaffer · · Score: 1

      The "good/cheap/fast---pick any two" paradigm doesn't apply here. It's not a fixed project or product. Rather it's an evolving standard benefiting from the efforts of many, the expenditure of many resources, over long time periods. After all, they are working on c++20!. So, this is not apt.

    2. Re:Safer, simpler, more expressive by DickBreath · · Score: 2

      I don't care how simpler C++ thinks it is.

      I can write a bigger, slower program in Java, in less time, any day of the week.

      --

      I'll see your senator, and I'll raise you two judges.
    3. Re:Safer, simpler, more expressive by K.+S.+Kyosuke · · Score: 1

      Safer, simpler, more expressive

      ...something like Scheme, then?

      --
      Ezekiel 23:20
    4. Re:Safer, simpler, more expressive by ceoyoyo · · Score: 2

      In my experience, the expressiveness of C++ has always made it non-simple. So maybe pick one?

    5. Re:Safer, simpler, more expressive by Tough+Love · · Score: 2

      #4: slower. Python wins by a mile.

      --
      When all you have is a hammer, every problem starts to look like a thumb.
    6. Re:Safer, simpler, more expressive by AHuxley · · Score: 1

      Learn to code Ada.

      --
      Domestic spying is now "Benign Information Gathering"
    7. Re:Safer, simpler, more expressive by Anonymous Coward · · Score: 1

      That's because C++ only has two left to pick from. Stroustrup discarded "simpler" way back in 1997 with the introduction of template metaprogramming.

    8. Re:Safer, simpler, more expressive by Anonymous Coward · · Score: 1

      Which is funny from the guy who said macros/#defines were bad...

    9. Re: Safer, simpler, more expressive by astrofurter · · Score: 1

      Ada certainly looks like a nice language. Unfortunately very few civilian companies seem to use it. A quick search on Indeed.com suggests there are 20x more Python developer jobs than Ada developer jobs listed today. That without controlling for namespace collision with ADA regulations.

      Any thoughts on why Ada is so uncommon in private industry?

    10. Re:Safer, simpler, more expressive by ath1901 · · Score: 1

      Safer, simpler and more expressive are all relative measures and depends on what the language was like before the changes. C++11 made it easier to write safer, simpler and more expressive code. You don't have to, but it is easier to do it now. Just the addition of shared_ptr is enough to claim all three improvements.

    11. Re:Safer, simpler, more expressive by vyvepe · · Score: 1

      Just the addition of shared_ptr is enough to claim all three improvements.

      shared_ptr was in boost long before C++11. There are more important additions like type inference, lambda functions, strongly typed enums, rvalue reference, variadict templates .... just to name a few more relevant.

    12. Re:Safer, simpler, more expressive by jma05 · · Score: 3, Insightful

      You must not have used Java very much. Java IDEs mostly write all the tedious code for you, much more so than C++ IDEs can for C++ (Java is a much simpler language). No one writes casts, exception handlers etc by hand. Verbose, yes, but it is much easier to write Java than C++ for all but the simplest programs. That is one of its selling points.

      > Java constantly wants me to explicitly cast one data type to another, even if it's blatantly obvious what I intended.

      Give me an example.

      And if you think the compiler whining is a bad think, you will hate Rust, ML or Haskell, because Java is hardly the standard for a whiny compiler.
      Compiler warnings are a good thing. They save later debugging time, which is much more painful. Addressing the compiler while writing code for the first time is much simpler. It is just higher upfront cost, not higher total cost in programmer time.

    13. Re:Safer, simpler, more expressive by JoeDuncan · · Score: 1

      That's because C++ only has two left to pick from. Stroustrup discarded "simpler" way back in 1997 with the introduction of template metaprogramming.

      THIS^

      Lord I wish I had mod points for you... :(

    14. Re:Safer, simpler, more expressive by fibonacci8 · · Score: 1

      In which case you get to pick one.

      --
      Inheritance is the sincerest form of nepotism.
    15. Re:Safer, simpler, more expressive by serviscope_minor · · Score: 1

      but it is much easier to write Java than C++ for all but the simplest programs.

      I strongly disagree with that.

      I'm not a fan of java, but I'm not a hater of it either, from my point of view, it's solidly OK. But there's no way java is better for all programs than C++. C++ allows for much more expressive libraries than Java and if someone's put in the work that makes code much much easier to write.

      Take Eigen for example. Not a library you want to delve into, but as a user, you can write code that looks like maths. Or even moreso, take Ceres. You write maths just like normal and it automatically differentiates the expressions.

      For certain applications there are nice fixed point libraries.

      Image processing is miserable in java. There are many reasons but the lack of unsigned bytes is really super annoying

      That's all on the computation end, but that's my field at the moment. Java's just not a good fit, and it's simply easier in C++.

      --
      SJW n. One who posts facts.
    16. Re:Safer, simpler, more expressive by jma05 · · Score: 1

      > But there's no way java is better for all programs than C++.

      I don't think any one would suggest that.

      C++ is obviously much more flexible such that you can shoe-horn any niche paradigm into it. To get such language flexibility in the Java world, you pick from the dozens of alternative languages for the JVM.

      And of course, JVM won't give you everything when you need to work at a lower level.

      > Take Eigen for example.

      Sure. I tried Armadillo myself.

    17. Re:Safer, simpler, more expressive by DickBreath · · Score: 1

      As an actual Java developer, I can't even remember what a compile time error is. A modern IDE flags compile time errors before you build anything. And the IDE keeps compiled classes up to date at all moments. I could make a change in the current file, which now causes some other files to no longer compile, and they instantly start turning red in the file tree right before your eyes.

      A modern IDE even uses a variation of the compiler which compiles code with compile time errors -- so that when run it will produce run time errors explaining the compile time error. This is not the compiler you necessarily build your project with -- although you can -- because when you build you have no compile errors.

      Syntax deficiencies, any any language, are not minor. I could say that C++, or any language, loves to whine and complain about minor syntax deficiencies.

      Syntax errors simply mean the programmer doesn't know the language well enough. Yet.

      --

      I'll see your senator, and I'll raise you two judges.
    18. Re: Safer, simpler, more expressive by Carewolf · · Score: 1

      No concepts that clean up template metaprogramming are is already in C++20. It is agreed on just not ready in compilers other than gcc yet

    19. Re:Safer, simpler, more expressive by serviscope_minor · · Score: 1

      I don't think any one would suggest that.

      You got awfully close. You said:

      but it is much easier to write Java than C++ for all but the simplest programs.

      So I don't really get your point.

      There's plenty of stuff written in C++. If it's much easier to write programs in Java, then why are major bitsof infrastructure (like Web browsers and compilers) generally written in C++? Not to mention games, numerical computation, embedded stuff, and so on.

      So I'm not sure what your point is. There are plenty of nontrivial programs for which C++ is the correct choice.

      --
      SJW n. One who posts facts.
    20. Re:Safer, simpler, more expressive by jma05 · · Score: 1

      Performance ("Web browsers and compilers"), not expressiveness.

      It would generally be more elegant and easier to express the Eigen, Ceres, Armadillo code in MATLAB, Mathematica or a similar language. Neither Java nor C++ are optimal for this in terms of expressivity, but C++ would win over plain Java at this.

      Java is generally much easier than C++, unless you need memory control. Beyond that, I still understand you; some features of C++, like operator overloading, do make it more flexible than Java, even if you set aside memory control. When you need that flexibility in Java, you pull out Scala - quite easy to add to your Java project and interops with full IDE support.

    21. Re:Safer, simpler, more expressive by serviscope_minor · · Score: 1

      Performance ("Web browsers and compilers"), not expressiveness.

      I think you're stretching the point somewhat. It's not easier to write a web browser in Java is the resulting web browser is not useable. What's the point in doing three quarters of a task?

      It would generally be more elegant and easier to express the Eigen, Ceres, Armadillo code in MATLAB, Mathematica or a similar language.

      I know MATLAB and no it wouldn't. MATLAB for example doesn't give you static typing on, well, anything. Eigen and similar libraries give you static typing on matrix sizes, eliminating a whole slew of things at comile time.

      And with matlab,to get anything other than truly glacial performance, you haveto use MATLAB idioms which involves cramming eveything into an array expession which is generally harder to read, write and debug than for loops.

      MATLAB has it's place and I like it a great deal, however, for many tasks I reach for C++ first.

      Java is generally much easier than C++, unless you need memory control.

      Depends on the task. I've worked on image procesing code in both C++ and Java. It's a lot easier in C++.

      When you need that flexibility in Java, you pull out Scala

      That's not Java. That's a language running on the JVM but it certainly isn't Java.

      --
      SJW n. One who posts facts.
    22. Re:Safer, simpler, more expressive by jma05 · · Score: 1

      > Depends on the task. I've worked on image procesing code in both C++ and Java. It's a lot easier in C++.

      I am not disagreeing that Java is not the right language for you or for many tasks where you really need a language that runs natively end efficiently, without a VM/GC.

      Obviously, no language is optimal for everything and of course it "Depends on the task".

      But for a majority of tasks that programmers used C++ for earlier, Java has proven to be an effective and easier replacement.

      Rust is a more faithful C++ replacement, not Java. Obviously, no one actually wants to use something like Hot Java, but Firefox Quantum is great. No one wants a Photoshop in Java.

      Some of my colleagues work with image processing (research). They all work in MATLAB, most of the time. Obviously, it is glacial as one would expect a dynamically typed language to be. But that isn't the point when you are exploring transformations. This is the expensive part (human time). Once the algorithms stabilize, they are handed over to C++ engineers for final implementations. We do want core algorithms written in something native like C++. But most code in organizations is not like that.

      Java is, broadly speaking, easier to teach, easier to manage and easier to maintain than C++. There will always be exceptions. A managed runtime is always going to compromise performance and control over unmanaged native code. The compromises that Java makes towards simplification are quite acceptable for most people. It is just that you don't fit that profile.

    23. Re:Safer, simpler, more expressive by serviscope_minor · · Score: 1

      Well this is a substantially different claim from the original one, and I agree more with it.

      But for a majority of tasks that programmers used C++ for earlier, Java has proven to be an effective and easier replacement.

      Yesbut...

      I mean yes, for plenty of stuff Java is a more appropriate choice than C++. On the other hand if anything C++ is growing now, and a lot of migration was a long time ago. The world of C++ now is nothing like the world of C++ in 1996 when Java first stormed onto the scene.

      Obviously, no one actually wants to use something like Hot Java

      Wow that brings back memories. I've not heard that name in a VERY long time!

      Some of my colleagues work with image processing (research). They all work in MATLAB, most of the time. Obviously, it is glacial as one would expect a dynamically typed language to be. But that isn't the point when you are exploring transformations. This is the expensive part (human time). Once the algorithms stabilize, they are handed over to C++ engineers for final implementations.

      I use both. I've made prototypes in both MATLAB and C++, and continue to do so. The thing that sets C++ aside is it's a much more flexible language than MATLAB, it's sometimes referred to a a libary writer's language.

      Writing good libraries is hard, very hard, and few people can do it. But those libraries can be truly excellent nd act almost like an EDSL. MATLAB doesn't have that. It's basically an array processing language with an emphasis on linear algebra, and it always lookslike that.

      For example despite it's mathematical pedigree, MATLAB still doesnt have autodiff. If your image processing step involves any optimization it's much quicker and easier if you don't have to compute gradients.

      Likewise the lack of strong typing is a bit of a pain. It means I have tofind bugs at runtime.

      --
      SJW n. One who posts facts.
    24. Re:Safer, simpler, more expressive by jma05 · · Score: 1

      I learnt C++ in the Turbo C++ era and productively used it in C++ builder times.

      I disliked Java when it first came about; took away too many things. But later it got better and so did C++. Plugging in better languages into JVM is a much nicer experience (the tooling is more mature) than embedding an interpreter in C++.

      When I think of JVM, I really think of what I can do with Java + any other JVM language with good IDE support. That way I can express parts of my applications in the most suitable semantics, all in one VM. I like where GraalVM is going. But mostly I use Python backed by C/C++ libraries (they are after all THE library writer's languages today).

      I really wanted to like C++ since C++11. I see all these very promising expressive libraries that promise to be numerical, functional etc and keep trying them out. But each time, I go back to using a language with built in support for such things, not just through a library. C++ may have improved a lot since C++ 98, but so did the pleasantness in working with all other languages.

      C++ does everything, but everything in the end feels somehow just not fluid enough. That is not surprising for any jack-of-all-trades tool naturally, programming language or not.

      I gave up on C++. I don't NEED to write native code any more, but I like to. I moved to Rust for that niche and I hope it becomes more of a library writer's language (not betting on that though). I use Nim to generate C or C++ now. It may not work for your needs (it has a GC, but it may be moving away from that), but it seems to suit me.

    25. Re:Safer, simpler, more expressive by K.+S.+Kyosuke · · Score: 1

      You get all three. Unless the implementation is bugged, of course.

      --
      Ezekiel 23:20
  2. Make C++ simpler ?!? by dargaud · · Score: 5, Interesting
    You would have to remove things from it, not just keep adding every paradigm from every other language. That thing has everything and the kitchen thing: you can do pure C with it. Or (almost) pure Java. Or only macros and templates. Anyway one programmer's C++ program might as well be an alien language to another C++ programmer.

    Besides that, their whole methodology is crap, as has been noted many times over: if there are plenty of messages asking for help on stackoverflow, maybe it's because users are struggling with a language, not because it's 'popular'. A language that is very easy to learn on your own wouldn't have any messages now would it ?

    --
    Non-Linux Penguins ?
    1. Re:Make C++ simpler ?!? by fahrbot-bot · · Score: 1

      That thing (C++) has everything and the kitchen thing: ...

      C++ is probably implemented using Emacs LISP ... :-)

      [ Emacs' original/old logo was, literally, an overflowing kitchen sink. ]

      --
      It must have been something you assimilated. . . .
    2. Re:Make C++ simpler ?!? by Pseudonym · · Score: 2, Interesting

      You would have to remove things from it, not just keep adding every paradigm from every other language.

      Things are being removed from C++, but that's not the point here. You don't have to remove large slabs of the language, you just have to choose not to use them. The craziness that is C++ locales, for example, need not concern you because you won't use it.

      Modern C++ is mostly about not using implementation inheritance, which is the one thing that bitter experience has shown makes C++ software brittle. But you can't remove it from the language because all of that 1990s era hierarchical tarpit code wouldn't work then.

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    3. Re:Make C++ simpler ?!? by ranton · · Score: 5, Insightful

      You don't have to remove large slabs of the language, you just have to choose not to use them. The craziness that is C++ locales, for example, need not concern you because you won't use it.

      This is only true if you are either working alone or have control over the development practices of your product team. And hopefully you never move companies or acquire a company that develops differently than you do.

      Otherwise every feature in your language of choice is something you may need to use if you are supporting work done by other developers who use that feature.

      --
      -- All that is necessary for the triumph of evil is that good men do nothing. -- Edmund Burke
    4. Re:Make C++ simpler ?!? by jargonburn · · Score: 1
      The truth about C++

      Interview with Bjarne Stroustrup

    5. Re:Make C++ simpler ?!? by Anonymous Coward · · Score: 1

      Bingo! As you add coders to a project -- now or in the past who have added to the legacy code base -- you dramatically increase the probability of running into crap features and crap coding practices.

      When I did a lot of consulting and custom coding, I ran into this constantly, especially when any of the C family languages were involved.

    6. Re:Make C++ simpler ?!? by OzPeter · · Score: 4, Informative

      You would have to remove things from it, not just keep adding every paradigm from every other language. That thing has everything and the kitchen thing: you can do pure C with it. Or (almost) pure Java. Or only macros and templates. Anyway one programmer's C++ program might as well be an alien language to another C++ programmer.

      I can't remember who said it, but they said that C++ is actually 4 distinct languages under one banner (from memory): Procedural, OOP, C-style Macros, and Templates.

      Each of them have different attributes and gotcha's.

      I used to know C++ fairly well in the late 90's, but when I look at the current state of it I tend to shake any head in wonder as to what it has become. Not only have there been so many new additions to it, there have also been completely new paradigms in how to approach it.

      --
      I am Slashdot. Are you Slashdot as well?
    7. Re:Make C++ simpler ?!? by tlhIngan · · Score: 1

      Things are being removed from C++, but that's not the point here. You don't have to remove large slabs of the language, you just have to choose not to use them. The craziness that is C++ locales, for example, need not concern you because you won't use it.

      Modern C++ is mostly about not using implementation inheritance, which is the one thing that bitter experience has shown makes C++ software brittle. But you can't remove it from the language because all of that 1990s era hierarchical tarpit code wouldn't work then.

      The problem is without compiler enforcement, someone might slip some of these features into the codebase.

      The compiler needs to have a bunch of feature switches you can disable (which is easy to do in a modern IDE or a makefile CFLAGS variable) so if someone even dares use a verboten feature for your project, the build will fail

      Otherwise the lack of some discipline can lead to problems down the road.

      And you can have sensible compiler defaults - it may be part of the language, but marked as "this is not recommended for use", which the compiler will error out on (but can be manually enabled using those feature switches) so old codebases can still use them, new code bases aren't using them, and it's effectively no longer part of the language as it's highly discouraged from use.

    8. Re:Make C++ simpler ?!? by ceoyoyo · · Score: 4, Insightful

      It's also only true if you ever only look at your own code. One of the most irritating things about C++ is that in order to understand someone else's code you have to first essentially learn a new language by going through the project's style guide. If they have one. And it's any good.

      Hey, I found this great open source project, I just need to add/tweak this little feature... OMG, KILL IT WITH FIRE.

    9. Re:Make C++ simpler ?!? by The+Evil+Atheist · · Score: 1

      And of course, the cure to having to learn new stuff in a language is to learn a completely different language every time. That'll teach 'em.

      --
      Those who do not learn from commit history are doomed to regress it.
    10. Re:Make C++ simpler ?!? by TheRaven64 · · Score: 2

      The craziness that is C++ locales, for example, need not concern you because you won't use it.

      Are you sure? I have a version of libc++ that works in the FreeBSD kernel, but I needed to do some quite drastic surgery to remove all of the locale stuff (which I really don't want in the kernel - anything that needs localisation should be done in userspace). A lot of the standard library depends on it indirectly and so I needed a lot of stubs to even let the standard library build.

      The C++ standard library could really benefit from some better modularity and layering. The core ADTs, the threading library, simple string handling, localised Unicode string handling, and so on should all be separated out and the dependencies between them made explicit. Unfortunately, the C++ standards committee is philosophically opposed to subsetting, which means that instead of a handful of standard subsets we have hundreds of per-project subsets.

      --
      I am TheRaven on Soylent News
    11. Re:Make C++ simpler ?!? by AmiMoJo · · Score: 1

      C++ is the ultimate career armour. Pick an exotic C++, use it extensively in your business critical app, and you have a job for life because no-one else will touch it with a barge pole.

      Works particularly well for contractors.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    12. Re:Make C++ simpler ?!? by AmiMoJo · · Score: 1

      C++ is a Swiss army knife where half the tools are various calibre foot guns.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    13. Re:Make C++ simpler ?!? by DontBeAMoran · · Score: 1

      Besides that, their whole methodology is crap, as has been noted many times over: if there are plenty of messages asking for help on stackoverflow, maybe it's because users are struggling with a language, not because it's 'popular'. A language that is very easy to learn on your own wouldn't have any messages now would it ?

      No mod points today, so here's a "virtual +1 Insightful" for you.

      I also wish people would stop making such false correlations, it's almost as stupid as these ones.

      --
      #DeleteFacebook
    14. Re:Make C++ simpler ?!? by luis_a_espinal · · Score: 1

      I used to know C++ fairly well in the late 90's, but when I look at the current state of it I tend to shake any head in wonder as to what it has become. Not only have there been so many new additions to it, there have also been completely new paradigms in how to approach it.

      Same here. I used to program C++ with my eyes closed and get things done rather well and safely. But the language has moved beyond the realm of what I feel inclined to catch up. I do like some of the improvements in C++11, but wow, so many ways to blow your own foot now (as it if wasn't bad enough 20 years ago.)

    15. Re: Make C++ simpler ?!? by Carewolf · · Score: 1

      Well GCC uses some LISP internally. So in a way

    16. Re: Make C++ simpler ?!? by fahrbot-bot · · Score: 1

      Well GCC uses some LISP internally. So in a way

      I actually didn't know that, thanks!

      --
      It must have been something you assimilated. . . .
    17. Re:Make C++ simpler ?!? by serviscope_minor · · Score: 1

      Unfortunately, the C++ standards committee is philosophically opposed to subsetting,

      Not when it comes to the library they're not. There's currently non hosted (no library) and hosted (with the library). There are proposals making their way through to make the non hosted one have some useful libraries.

      --
      SJW n. One who posts facts.
    18. Re:Make C++ simpler ?!? by Pseudonym · · Score: 1

      It's also only true if you ever only look at your own code.

      Clearly you haven't seen my pre-ANSI-era C++ code. It's... probably for the best.

      Having said that, I strongly disagree that C++ is especially prone to this. Yes, Qt is essentially a different language from C++ (say). By the same measure, Spring is essentially a different language from Java and every JavaScript framework is its own thing.

      The main difference is that C++ is both old and powerful. Like any piece of aging infrastructure, it needs a lot of maintenance (hence the busy C++ standards committee), but it also needs a compelling reason to replace it.

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    19. Re:Make C++ simpler ?!? by Pseudonym · · Score: 1

      I am unclear on what problem is best solved by using libc++ in the FreeBSD kernel. Or most of libc, for that matter.

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
  3. Out of curiosity ... by fahrbot-bot · · Score: 2

    Anyone know what programming language (or other tool) is used to process the data and generate the TIOBE Index?

    --
    It must have been something you assimilated. . . .
    1. Re:Out of curiosity ... by Anonymous Coward · · Score: 2, Funny

      Most likely Node.js with 300 dependencies - one for each function call.

    2. Re:Out of curiosity ... by Anonymous Coward · · Score: 1

      LOL right in the vas deferens

  4. Re:Viva C++! by mschaffer · · Score: 1

    The syntax isn't that bad. I just wish they would do away with the header files, or at least make using them optional.

  5. Assembly by Ramley · · Score: 4, Interesting

    I was surprised to see Assembly in the top 10. Perhaps I shouldn't be, as I'm not in the world which uses Assembly, and I haven't even played with it since college back in the day.

    Forgive my ignorance here, but why the popularity of Assembly? It's impressive to say the least, but I'm unfamiliar with the world that lives in that language.

    Happy Monday!

    1. Re:Assembly by sconeu · · Score: 1

      My guess is embedded and things like 8-bit microcontrollers.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    2. Re:Assembly by chester_br · · Score: 2

      Maybe it's a side effect on how TIOBE measures "popularity" by looking at frequency in search engines - surely, that correlates with popularity, but also (IMHO) with complexity, which may have brought our friendly neighbourhood (Assembly) into the spotlight :-D

    3. Re:Assembly by chrism238 · · Score: 1

      I was surprised to see Assembly in the top 10.

      I'm wondering if it's growth in WebAssembly?

    4. Re:Assembly by Prien715 · · Score: 1

      All code has to be written in assembly at some point. If you're making your compiler implement C++14 move semantics, for example, you may need to write portions of that code in assembly. If you create a new microcontroller, you'll also have to implement a compiler to assembly somewhere. Assembly is also hard thus lots of people are trying to find an answer and probably don't find the right answer the first time.

      --
      -- Political fascism requires a Fuhrer.
    5. Re:Assembly by Heir+Of+The+Mess · · Score: 3, Informative

      I wouldn't put too much faith in the TIOBE index, for example it shows VB.NET at number 5, above C# at number 6 which can't be right.

      I think you'll find PYPL to be a better indicator of language popularity which has VBA and VB in its proper place at #13 and #17 respectively.

      --
      Australian running a company that does C# / C++ / Java / SQL / Python / Mathematica
    6. Re:Assembly by Bite+The+Pillow · · Score: 1

      I use it at least once a week. To fix things that should have been fixed, by date or by contract. Either way, the code going to my CPU is my call to make.

      SoftIce anyone?

    7. Re:Assembly by antdude · · Score: 1

      I am surprised to see old languages listed like C++, ASM, etc. that I used back in college during the mid 90s.

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  6. I was wondering about that also... by SuperKendall · · Score: 1

    I was curious if it was just x86 assembly, or all assembly across all processors (like ARM)?

    Some curious changes on that list...

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:I was wondering about that also... by Anonymous Coward · · Score: 1

      It only makes sense if it's all assembly across all processors. I'd guess ARM has a lot to do with it precisely because optimizing code for phones is actually a thing. Really there's no reasonable basis to avoid assembly language, and I doubt there ever will be. The closest you'll ever get is specific C code that tries desperately hard to qualify as C code and not butchered assembly. There's also the space of dynamic recompilers which can be written in C but often parts are still written in assembly at some point. Then there's of course the embedded space, although I've no idea how widespread that is vs more of a niche space.

  7. Use whitespace syntactically... by John+Guilt · · Score: 2, Informative

    ...and you oughtn't be anywhere near the top. Just my absolutely accurate and precise opinion.

    1. Re:Use whitespace syntactically... by hazem · · Score: 4, Insightful

      You're getting marked as flame-bait, but I agree. Try reading (and typing in) code from a book with C (or practically any other language), and you'll have no problems. Try the same with a book with Python code that spans a page-break, and you'll have to break out a ruler to figure out the correct number of syntactic spaces.

      It's a fine scripting language, but it's hard to take seriously with limitations like that.

    2. Re:Use whitespace syntactically... by John+Guilt · · Score: 1

      Did the second sentence make the difference? If so, that were inept on my part as I was trying for self-mockery.

    3. Re:Use whitespace syntactically... by ebvwfbw · · Score: 1

      Sounds like you don't know python. I'm an old time C guy. Over 35 years. It's great for certain things. I still code in it. However for a lot of things I can whip out a program in python that is right in an afternoon and I don't have to ever touch it. C - it'll take me far longer to do the same thing. I'm fairly good at getting it right the first time, however I still end up having to change things later. Method is the same for me. All the steps are in my mind, then I type it right in.

      Python is a very serious language. If you don't know it, you don't know what you're missing.

      Next thing I know you'll be telling me you don't even know Emacs.

    4. Re:Use whitespace syntactically... by Bigjeff5 · · Score: 1

      I'm sorry but that sounds exactly like what you would use a scripting language for - quick hack-together solutions to immediate problems.

      I know Python can be used for far more than just scripting, but it definitely feels like you supported his point more than argued against it, as seems to be your intention.

      --
      Security is mostly a superstition... Avoiding danger is no safer in the long run than outright exposure. - Helen Keller
    5. Re:Use whitespace syntactically... by ebvwfbw · · Score: 1

      I could see how you would think that. Sometimes I write quick stuff to solve something, though it could be in perl, or even awk. In fact if it is something quick I wouldn't use python because it really has to line up properly, so we're talking about a file. I don't want to bother with a stinkin' file.

      By whipping out something in an afternoon I had more in mind something like taking stock market data and running it through tensorflow. Recently I ran wifi data from a kismet session through to find something specific. I'm perfectly capable of doing both of these programs in c++. Question is - why would I? Only if there is a specific need. Like whatever it is has to run on something slow and cycles matter. System on whatever it's running on is small. Sometimes both. The other reason is system things, like a device driver.

      I remember over 20 years ago I had all kinds of C programs. A lot of them ran every day. This is back in the days when 16 meg of memory was a lot. I re-wrote them all in Perl. I found about a 5-1 reduction in lines and the code was clearly a lot easier to understand and maintain. Python I'm seeing about a 12-1 reduction from the old C code. Just have to think in the pythonic way.

  8. Re:Viva C++! by DaphneDiane · · Score: 1
  9. Namespaces in C by darthsilun · · Score: 4, Interesting

    Could we just have namespaces in C? Maybe reference types?
    Or pushing the envelope, how about a simple single-inheritance class model? It seems like every project I've ever worked on has jumped through hoops creating a simplistic "object" model.
    I've already been down this road once (or twice). We used C++ with no boost and limited to a very small set of features (well documented). But then along came someone who just wanted to use one little thing in boost. Or some other thing no on the list.
    And then the long slide down the slippery slope began.

    1. Re:Namespaces in C by goose-incarnated · · Score: 2
      I hear you!

      Or pushing the envelope, how about a simple single-inheritance class model?

      I have this. I wrote a parser that reads in class definitions and spits out structs. Fields that are inherited from parents and marked as public are placed into the struct directly, and getters/setters are generated automatically for each field.

      It turned out less useful than I thought - for a feature to be useful it has to be part of the standard, not an add-on, else other programmers won't want to use it.

      --
      I'm a minority race. Save your vitriol for white people.
    2. Re:Namespaces in C by Drethon · · Score: 1

      Could we just have namespaces in C? Maybe reference types?

      Or pushing the envelope, how about a simple single-inheritance class model? It seems like every project I've ever worked on has jumped through hoops creating a simplistic "object" model.

      I've already been down this road once (or twice). We used C++ with no boost and limited to a very small set of features (well documented). But then along came someone who just wanted to use one little thing in boost. Or some other thing no on the list.

        And then the long slide down the slippery slope began.

      Libraries like boost all seem to be a balancing act between reinventing the wheel and having to deal with a library that does mostly what you want, but not quite the way you want.

  10. CLICKBAIT VIDEO SPAM by michaelcole · · Score: 3, Informative

    This article is a video rehash of a 6-month-old yearly survey.

    What you're looking for is here: https://www.tiobe.com/tiobe-in...

  11. VB.NET? by NerdENerd · · Score: 4, Informative

    As a 15 year .NET veteran I call bullshit on VB.NET being so popular. Nobody uses VB.NET and .NET developers laugh at you if you do.

    1. Re:VB.NET? by phantomfive · · Score: 1

      I happen to know that the US military uses VB.NET, though frankly, the whole .NET community can burn for all I care. The Javascript community is crazy, but at least they don't glorify ignorance the way the .NET community does.

      --
      "First they came for the slanderers and i said nothing."
    2. Re:VB.NET? by JoeDuncan · · Score: 1

      I happen to know that the US military uses VB.NET

      Well, that certainly explains how they spend more money on military than the entire world put together, but are still effectively useless.

    3. Re:VB.NET? by Anonymous Coward · · Score: 1

      I wrote in VB.NET between 2006 and 2012 or so... it's fine. I did eventually move to C# as I got more into javascript, since the syntaxes were similar.

      The real evil of .NET is the default components/controls - with the exception of linkbutton and placeholder they're all terrible and worthless.

  12. Most Puzzling Computer Languages by Tough+Love · · Score: 3, Insightful

    What TIOBE measures: how puzzling a language is to how many Stackoverflow members. So C++ can win, even if it used by fewer Stackoverflow members, because it is more puzzling.

    Of course, in order to have any users at all, a language must make itself useful, which C++ does by a variety of metrics, but most notably efficiency. If you care about getting the most bang for your buck out of your expensive, power hungry data center, then you hire more expensive developers and do the job in C++. If you care about lowest possible latency in a financial trading platform, again you do the job in C++. Go ahead, try it in Python. You can do it, it has been done, but you will get eaten alive in the trading jungle.

    --
    When all you have is a hammer, every problem starts to look like a thumb.
  13. Drivel of cute languages by Anonymous Coward · · Score: 3, Insightful

    Career advice: Ignore the drip drip of new rising star languages and the drivel of proponent's blog entries.

    There are jobs out there for general purpose languages only occupying a niche of the total number of programming jobs. Becoming an expert in one of those narrowly used in paid jobs languages is a hobby and not a career move.

    Case in point: Search for jobs where Ruby is the main programming language versus Cobol jobs. Cobol's been on the skids since the middle 1980s and has more jobs than many of the once over hyped programming languages of the 90s and 2000s.

    Blogs, magazines, podcasts, etc. have space to fill and it's much easier to cover the new language, library or tool of the month versus giving in depth information on a well established technology. It's why many sites gravitate to a list of links to what essentially are press releases or blog entries promoting the author's own project.

     

  14. LOL, C++ 2011: much simpler, safer and more by halfdan+the+black · · Score: 2

    LOL, C++11 has made said made C++ "much simpler, safer and more expressive." That's got to be one of the most bizarre statements I've ever read.

    More like template meta-programming has increased the language complexity by several orders of magnitude. At least you could step through pre-templatized C++ and understand control flow. With these template meta-programming, the language is completely and utterly incomprehensible, they've truly made it a "write only" language. Case in point, take a look at Eigen.

    No, C++ just needs to die, the standards committee just can't seem to figure out how to simply the language, and please the meta programming language geeks. C++ needs to die and get replaced by something like Go or Rust.

  15. Golang is the future by skinlayers · · Score: 3

    C++'s days are numbered.

    https://en.wikipedia.org/wiki/...

    "The designers were primarily motivated by their shared dislike of C++."

    References:
    "Dr. Dobb's: Interview with Ken Thompson": http://www.drdobbs.com/open-so...

    "Less is exponentially more": http://commandcenter.blogspot....

    ""The Evolution of Go": https://talks.golang.org/2015/...

    And I'm not the only one who agrees.

    "Why ESR Hates C++, Respects Java, and Thinks Go (But Not Rust) Will Replace C"
    https://slashdot.org/story/334...

    1. Re:Golang is the future by serviscope_minor · · Score: 2

      C++'s days are numbered.

      Techincally everything's days are numbered.

      "The designers were primarily motivated by their shared dislike of C++."

      Euch. You could insert "irrational" or "misinformed" into that sentnce. I use C++ a lot. I could give you a long list of complaints about it. A very long list. There are things I'd love to see fixed, or a "better" language replace it.

      That language isn't golang.

      In fact that article you posted:

      "Less is exponentially more": http://commandcenter.blogspot....

      Basically degenerates into a whiny rant about go is too awesome for C++ programmers and that's why C++ programmers have been pretty uninterested in go. It seems he can't really cope with the possibility that go isn't that amazing and certainly doesn't cover as many use cases as C++.

      "Why ESR Hates C++, Respects Java, and Thinks Go (But Not Rust) Will Replace C"

      Yeah well, ESR is a bit of a plonker. What are you going to post next? His guide to sex? (no realy this is a thing http://www.catb.org/esr/writin...)

      --
      SJW n. One who posts facts.
    2. Re:Golang is the future by squiggleslash · · Score: 1

      I'm not exactly a fan of C++, and would like to see a decent programming language take over from it, but what makes you feel that Go is that language? It's the internal programming language of one company who hasn't done anything to encourage development in Go in the projects its released. Chrome/Chromium (and Blink) is still 100% C++ (even Firefox is putting its money where its mouth is with Rust), Java is still the only first class language supported by Android, with C++ getting more support for that platform than Go.

      If Google's not going to push Go, then who is?

      --
      You are not alone. This is not normal. None of this is normal.
    3. Re:Golang is the future by squiggleslash · · Score: 1

      Yes, you're right, I forgot Kotlin, but obviously that only underlines how little support Google is giving Go.

      --
      You are not alone. This is not normal. None of this is normal.
    4. Re:Golang is the future by strikethree · · Score: 1

      The language Go is not going anywhere. I don't know how to verbalize what I am seeing in my mind, but the summary is that Go is, ultimately, a dead language.

      Here is a best effort (very bad results):
      You need to be able to address all aspects of reality for a programming language to be generically useful. Go limits the ways that you can address reality; therefore, it can never replace C or Assembler.

      It is impossible to create a powerful tool that is NOT dangerous in the wrong hands. Go is like handing a soldier a weapon that can only fire when it is in contact with a base station authorizing it to fire. Sure, it can work and be useful... but the failure modes are... hilarious (in a bad way).

      --
      "Someone needs to talk to the tree of liberty about its ghoulish drinking problem." by ohnocitizen
  16. Re:Viva C++! by mschaffer · · Score: 1

    That's very interesting! Cannot wait to see it implemented.

  17. The problem with C++: Insufficient documentation. by Futurepower(R) · · Score: 1

    "You would have to remove things from it, not just keep adding every paradigm from every other language."

    That's not the problem, in my opinion. It's good to have all the possibilities, even if they are rarely useful.

    One of the problems with C++ is that NONE of the rarely useful features are documented well. The rarely useful features should be documented with warnings about the messes that are created when they are used in a way not intended.

    I have never seen excellent documentation of ANY features of C++. People who design computer languages are apparently generally not good at professionally careful and helpful communication.

  18. Sometimes Assembly language is the easiest. by Futurepower(R) · · Score: 1

    "... all assembly across all processors..."

    Sometimes Assembly language is the simplest, most easily understood way of coding something.

  19. Interesting. Excellent point. by Futurepower(R) · · Score: 1

    Mod parent up. Excellent point:

    "The C optimizer of course has an advantage -- no one has to maintain the code it generates so it can be very obtuse w/o causing problems whereas a human writing assembly code using the same approaches would usually be rightfully castigated for writing unmaintainable code."

    1. Re:Interesting. Excellent point. by TheRaven64 · · Score: 2

      If you're starting with -Os, then your baseline is optimising for size, so presumably that's what you care about. To beat it you need to either remove instructions entirely, replace multiple instructions with a shorter sequence, or pick instructions with shorter encodings. All of these are things that are really easy to automate. Most of the bloat comes from ABI constraints, and if you pass the right flags the compiler will ignore these (e.g. omitting the frame pointer).

      If you're optimising for speed, then start with -O3. At this point the compiler has already done things like loop rotation, common subexpression elimination, and autovectorisation. You might be able to beat it, but even understanding what the code is doing for a nontrivial example is quite hard.

      --
      I am TheRaven on Soylent News
  20. Re:Viva C++! by serviscope_minor · · Score: 1

    clang and VS have imlemented it, albeit at the moment two different versions of the draft standards. GCC has a WIP implementation that's woking but not complete.

    --
    SJW n. One who posts facts.
  21. the honest ruth about value by epine · · Score: 1

    You would have to remove things from it, not just keep adding every paradigm from every other language.

    You're addressing inherent simplicity: simplicity that inheres in the object itself. Inherent simplicity is overrated.

    Not so simple: maintaining your own fork of a major development language, because a recent major release— in pursuit of round-fingered, bent-legged enlightenment—gored your ox on a multi-million-line code base.

    Our quest for simplicity is quite primal. It's often just a power move to demonstrate that you occupy the summit of the power hierarchy. Because your vaunted simplicity usually amounts to making something ugly (but very, very real) into somebody else's ugly (and very, very soul-destroying) daily slogathon.

    The C++ culture is what you get when there's an iron-clad social contract that Peter does not rob Paul.

    The direct consequence of this is that nobody can stand on the summit and gloat about their immensely refined slickitude (to hell with the peons working the actual trenches).

    As has been remarked once or twice in the history of Slashdot, C++ lacks any semblance of pointy summit of slickitude; no—father forgive me, for I have sinned—C++ lacks any possibility of a semblance of so much as a stubby, manicured outcropping of soapbox sainthood.

    The only other language I know with a similar value system is Perl 6.

    Evan Miller: A Review of Perl 6 — 13 August 2017

    It doesn't help that the purveyors of Perl 6 provide few hints as to what you should actually do with the language, besides the facile answer of whatever you want. Perl 6 is multi-paradigm, maybe omni-paradigm; it claims to support object-oriented programming, functional programming, aspect-oriented programming, array programming, and (good old) procedural programming.

    It's a new language, and not just a cleaned-up version of Perl 5, any more than English is German minus the umlauts.

    Knowledge of previous versions, alas, won't get you very far. By the same token, prejudices regarding the preceding incarnations don't necessarily hold today's water.

    The difference between C++98 and C++11 is roughly the same thirteen years that the Perl 6 development effort went almost entirely offline. Perl 6 probably shaved off no end of warts to achieve its grand synthesis of becoming all things to all people (forsaking mainly performance, though this is prudently localized—in many cases—to quality of implementation). Meanwhile, C++ dragged its crufty ass through tens of millions of battle-hardened hours in the deep trenches. Will Perl 6 ever achieve the quality of implementation required to obtain a community of critical mass, to justify the immense implementation burden? This remains hard to judge.

    I've long taken a Band of Brothers attitude toward C++.

    Yes, you can shoot yourself in the foot, if your team is some random unit of random grunts.

    But if your team is elite, and cares about being elite, you just don't shoot yourself in the foot on a daily basis, and you don't shoot your teammates in the foot hardly ever, and you go into the worst battles with the best people, and mostly you come back out alive. With C++, there's no such thing as bad weather, there's only bad clothing. The clothing is your job. Other languages do have bad weather—tasks for which the language is fundamentally unsuited—and then there's no clothing at all that will save you, and then you're fucked.

    If the guy you're sitting beside has recently graduated from a puppy mill, and has no respect for the game, you probably want to steer clear of C++ with a vengeance of extreme scorn.

    If the guy you're sitting beside has recently graduated from an ivory tower—with a raging case of L

    1. Re:the honest ruth about value by hawk · · Score: 1

      >, and you go into the worst battles with the best people, and mostly you come back out alive

      All in all, I think I'll choose a programming language that lacks an intrinsic ability to *kill me*!!!!

      *shudder*

      hawk, who has never even *worried* about dying while programming before . .

  22. Re:The problem with C++: Insufficient documentatio by vyvepe · · Score: 1

    Get a draft C++ specification. The final versions are ISO standards and not available for free. But drafts are good enough.

  23. The C++ standard is UTTER GARBAGE, says ISO CPP. by Futurepower(R) · · Score: 1

    FAQs:

    "Q: Why is the standard hard to read? I'm having trouble learning C++ from reading it.

    "The standard is not intended to teach how to use C++. Rather, it is an international treaty -- a formal, legal, and sometimes mind-numbingly detailed technical document intended primarily for people writing C++ compilers and standard library implementations.

    "Fortunately, there are lots of good books that do teach how to use C++! See these recommendations as a starting point for high-quality tutorial and reference information about how to learn and use C++."

    Free book about C++ (PDF file): A Tour of C++ by Bjarne Stroustrup.

    I doubt the problems are solved by that book. But I haven't yet investigated.

  24. Re:The C++ standard is UTTER GARBAGE, says ISO CPP by serviscope_minor · · Score: 1

    The C++ standard is UTTER GARBAGE, says ISO CPP

    You're a fuckwit says you.

    I mean that statement has about as much logic as your post.

    --
    SJW n. One who posts facts.
  25. Poor technology documentation is a HUGE problem. by Futurepower(R) · · Score: 1

    Quoting from ISO CPP: "... sometimes mind-numbingly detailed technical document..." I translated "mind-numbingly" to "utter garbage", an exaggeration, I agree.

    Poor technology documentation is a HUGE problem. "Mind-numbingly" is just one of the problems with poor documentation. Bad documentation discourages people from entering a technical field. Poor documentation sometimes makes fixing coding errors FAR more difficult.

    Also, personal attacks are unhealthy for the attacker.

  26. Re:Poor technology documentation is a HUGE problem by serviscope_minor · · Score: 1

    I translated "mind-numbingly" to "utter garbage", an exaggeration, I agree.

    So you translated one thing to something completely different. It would make sense if the ISO's job was to entertain. But it's not. Boring/exciting is not within the remit of the ISO and frankly is not an issue for standards.

    Poor technology documentation is a HUGE problem. "Mind-numbingly" is just one of the problems with poor documentation.

    Lack of precision for for a standard is a bigger problem then being boring. Much bigger.

    You're lumping in user guides, getting started tutorials with standards, which is frankly facile. The goal of a standard is not to entertain, it's so that two gery techincal groups can without talking to each other make two implementations of something which behave in a consistent manner.

    A standards documentation is needed so that I can determine if struct {int a;b;} a; &(a.a)+1; is valid.

    Also, personal attacks are unhealthy for the attacker.

    So why did you do it then? You started off on the attack about a group of people some of whom I've worked with.

    --
    SJW n. One who posts facts.