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

Programmer Humor

32721 readers
701 users here now

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

Rules:

founded 5 years ago
MODERATORS
351
submitted 1 year ago* (last edited 1 year 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 1 year ago (3 children)

Why are clang and gcc the wrong way around?

[–] [email protected] 54 points 1 year 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 1 year 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 1 year ago (1 children)

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

[–] [email protected] 4 points 1 year ago

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

[–] [email protected] 3 points 1 year 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 1 year ago

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

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

gcc has typeof, which is pretty neat.

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

Is it any different from the standard decltype?

[–] [email protected] 4 points 1 year 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.