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

77 points

Why are clang and gcc the wrong way around?

permalink
report
reply
54 points

I’m a gcc user partly because of the optimization. I mean it’s a pretty small difference. But still for scientific stuff gcc is slightly better I think. There’s not much difference though and it basically comes to personal preference.

permalink
report
parent
reply
46 points

I am in full agreement. My comment was purely for spiciness. How dare you respond with rational and agreeable points. Good day sir!

permalink
report
parent
reply
4 points

every day i become less and less sure that i actually left reddit

permalink
report
parent
reply
3 points

I haven’t dealt with HPC in a while, but Intel C compiler against MKL libraries were fastest CPU, and Nvidia CUDA was slightly easier to develop than OpenCL for other cards. I’m not sure if the situation’s changed.

For my current applications, I use NumPy compiled against Intel MKV installed as a binary. It works great.

permalink
report
parent
reply
2 points

For not that performance intensive stuff I would use clang though.

permalink
report
parent
reply
24 points
*
Deleted by creator
permalink
report
parent
reply
13 points

A fair and proportionate response.

Ow my eyes

permalink
report
parent
reply
9 points

I will give you an upvote instead of the other guy since he stole your idea.

permalink
report
parent
reply
12 points

gcc has typeof, which is pretty neat.

permalink
report
parent
reply
2 points

Is it any different from the standard decltype?

permalink
report
parent
reply
3 points

Good question. I didn’t know about decltype. I guess they are slightly different in that decltype will also produce a type reference. Typeof just produces the type, even if you call on a reference.

permalink
report
parent
reply
43 points

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.

permalink
report
reply
7 points

Its part of the EEE plan. They always have to be that.

permalink
report
parent
reply
18 points

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

permalink
report
parent
reply
30 points

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.

permalink
report
reply

[This comment has been deleted by an automated system]

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
28 points

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

I tell you: MSVC is batshit crazy

permalink
report
reply
6 points

its not that hard, its just CVSM

permalink
report
parent
reply
22 points

Everything Microsoft creates is so hard to automate.

permalink
report
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5K

    Monthly active users

  • 1.5K

    Posts

  • 33K

    Comments