Live data from Hacker News

C++20, How Hard Could It Be

docs.google.com

11–20 of 444 posts

Re: C++20, How Hard Could It Be

#11
post #6

Is there a case for or against incrementally adopting Rust ?

They are experimenting https://chromium.googlesource.com/chromium/src/+/refs/heads/...

Is there any common module that can be shared amongst browser engines? I can feel though it sounds hard to extract these common stuff into .. "browser engine common core"? (e.g. https://github.com/SerenityOS/serenity/tree/master/Userland/...). That would be nice for next gen browser invention.

Re: C++20, How Hard Could It Be

#12
Very useful presentation. Full of details, but easy to consume.

On voices against stripped down C++ (via code style): I find it working great in practice. Makes the codebase manageable, and keeps people away from using unnecessary complex language features (imagine Java code heavy with streams or reflection, or Python code that resolves most of dependencies at runtime, javascript full of eval(), etc.). Switching to a new language is half-baked plan.

Re: C++20, How Hard Could It Be

#13
post #2

Writing Chromium grade C++ seems like a hard job with all these extrinsic rules and regulations to make it work

You'll see these kind of rules at every place that cares about their C++ codebase. It's just not a language like Java, C# or JS where you can throw stuff at the wall and it'll probably work out.

Re: C++20, How Hard Could It Be

#16
It is so ironic, that now that Apple and Google decided to focus on their own language stacks, the C and C++ compiler vendors that profit from clang's license aren't that keen in making the upstream work for catching up with ISO C++.

Thus making the once famous clang having an honorable third place in ISO C++ compliancy.

Seeing this from a Google team makes it even more ironic.

Re: C++20, How Hard Could It Be

#17
post #6

Earlier quoted context omitted.

They are experimenting https://chromium.googlesource.com/chromium/src/+/refs/heads/...

Is there any common module that can be shared amongst browser engines? I can feel though it sounds hard to extract these common stuff into .. "browser engine common core"? (e.g. https://github.com/SerenityOS/serenity/tree/master/Userland/... ). That would be nice for next gen browser invention.

No post body was provided.

Re: C++20, How Hard Could It Be

#19
post #8

Is one release really causing so many problems? I thought C++ treated backwards compatibility as a holy thing.

From what I can gather, a majority of the problems reported there are new compiler warnings being triggered. Especially if you enable all compiler warnings to catch potential defects, any upgrade to a new compiler version will typically introduce a ton of new warnings that you have to work around.

Edit: There are also quite a few deprecation warnings, which are also not errors per se, but nevertheless you'd want to avoid using deprecated stuff of course.

Post reply on HN