Is C++ good?

Is C++ good?

Attached: chadstrup.png (900x879, 235.27K)

Other urls found in this thread:

kristoff.it/blog/zig-colorblind-async-await/
ziglearn.org/
twitter.com/NSFWRedditGif

Wonder if that actually happened.

No, but it's the best we have
The Committee is a bunch of trigger happy retards that keep throwing new language features and libraries on the pile of shit every 2 years

no
if you wanna go object oriented, there's a billion better options

It fucking needs them user. It needs new stuff to replace all the godawful shit that's in there.

No it's horrible, the best language that exists.
Rust is almost perfect but it comes with a built in package manager which is retarded and also the ecosystem is not mature.

>it comes with a built in package manager
And what's bad with that?

It's official: Bjarne is based. C++ got out of control though.

>replace
if only

C++ is great the only reason freetards or ctards don't like it is because it doesn't work well opensource projects.

I don't want yet another package manager. It's not the job of a programming language to focus on package management. People already have package managers on their system to do that.

Aren't they just turning parts of the boost library into official language extensions?

C++ is a a monstrosity and abomination, a study in accidental complexity and feature creep. The standard is self-contradictory in some places and contains some problems that can only be explained away through what borders on religious exegesis of the text and a copingly hoping that gcc/clang/msvs got it right, because no one even knows if it is undefined or not. Examples: std::vector is technically not implementable because it contains UB relating to the possibility of the vector's element type having const members. Unions are broken. You cannot access byte representation except with memcopy because casting to char* is UB. Everybody does it though. If you want to lose your will to live, as I have, look for the "language lawyer" and "C++" tags on SO.

That being said. Rust can get fucked, C++ is still the superior choice and in 10 years, C++27 will still be better than Rust bullshit. (And Rust will still not have a memory model.)

>casting to char* is UB
it says its fine in c++17

I love it

You work in C
C++ makes you the king

Can anyone recommend any books etc for a C# dev learning C++? A lot of books on Google are the other way round, C++ devs learning C#.

just learn it from normal books, you should recognise patterns that both languages have making learning it easy

a language/framework level package manager makes sense for cross-platform

cppcons are literally full of PRESENTING trannies nowadays.
It's trannified as anything else.
>Is C++ good?
It's the best language for system-level development except on specialized hardware which can't handle its runtime.
It's vastly superior to C in every single way except that specific niche.
But for all other purposes, it's mildling at best.

There's another tweet where he says that he wasn't visibly a tranny at the time it happened
No, learn Rust

wrong
casting to char* and also std::byte* are fine for accessing internal representation, it doesn't violate strict aliasing
also we have std::bit_cast

>Is C++ good?
It is not. It's comptime templates are hell to deal with and there's no default multithreading event loop pool like Zig. Just look at what Zig gives you that C++ barely even matches.

>concurrency
Built in event loop style N:M threading, just like Go. Just add one line of code and you're able to run millions of coroutines with ease. Solving the C10k (and C10M) problem was never easier.

pub const io_mode = .evented;

kristoff.it/blog/zig-colorblind-async-await/

>performance
It's a compiled language with a backend that uses LLVM, so it has all of the optimizations that Clang will ever give you in C/C++. No slow or unpredictable GC, so you can be sure there won't be any GC lag spikes. No more worrying about the 95% percentile response times!

Tired of memory management? Just use the 'defer' keyword user, EZ RAII style cleanup. Want to be be even lazier? Have a single arena allocator scoped per HTTP request and forget about memory management entirely!

>Is C++ good?
Just embrace the future old man, and head on over to ziglearn.org/ to get started! Need help? IRC is #zig on libera.chat.

pub fn helloWorld(req: Request, res: Response) !void {
try res.print("Hello {}!", req.queryParam("name") orelse "World");
}