this post was submitted on 11 Oct 2023
351 points (92.5% liked)

Programmer Humor

38314 readers
30 users here now

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

Rules:

founded 6 years ago
MODERATORS
351
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 78 points 2 years ago (3 children)

Why are clang and gcc the wrong way around?

[–] [email protected] 54 points 2 years ago (3 children)

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.

[–] [email protected] 46 points 2 years ago (1 children)

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

[–] [email protected] 4 points 2 years ago (1 children)

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

[–] [email protected] 4 points 2 years ago

What if Reddit was just the friends we made along the way?

[–] [email protected] 3 points 2 years ago

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.

[–] [email protected] 2 points 2 years ago

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

[–] [email protected] 12 points 2 years ago (1 children)

gcc has typeof, which is pretty neat.

[–] Sonotsugipaa 2 points 2 years ago (1 children)

Is it any different from the standard decltype?

[–] [email protected] 4 points 2 years ago

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.