Better HN
topnewbestaskshowjobs
Log inSign up

MFHava

57 karma · joined Mar 10, 2026 (8mo ago) · 26 submissions

Submissions

comment 5h ago · link · parent

> [...] but the JS stdlib is tiny.

As a complete outsider to that environment: is there no way to grow the official stdlib and therefore reduce the need for external dependencies?

comment 3d ago · link · parent

Those settings wouldn't be needed if Windows wouldn't insist on rebooting itself ...

comment 2w ago · link · parent

> It's hard to imagine that the feature would require 56 (!!) pages of specifications if the constness rule were omitted. Who the heck ordered that!!??

The better question you should ask is: who determined that number and put it in their paper with a straight face?

Yes, the section on wording in P2900 is physically 56 pages. That's not 56 pages of new wording though.

For those unaware: Wording is always presented as a diff to the working draft. Apart from new sections that have to be added for contracts, those 56 pages replicate existing pages of the draft verbatim as context for their changes, which often boil down to: adding a bullet point to a list (e.g. extending the list of keywords), adding a sentence to a pre-existing paragraph (e.g. extending the syntax for lambdas), etc.

You could probably condense the wording down quite a bit, it would be harder to follow what is going on with the changes, but apparently that's what some people who just count page numbers would prefer.

comment 2w ago · link · parent

Maybe I'm too pessimistic.

WG21 could realistically fix some issues as DRs before S/R is even implemented (and marked stable) anywhere (they have done so before for other features - notably std::format).

Thanks to the C++29 fix you could even remove hacks like `co_yield execution::with_error` as a non-exception-based abort-mechanism inside task.

But ... the problem with symmetric transfer is deeply rooted in the design of std::execution and would require large surgery ...

comment 2w ago · link · parent

> You can write your own library to use the C++20 feature, but the standard APIs are raw and brutally complex.

I wouldn't put it that way, but I've written several coroutine wrapper types at this point, so my perspective is certainly not objective here.

> Finally, C++26 provides std::execution, and std::task, which finally makes the feature usable with only standard C++ feature, and provides facilities for executing coroutines on thread pools, or message pumps. Significant features and problems have been deferred to C++29.

I remain unconvinced mere mortals will use std::execution.

It's a marvellous example of proving what is possible with TMP without needing language support.

Naturally, it's template hell - heck, the main designer even wrote a Visual Studio Extension to understand the cryptic error messages it can generate.

Apart from that: it interacts badly with Coroutines. Even though the author of std::execution::task reached quite a good design (there are some warts, some of which could only be fixed by delaying to C++29 as it needed a change to the language feature), std::execution has poor support for it - which is unsurprising as key features of coroutines (like symmetric transfer) are not even discussed in P2300...

comment 2w ago · link · parent

> contract specification alone covers around 5-10% of C++

I have no idea where you read that but it is a blatant lie - easily disproven by the way: N5046 which is pretty close to the C++26 DIS has 2668 pages. P2900R14 has a total of 114 pages, of which ~56 pages are dedicated to proposed wording.

Wording is presented as a diff to the working draft and contains extensive copies of the existing text that is either amended, modified or removed. (Aka: there are no 56 pages of wording).

comment 2w ago · link · parent

> Microsoft apparently criticised the proposal as unimplementable. We're talking about feedback from the dominant compiler vendor.

It's implemented in GCC mainline, it's implemented on a branch of Clang. Considering MSVC: at this point in time I'm not convinced it it a question of implementability, but of will: https://cppstat.org/de/?tags=cpp26&type=lang

comment 2w ago · link · parent

> - let us say tomorrow everyone were to consider removing all unsigned variables across c++

We would have to at the same time consider removing all bit operations (shifts, bit_and, bit_or, complement, xor, ...) as they are generally unsafe for signed integers.

That would probably kill a lot of low-level optimisations you were never actively aware of (some tagged versions of SSO, or pointer tagging in general, ...) but relied on for performance.

So, without thinking of further consequences, I think C++ would be worse of with that proposed change.

comment 2w ago · link · parent

> it's his language

It most definitely is not and hasn't been in decades.

A major problem is that some people still put his views on a pedestal, acting like he has a clean track record with his ideas, which he definitely has not - no language designer has ...

comment 2w ago · link · parent

> Profiles

Contrary to Contracts, which at least managed to get consensus in WG21, I very much doubt that Profiles will get consensus.

comment 2w ago · link · parent

That's just a misunderstanding, probably rooted in a pre-published paper that claimed so.

In reality WG21 could just decide to start work on C++29 based on the failed C++26 draft (or the current working draft has already incorporated some C++29 changes)...

comment 2w ago · link · parent

Funny how often I read online that Coroutines are abandoned/useless, yet we ship products based on them and their application in our codebases grows continuously...

comment 1mo ago · link · parent

> Because of their religious fanaticism Germany closed their nuclear plants

Must have missed when Merkel left the CDU and joined the Greens...

comment 1mo ago · link · parent

Well, https://eel.is/c++draft/polymorphic#assign-2.2 requires copy-constructibility.

comment 1mo ago · link · parent

Yes, there is currently no move-only std::polymorphic, like there is a move-only std::indirect ...

comment 1mo ago · link · parent

Wow, this is great!

comment 1mo ago · link · parent

Oh great, the next C-hack C++ will have to adopt for compatibility...

comment 1mo ago · link · parent

Don't be sad for them. AFAIK those that didn't retire are now at Nvidia - hopefully continuing to improve the frontend...

comment 2mo ago · link · parent

No idea what you are talking about, I need none of the apps you mention...

comment 2mo ago · link · parent

>> The current contracts are not good enough for anybody who wants them - > This is a recurring pattern across large changes to c++. Modules and coroutines both are great examples of this.

Coroutines are ready since C++20, there is some stuff missing in the language (`for co_await` being the most obvious thing), but the feature is useful as is...

comment 2mo ago · link · parent

> And I think each national body has a veto. (that is the vote has to be unanimous, but not sure here).

No veto. Every P-member has a vote (abstain/approve/disapprove). Whether C++26 gets published is decided by numerical consensus.

comment 3mo ago · link · parent

Oh it was, actually still is - our right wing party is still talking about this stuff regularly...

comment 3mo ago · link · parent

> They then watched the gcc community work through 10 years of pain to make the transition.

During the same time the MSVC compiler broke ABI multiple times and the world didn't end.

The fact that breaking ABI was such a shitshow for libstc++ is more related to the way C++/ABI/SOs is/are handled in Linux...

comment 3mo ago · link · parent

I have to disagree with the author in one key detail: IMHO Windows wasn't neglected, it was actively made worse over the last decade(s)...

comment 4mo ago · link · parent

> no one is even buying idTech

Kinda hard to buy an engine that is not for sale...

comment 8mo ago · link · parent

> Most crucially, both keyboards introduced a new tenant: Control (⌃). This was modifier key number four, and to this day, I don’t fully understand why ⌘ wasn’t repurposed here

Because then we would have ended up with the same mess that is Windows (and Linux for that matter) when it comes to ^C being ambiguous...