r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

429

u/Keatosis Jan 28 '23

Being a game Dev in a general programming sub is like being the one American in a group of British people. We all speak the same language but I feel like I'll be stabbed to death at any moment.

I like C++ it's good for games.

95

u/moops__ Jan 28 '23

I work with C++ in computer vision and it's great. When performance is important it becomes easier to work in C++. Maybe Rust will replace it one day but it's not there yet.

4

u/Legendary-69420 Jan 28 '23

what library do you use for computer vision in c++?

7

u/aiusepsi Jan 28 '23

Almost certainly OpenCV.

0

u/Legendary-69420 Jan 29 '23

I didn't know that opencv is available for cpp. I thought it is available for only Python đŸ˜…

→ More replies (2)

2

u/GonziHere Jan 29 '23

Maybe Rust will replace it one day but it's not there yet.

I'm just toying with Rust at side, but why do you think so? What would be the showstopper that would prevent porting something like UE to Rust? Because I don't see it. For me, rust is there already, it's just that porting millions of LOC isn't simple :D

→ More replies (1)

59

u/TheAlexGoodlife Jan 28 '23

Its the only real good language for graphics programming really. C is also a contender but C++ has so many libraries that make the job easier

12

u/[deleted] Jan 28 '23

Rust will get there, but unfortunately the ecosystem is not mature enough for now.

8

u/Smash-Gordon Jan 28 '23

I heard Rust support for Godot engine is getting pretty good.

15

u/Dissidente-Perenne Jan 28 '23

It's been 40 years, all the languages that claimed to be the "C++ killer" are long dead now, Rust will be the same.

2

u/[deleted] Jan 28 '23

I am seeing more jobs around here saying they need Rust developers. Mostly power sector, and O&G and things like that. On a somewhat related note, I just think the actual code is ugly as hell. It looks like 4 different languages crammed together. Cargo seems pretty decent though.

→ More replies (1)

2

u/thesilican Jan 28 '23

What languages have claimed to be a "C++ killer"?

2

u/8day Jan 28 '23

Search for C++ killer in Google, and it'll give you any language you want: D, go, Carbon, Rust, etc. Though can't say if authors of any of these languages claimed this, but their users sure tend to see them as replacements.

P.S. How could I forget about Java...

→ More replies (2)
→ More replies (1)

9

u/BigBearSpecialFish Jan 28 '23

Work in particle physics and c++ is always the language of choice for us too. When you need to do very specific tasks very quickly it's hard to beat

2

u/Shayshunk Jan 28 '23

Yup! GEANT4 and ROOT use C++ and do things blazing fast compared to if nearly any other language were trying to achieve the same thing.

For example, my optical simulation with graphical rendering can throw 1 million photons in less than ten seconds on a single CPU thread.

6

u/SeroWriter Jan 28 '23

It feels like a completely different language when used for games. But that's probably because you don't have to edge near the dark parts.

8

u/bouchandre Jan 28 '23

C++ and C# both great for games

5

u/FlakeEater Jan 28 '23

I love c# for tools, there isn't a language better suited for it imo. But the engines that use c# will never be on par with UE so c++ is king for games.

6

u/bouchandre Jan 28 '23

Performance wise, that’s true. However for many games, C# is perfectly capable. The language is also easier to learn.

4

u/Philias2 Jan 28 '23 edited Jan 28 '23

You think Americans are in imminent danger of getting stabbed if they're among British people?

5

u/Keatosis Jan 28 '23

No I think C++ people are in imminent danger of being stabbed by rust users

4

u/ELFAHBEHT_SOOP Jan 28 '23

The dark depths of C++ is full of many mysteries, but if you don't venture too far into it then it's a fine language.

I do firmware in C++ and feel exactly the same. We have to employ many tricks to keep memory allocation static, so our code is certainly strange.

2

u/bigheadasian1998 Jan 28 '23

Basically anything that’s needs real time performance. Here in AV industry everyone uses C++. Maybe except those experimenting perception learning networks in Python.

1

u/Darth_Noox Jan 29 '23

Accurate way of putting it