Used all of these three. I don’t want to even look at MS Visual C/C++ ecosystem.

  • Treeniks@lemmy.ml
    link
    fedilink
    arrow-up
    42
    arrow-down
    6
    ·
    9 months ago

    Actually when it comes to C++ 23 library features, MSVC is ahead of both. In fact, as far as I can tell, MSVC is the only compiler that fully supports all C++ 20 core language features at the moment. So credit where credit is due, MSVC has gotten way way better the past few years. Visual Studio is still awful, but the compiler has become quite competent.

      • Vilian@lemmy.ca
        link
        fedilink
        arrow-up
        17
        ·
        9 months ago

        they can’t compete with clang and gcc anymore, not with proprietary compilers, there is a fuck tons of companies using gcc and clang, and investing in thoses, microsoft can force it’s users, but can’t with apple and google etc

  • JGrffn@lemmy.ml
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    9 months ago

    I haven’t touched compilers in a while, but I was a dirty little MS pig boy back in college. Qt with MSVC just made sense for me, with the single exception of non standard byte lengths for longs (almost cost me a class due to not using std uints, totally my bad but you don’t really expect compilers to understand basic data types differently).

    The true shitfuckassface experience for me was ICC. Stupid little pig boy decided he wanted his Qt working with ICC, due to all dem optimizations for Intel CPUs. After hours of debugging nonsense errors and janking my way through Qt code which was way above my head, I finally got a Qt build, only to have ICC find thousands of completely removed errors in a project where no other compiler would find errors.

    Yeah that was the day I stopped caring for C++, stopped licking intel’s ass, and started getting ever so slightly radicalized due to the lies of the republic.

    • Skull giver@popplesburger.hilciferous.nl
      link
      fedilink
      arrow-up
      7
      ·
      9 months ago

      The non standard byte lengths Microsoft still maintains are all perfectly valid within the C/C++ spec. They sure chose interesting defaults, but the issue is that the language spec basically defines a byte and says “as long as short is shorter than int and long isn’t shorter than int you’re probably good, good luck lol”.

      Microsoft did royally fuck up with VC++ 6 adding tons of non standard extensions in ways that weren’t immediately recognisable (though they were improvements tk the language) but they’ve mostly corrected themselves since.

      If data structures weren’t working with MSVC, you’re probably working with non-portable code in the first place. Don’t assume an int is 32 bits long! I’ve tried compiling a library or two for microcontrollers and people sure like to pretend that the standard defines them to be 32 bit at minimum! Why can’t people usebint32_t if they need to hold numbers of a certain size, for fuck’s sake.

      It’s pretty funny how MSVC went from “invented their own dialect” to “one of the most complete compilers when it comes to modern standards”. Their error messages have improved massively as well. Their tools just don’t do Linux or obscure architectures, malking them a rather regrettable choice for many open source projects out there.

      • JGrffn@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        If data structures weren’t working with MSVC, you’re probably working with non-portable code in the first place. Don’t assume an int is 32 bits long!

        Oh absolutely! I was starting out during this time, and started using memcpy for a uni project, hardcoding byte sizes to what I assumed long’s size was, instead of checking or using standardized data types (because I didn’t even know they existed). The result was such a mess, exacerbated by the good ol “let’s write it all in one go and run it when we’re done”. Boy did I suffer in that class.

  • clearleaf@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    9 months ago

    The only way I can ever get stuff to compile on windows is MSVC but I don’t like having to install the entire .net cinematic universe. It’s no android but christ on a cracker man.

  • dzervas@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    9 months ago

    I’m usually on the flip side of C/C++ compilers: reversing

    I tell you: MSVC is batshit crazy

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    9 months ago

    MSVC is pretty solid. Much better than GCC in some ways. You just have to use Visual Studio or maybe CLion to work with it because their command line build tools kind of suck.

    Then again, plenty of people pretend configure.sh and Makefiles are perfectly user friendly tools, so MSVC isn’t that bad in comparison.

  • bisserkr@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    2
    ·
    9 months ago

    Why is it that whenever there’s a compiler problem at work, it’s always gcc and clang, and not the other way around.