r/cpp • • Apr 24 '20

C++ Fork?

Let me start by simply saying that I am fairly new to C++ and this is the first time I am posting to this sub-Reddit. I hope I am not breaking any rules here.

I have a question:

Would it be possible for C++ to be forked into a newer more modern version like the way Python went from version 2.x to 3.x? Maybe clean-up the language a bit, remove some redundant features etc.

0 Upvotes

51 comments sorted by

View all comments

Show parent comments

23

u/bizwig Apr 24 '20

Whatever D’s other merits, garbage collection was a bridge too far for a lot of potential adoptees.

10

u/echidnas_arf Apr 24 '20

I think it's a fascinating example of how chasing the current fashion in language design can ultimately have detrimental effects.

Garbage collection used to be all the rage in the Java heydays of early 2000s. Not so much today eh :)

4

u/sindisil Apr 24 '20

Yup.

You certainly don't see ubiquitous use of GCed language implementations these days.

/frantically-trying-to-push-JVM/CLR/JavaScript/Python/Swift- back-behind-a-curtain

4

u/echidnas_arf Apr 25 '20

Fair enough :)

I should have contextualized my comment better. What I meant to say is that GC was at one point seen by many to be a mandatory feature to be implemented by all existing/future languages, including C++ and other close-to-the-metal, "zero-overhead" languages. 15-20 years later, nobody misses a GC in C++ (yes yes I know SOMEONE somewhere does), popular new languages don't have a GC (rust) and people on reddit call the reliance of D on a GC "a bridge too far".

(Of course we could spend lost of time trying to define exactly what can and cannot be considered a GC...)

1

u/sindisil Apr 25 '20

Well, GC certainly makes some data structures much easier to implement, especially for those that are concurrent or lock free, so there's that.

And yes, unfortunately there's plenty of "well actually" that pops up around GC and ARC.

I don't prefer GC in most cases myself, but it's hard to say it isn't the prevalent memory management mechanism these days.