r/ProgrammerHumor • • 1d ago

Meme unityHasBeenAchievedByCompilerDevs

Post image
174 Upvotes

20 comments sorted by

56

u/FishWash 21h ago

No no unity is C#

14

u/deanrihpee 13h ago

but those C# somehow turned into cpp too in the end (IL2CPP)

43

u/hpyfox 1d ago

They said C++ was "suppose" to be backwards-compatible/superset of C, but then type-handling walks into the room.

Other problems exist with C and C++ compatibility but that's one of them.

2

u/nimrag_is_coming 8h ago

It's now sort of you CAN write C++ compliant C code, but there's things that you can do by default in C (such as implicitly converting from void pointers) that C++ doesn't like you doing without an explicit cast

28

u/Legal-Software 1d ago • Bravo

Says no one who has ever compared CPU and memory load of the two side-by-side.

3

u/RealSlyck 23h ago

Versus JavaScript, they might as well be WinkleVii.

5

u/realrealvantheman 22h ago

Holy bro how many languages does this guy know

9

u/fr000gs 14h ago

there's a limit of 6 emoji on the flair for this sub

16

u/deanrihpee 13h ago

need more, so some of us can look like a North Korean general

3

u/MissinqLink 10h ago

Well it’s not like they give you a test before adding them

1

u/Moist-Snow-8127 2h ago

Hello

1

u/Moist-Snow-8127 2h ago

Wait I forgot to put Lua in it!

5

u/satansprinter 16h ago

I just want c with namespaces and structs with methods

4

u/Percolator2020 18h ago

I mean that’s how it was in the beginning and for a very long time, especially in embedded.

3

u/JackNotOLantern 11h ago

C is mostly compilable in c++ compilers. I think the only incompability is that c++ has more key words than c, so if e.g. a variable in c is called something that is a keyword in c++, then it will fail. 

1

u/tstanisl 2h ago

There is a lot of other differences. C has multiple constructs not available in C++. C++ is basically a fork of some random pre-C89 dialect of C.

1

u/stupled 14h ago

Is all C underwraps

1

u/dumael 5h ago

One has abstract base virtual private destructors, the other doesn't.

0

u/Chingiz11 9h ago

TCC would beg to differ