10 comments

[ 2.9 ms ] story [ 38.5 ms ] thread
Nope, the whole issue is about modern C++ in practice versus slideware at conferences.

Also chromium code base is one example from many others, and it is so modern C++ that Google has finally decided to adopt Rust as only viable alternative to improving it.

Big G has plenty of samples that aren't so modern, specially on Android. Which by the way is also moving away from C++ instead of "modernising" it.

This is just a petty digression. I won't participate further. Have a nice day.
Finally! One "modern C++" advocate less.
> Dreamer that some day all major systems programming languages will support automatic memory management.

Ironic bio for someone opposed to modern C++ advocates.

I can’t upvote this comment enough. The amount of pedantic nonsense on HN these days is disappointing. I’m not sure why I even bother to read comments here anymore.
What's your proposed alternative? What does the alternative cost? If non-zero, what mechanism would you use to disable it?
Nope. Only those with "if (this->inner_resource) { /* delete inner resource */ }" inside the destructor could count, others wouldn't.

Edit: actually, nevermind. You are (almost) right: all objects with automatic storage duration and with non-trivial destructors are, very pedantically speaking, reference counted; but objects with dynamic storage duration are not. So RAII works by leveraging the built-in very primitive and restricted (binary) form of reference counting and builds on top of it to be able to reference-count objects with dynamic storage duration as well.

This is just petty sophism. I won't participate further. Have a nice day.
Yeah, I was thinking the number of never-nudes in the world might closer to 2 dozen than 3 or 4 dozen, but I don't really know!
"C++ is to C what lung cancer is to lung".

UNIX haters handboook.