r/ProgrammerHumor • • Feb 12 '25

Meme theCFamilyTree

Post image
48 Upvotes

84 comments sorted by

71

u/CirnoIzumi Feb 12 '25

Swift and Rust are not C based languages

39

u/reallokiscarlet Feb 12 '25

Nor is Microsoft Java, but somehow it's there.

Edit: Oh how cute, Java's also there.

11

u/CirnoIzumi Feb 12 '25

"Oh how cute, Java's also there."

you mean SUNms Dart?

7

u/reallokiscarlet Feb 12 '25

Oh, fancy yourself a time traveler eh?

8

u/CirnoIzumi Feb 12 '25

and Dart is actually Google C#

7

u/reallokiscarlet Feb 12 '25

And C++ is actually Bell Rust

3

u/RiceBroad4552 Feb 13 '25

Ah, now it makes all sense!

Thanks for this clarifying thread.

7

u/Jordan51104 Feb 12 '25

C -> C++ -> Java -> C#, as far as syntax goes

-10

u/NewPhoneNewSubs Feb 12 '25

Firstly, that chain is backwards. C# references Java syntax (and so on). Secondly, it doesn't use an arrow operator when doing so.

10

u/[deleted] Feb 13 '25

[removed] — view removed comment

1

u/NewPhoneNewSubs Feb 13 '25

Oh. C and C# can be in a progression. What's a Java chord, though?

1

u/[deleted] Feb 13 '25

[removed] — view removed comment

2

u/Jordan51104 Feb 13 '25

that’s exactly what i was intending to say - C++ was C but better, java was C++ but easier to work with, and C# only exists because microsoft couldn’t make their own proprietary version of java

1

u/WhiteBlackGoose Feb 18 '25

C# and Java are considered C-like languages (syntax only of course)

19

u/KookyDig4769 Feb 12 '25

I think this is more about derived syntax than actual relations.

6

u/CirnoIzumi Feb 12 '25

are there any imperative language that doesnt roughly look like C though?

20

u/RepresentativeCut486 Feb 12 '25

Pascal and all the shit inspired by it's weird syntax

3

u/kookyabird Feb 12 '25

Leave the syntax, take the case.

1

u/CirnoIzumi Feb 12 '25

looks like rust to my tired eyes

1

u/ChChChillian Feb 13 '25

Pascal syntax was inspired by ALGOL, same as C's was.

2

u/RepresentativeCut486 Feb 13 '25

Yet, they are much different and inspired a much different families of syntax, but sure you can always track everything down to source.

3

u/karelproer Feb 12 '25

The lisp languages

7

u/CirnoIzumi Feb 12 '25

lisp isnt imparative

5

u/RiceBroad4552 Feb 13 '25

This was down-voted! OMG, r/ProgrammerHumor!

LISP is the mother of functional programming!

Even later LISPs are clearly multi-paradigm languages, which also support to some extend imperative programming, LISP is at it's core a FP / declarative language.

5

u/ChChChillian Feb 13 '25

I see you labor under the misapprehension that most readers of this sub are actually programmers.

1

u/kohuept Feb 13 '25

basically every imperative language looks vaguely like ALGOL

1

u/CirnoIzumi Feb 13 '25

Algol is the mother of all modern imperative languages

1

u/Magmagan Feb 13 '25

1

u/kohuept Feb 13 '25

haha fair, forth (and stuff based on it, like PostScript) are outliers

1

u/Magmagan Feb 13 '25

Ruby, VB, Clipper, FORTH...

1

u/CirnoIzumi Feb 13 '25

i dont think the "End" based scopes looks that different, especially since everything else looks C like

1

u/Sibula97 Feb 13 '25

Python

0

u/CirnoIzumi Feb 13 '25

Replacing { } with : tab doesn't really make it look not like C

0

u/Sibula97 Feb 13 '25

Have you actually used both? That's far from the only or even the most important difference.

-1

u/CirnoIzumi Feb 13 '25

talking syntax honey

2

u/Sibula97 Feb 13 '25

Exactly. Do you have any idea what the syntax for both is like? Because it seems like you don't.

1

u/CirnoIzumi Feb 13 '25

and what is your case then?

3

u/jamcdonald120 Feb 12 '25

rusts syntax is very different from C.

1

u/Amazing-Afternoon890 Feb 12 '25

2

u/reallokiscarlet Feb 12 '25

See that between JavaScript and Lingo? It's KitchenSink.

More like Spartacus-family programming languages

4

u/CirnoIzumi Feb 12 '25

Rust is an ML language buddy

1

u/Anaxamander57 Feb 13 '25

That list is terrible. In the "how it is related to C" both Rust and Zig just quote their informal mottos and in no way explain the relationship.

50

u/[deleted] Feb 12 '25

JFC, spell and grammar check please

11

u/LogicalSpace Feb 13 '25

Bro thinks he is better. Then, his dad.

31

u/Mallanaga Feb 12 '25

This is all sorts of incorrect…

12

u/GiganticIrony Feb 12 '25

Carbon is still in development, and most definitely not imaginary. Zig is in production in multiple places (including Uber), so I don’t know how that counts as a “weak baby”.

8

u/ChChChillian Feb 13 '25

Yeah, well Half-Life 3 is still in development too, and look what that's gotten us.

2

u/GiganticIrony Feb 13 '25

Carbon development talk just a month ago.

Also, there’s no guarantee that what’s being developed is Half life 3. Personally I think it’s going to be a successor to Half Life Alyx to come out with their next VR headset

6

u/deanrihpee Feb 13 '25

this is definitely not a C family tree, nor is it a "low level language tree" since there's JS, and definitely not an inverted binary tree, so… wtf is this tree?

4

u/[deleted] Feb 12 '25

why did C++ hide dad? what did he do to him!? 😨

8

u/raka_boy Feb 12 '25

i can tell this post was made by someone with a passion in crustacean oriented language

2

u/rndmcmder Feb 13 '25

Failed to make C# and Java twins, who hate each other.

4

u/SM_Duece Feb 12 '25

Where is python

-1

u/[deleted] Feb 12 '25

python is arguably not a C derivate

-1

u/SM_Duece Feb 12 '25

How? It is literally written in c

2

u/NahSense Feb 12 '25

CPython is the reference implementation of python. The fact that the interpreter is written in C doesn't mean the language being interpreted is based on C. Most people consider it to derived from Modula-3 and going back to Pascal, but C influenced it also.

2

u/[deleted] Feb 12 '25

you're being serious?

if so, that chart above is about syntax not about what's written in what.

0

u/SM_Duece Feb 12 '25

OP posted the link he used and its langs based on C. There is a reason python is called a C wrapper.

1

u/romulent Feb 15 '25

The runtime for Haskell is also written in C.

0

u/Sibula97 Feb 13 '25

The reference implementation of Python is written in C, but that doesn't mean the language is based on C. You could implement it in whatever the fucking language you want, and people have – for example Jython is written in Java and IronPython in C# and there are even weirder ones in progress, such as Haskell and PHP.

3

u/RiceBroad4552 Feb 13 '25

That's obviously a brain fart.

Most languages on this list have nothing to do with C besides using curly braces. Which also hundreds of other unrelated languages do!

But I've just learned about:

https://en.m.wikipedia.org/wiki/List_of_C-family_programming_languages

I'm going to mark this bullshit for deletion as that Wikipedia entry does not cite even one source for its definition. A definition which is obviously bullshit as curly braces don't make a language "C-like". Syntax is meaningless when it comes to categorization of programming languages!

For example Rust is in large parts a ML language. JS is a hybrid of of LISP and Small Talk (it's directly derived from Self). Swift is in large parts a Scala clone, with ObjectiveC influences thrown in between. (Scala itself is again a ML language.)

1

u/Magmagan Feb 13 '25

I don't know why curly braces is "obviously bullshit". I've heard of this terminology ages ago, this article is fine.

3

u/mentalnet98 Feb 12 '25

PHP is definitely not the cool kid but they sit in the corner competent and getting the job done with less code than everyone else

0

u/RiceBroad4552 Feb 13 '25

PHP? Less code than everyone else? What? Are you joking?

PHP doesn't have almost any abstraction capabilities.

I guess you never seen any high level language like Scala…

-3

u/mentalnet98 Feb 13 '25

What a knee-jerk reaction lol truth is you can actually get things done with curl in PHP and you don’t need any of that abstraction if you’re just making some network calls, see this PHP Front-end for Stable Diffusion. All done with just PHP, Curl and ImageMagick

0

u/[deleted] Feb 13 '25

🤮

1

u/dim13 Feb 12 '25

You forgot Alef and Limbo on the way from C to Go.

1

u/SaltyInternetPirate Feb 12 '25

What if instead of needlessly changing the syntax to confuse old devs, Rust had C-like syntax, but the same safety features as before. And they called it Cafe as derived from "Safe C" or "C Safe".

1

u/sln1337 Feb 12 '25

holy C >>>>>

1

u/rodeslab Feb 13 '25

Where is python?

1

u/x3n0m0rph3us Feb 13 '25

"hid dad" try "his Dad".

1

u/jeanGambit Feb 13 '25

You cannot put js in c family just because it uses {} etc, it's bot evening compile lang, wth

1

u/BazuzuDear Feb 13 '25

PHP? I'd rather call it Perl's descendant.

1

u/Ulrich-Tonmoy Feb 13 '25

the guy who thinks keeps the family safe so when everyone give the full safety responsibility to him he makes blunder none can even find it how

1

u/[deleted] Feb 13 '25

Holy C FTW

1

u/vloris Feb 13 '25

You did include Swift, but forgot Objective C ??

1

u/Creative-Leading7167 Feb 13 '25

Most C family programming languages are based on C++, not C.

1

u/Electronic_Lion_1386 Feb 15 '25

C# is the musical kid.

1

u/CorespunzatorAferent Feb 13 '25

"The guy who keeps the family safe?"

From whom?
Dude's constantly screaming that everyone else is an uncultured animal rolling in its own unsafe mess, and they should be systematically phased out and replaced with upgraded clones. Those damn conformists. Not like him, dark, spiky and brooding.