this post was submitted on 11 Oct 2023
348 points (92.2% liked)

Programmer Humor

32426 readers
581 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

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
[–] killeronthecorner@lemmy.world 77 points 1 year ago (3 children)

Why are clang and gcc the wrong way around?

[–] AapoL@sopuli.xyz 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.

[–] killeronthecorner@lemmy.world 45 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!

[–] AVincentInSpace@pawb.social 1 points 1 year ago

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

[–] kale@lemmy.zip 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.

[–] AapoL@sopuli.xyz 2 points 1 year ago

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

[–] ale@lemmy.world 12 points 1 year ago (1 children)

gcc has typeof, which is pretty neat.

[–] Sonotsugipaa@lemmy.dbzer0.com 2 points 1 year ago (1 children)

Is it any different from the standard decltype?

[–] ale@lemmy.world 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.