7 ms·
can we just move on from C/C++ already
by natsucks 3y ago
can we just move on from C/C++ already
- jimbob45 3y agoWe can't even move past FORTRAN and Cobol, let alone C/++.
- petschge 3y agoWhy would we want to move away from them? Fortran is VERY good at what it is intended for (implementing formulas in code).
- bee_rider 3y agoFortran added the most important OO feature, methods bound to types, around 2003. Therefore, it is a more modern object oriented language than C++, in the sense that the object oriented features were Frankensteind on more recently. So maybe we could move past C++ to it.
- mgaunard 3y agowhy? is there a real alternative? (no there isn't)
- LAC-Tech 3y agoZig is getting there. Very ergonomic at doing the kind of bit bashing stuff people might reach to C for. It's about as easy to use C libraries in Zig as it is in C++.
- FpUser 3y agoWhat is holding you? And if you mean the rest of us - live and let live.
- natsucks 3y agoWhat's holding me? People writing software who are choosing C/C++ for legacy reasons only.
- FpUser 3y agoI do not use C++ just for legacy reasons. And frankly I do not give a flying fuck about holding people like yourself. You are free to do as you please, do not expect others to provide for you.
- deleted 3y ago[deleted]
- prosqlinjector 3y agoCurrently employed writing new C++ btw.
- omgmajk 3y agoCurrently employed writing new C btw. It's not holding me back one bit.
- JohnFen 3y agoWhen I use C or C++, it's certainly not for legacy reasons. And my use of it doesn't prevent you from using a different language.
- Conscat 3y agoOther languages need tooling and featurefulness that is overall on par with C++ first. So far no low level language has profilers and debuggers that are as good, none have nearly as many compiler hints, and most are far harder to write zero overhead abstractions in. Not all developers need these tools all the time, but their availability is what keeps C++ attractive.
- ActorNightly 3y agoC no. Linux is C, and it works well. C++ yes, there is no real reason to use C++ anymore outside of big libraries that require it.
- jltsiren 3y agoThere is no real reason to use C++ anymore, except that it's often the only language you can practically use. Or, in other words, you end up using C++ because there are too many people designing new programming languages and too few people writing libraries for the existing languages.
- geertj 3y ago> C++ yes, there is no real reason to use C++ anymore outside of big libraries that require it. Some of us like C++ because it gives us a the freedom to work at the lowest level when we need to, while also giving us plenty of higher level APIs for most day to day situations, while having great compatibility with tons of software that is already out there. It seems we are at peak Rust fanboyism these days. I have nothing against Rust but the idea that Rust has already replaced C++, or will certainly do so in the future, is ludicrous. C++ has a ton of activity in the standards committee and has very interesting developments like cppfront. It is a vibrant community that continues to reinvent itself and in all likelihood is a lot larger than the Rust community.
- morning-coffee 3y agoAs a C++ programmer since 1992, all through the 90's and oughts, I picked up Rust in 2019 or so... I'm not suggesting Rust has replaced C++, but IMHO, the writing is on the wall that C++ is past the point of saving. There has been a ton of activity in the standards committee since C++03, but "a ton of activity" has not been sufficient to save it thus far... I guess we can always keep hoping. Meanwhile, I can write more and more safe code in Rust that performs like C++ or better and "just works" while cppfront tries to gain traction. For me, it's not so much fanboyism as pragmatism... C++ has had its run, but life is short and I'm tired of waiting for the committee to stop adding features and start addressing UB and mutation in the presence of aliasing.
- Guvante 3y agoYou don't just "move on" from a multi million line code base. Hell everything only works by interoping with those languages given the OS is written in one of them.