r/ProgrammerHumor • • 16h ago

Meme unityHasBeenAchievedByCompilerDevs

Post image
145 Upvotes

16 comments sorted by

41

u/FishWash 13h ago

No no unity is C#

11

u/deanrihpee 5h ago

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

37

u/hpyfox 16h 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.

•

u/nimrag_is_coming 0m 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

25

u/Legal-Software 16h ago • Bravo

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

6

u/realrealvantheman 14h ago

Holy bro how many languages does this guy know

6

u/fr000gs 6h ago

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

11

u/deanrihpee 5h ago

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

1

u/gerbosan 5h ago

Thin?

1

u/MissinqLink 2h ago

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

3

u/RealSlyck 15h ago

Versus JavaScript, they might as well be WinkleVii.

3

u/Percolator2020 10h ago

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

3

u/satansprinter 8h ago

I just want c with namespaces and structs with methods

2

u/JackNotOLantern 3h 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/stupled 6h ago

Is all C underwraps

0

u/Chingiz11 1h ago

TCC would beg to differ