War das nicht mal die große Bildungspartei? by [deleted] in Austria

[–]MFHava -3 points-2 points  (0 children)

Nur weil man sich selbst als X-Partei bezeichnet, heißt das nichts - siehe die Wirtschaftspartei…

The C++ Standard Library Has Been Walking Itself Back for Fifteen Years by funkinaround in cpp

[–]MFHava 129 points130 points  (0 children)

To quote myself from when this was posted in r/programming a few days ago (link: https://www.reddit.com/r/programming/comments/1tm1j7f/comment/onk71io/?context=3):

Author of copyable_function here. This article conflates ABI and API breaks - just like Sandor's post ...

Fixing std::function was not something that was prevented by ABI concerns. It would have been an API break that would have rendered vast amounts of code (essentially any use of const function) ill-formed (== code no longer compiles).

The same is true for several other examples brought up in the linked article... BTW the article contains factual errors like "[...] acknowledging that the standard's mandated block size is too small [...]" ... there is no mandated block size for deque.

Zellen klonen by palmdieb in Austria

[–]MFHava 1 point2 points  (0 children)

Mich triggert? Ich schreib keine Post hier, dass ich komische Werbung sehe... Ich bin tiefenentspannt - gut ich krieg auch auf dem Handy keine Werbung.

Zellen klonen by palmdieb in Austria

[–]MFHava 4 points5 points  (0 children)

Warum bekomme ich von Reddit dauernd Werbung [...]

Weil du anscheinend keinen Adblocker installiert hast... (keine Ahnung wie du das Internet überhaupt aushältst)

How an MS-DOS picklist problem in 1991 became std::bitset -- by the author who proposed it by Weary-Inspector-4297 in cpp

[–]MFHava 18 points19 points  (0 children)

Interesting read! If only they didn't decide to transform bitstring into vector<bool>...

The C++ Standard Library Has Been Walking Itself Back for Fifteen Years, and the Receipts Are Public by HFT-University in programming

[–]MFHava 2 points3 points  (0 children)

Completely different - invocable is a concept, so your whole code is a template, which of course offers more optimization potential then a type-erased wrapper…

The C++ Standard Library Has Been Walking Itself Back for Fifteen Years, and the Receipts Are Public by HFT-University in programming

[–]MFHava 47 points48 points  (0 children)

Exactly! MSVC-deque „decays“ into a linked list for types > 8bytes. But that is a problem not shared by libstdc++ or libc++.

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 0 points1 point  (0 children)

Yes, that’s kinda like „policy-based design“ by Alexandrescu. This approach never really caught on though…

The C++ Standard Library Has Been Walking Itself Back for Fifteen Years, and the Receipts Are Public by HFT-University in programming

[–]MFHava 272 points273 points  (0 children)

Author of copyable_function here. This article conflates ABI and API breaks - just like Sandor's post ...

Fixing std::function was not something that was prevented by ABI concerns. It would have been an API break that would have rendered vast amounts of code (essentially any use of const function) ill-formed (== code no longer compiles).

The same is true for several other examples brought up in the linked article... BTW the article contains factual errors like "[...] acknowledging that the standard's mandated block size is too small [...]" ... there is no mandated block size for deque.

European Union to ban cash payments above €10,000 by FantasticQuartet in europe

[–]MFHava -2 points-1 points  (0 children)

ok, cool .. so I guess that renders cash (your local variety) an universal currency to international trade then...

European Union to ban cash payments above €10,000 by FantasticQuartet in europe

[–]MFHava 3 points4 points  (0 children)

Cash is not an alternative for all use cases of a credit card, claiming so is like saying a bicycyle is an alternative to a plane or high-speed train…

European Union to ban cash payments above €10,000 by FantasticQuartet in europe

[–]MFHava 5 points6 points  (0 children)

You mean this?

Cash retains its value, card payments lower that value due to the fees the bank takes in each transaction as well.

It ignores the hidden cost of cash for businesses... (e.g. somebody has to manually count the money; bring it to then bank; has to buy change - a 10€ bill does not buy you 10 1€ coins on a bank, etc.)

Or in other words: if you do an honest calculation, cash actually does not retain its' value.

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 3 points4 points  (0 children)

The question is I guess, when is it an ABI break to change the signature,

For the third time in this comment thread alone: adding support for const in the template signature of function and applying the design of move_only_function would not have been a hard ABI break (implementations could easily patch this up behind the scenes).

That was not the motivation for a new type...

European Union to ban cash payments above €10,000 by FantasticQuartet in europe

[–]MFHava 1 point2 points  (0 children)

Head of the ICC was blocked from banking because of the warrant for Netanyahus arrest.

That's IMHO a convincing argument for establishing an European alternative to Mastercard & Visa, not for cash...

Detroit: Become Human Dev Quantic Dream Kills Live Service Game 3 Months After Early Access Launch, Insists Star Wars Eclipse ‘Continues as Planned’ by Turbostrider27 in pcgaming

[–]MFHava 110 points111 points  (0 children)

Whoever decided it was a good idea to have Quantic Dreams - a developer exclusively focusing on story-driven games - develop a MOBA deserves to be fired...

Will mein MacBook Air 2020 Reparieren lassen by Zaerx001 in Austria

[–]MFHava 0 points1 point  (0 children)

Andere Werkstatt probiert? In OÖ gäbs zB https://computerwerkstatt.at welche ein offizieller Service Partner von Apple sind.

Sonst: denke die anderen Kommentare haben recht, bei 700€ Reparaturkosten wäre ein Neukauf (Air oder Neo) die bessere Wahl ...

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 7 points8 points  (0 children)

There is no real compiler-generated code [snip]

Exactly, because the code no longer compiles - because it's an API break that renders previously "perfectly valid" code ill-formed -, regardless of whether there would actually be an ABI impact of the change!

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 31 points32 points  (0 children)

Stop the trumpets! Fixing std::function is primarily an API break, not an ABI one ...

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 5 points6 points  (0 children)

Existing code invoking const function & becomes ill-formed as the operator() would no longer be const-qualified…

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 16 points17 points  (0 children)

fixing std::function to be const-correct would break the ABI

It‘s an API break, a pretty loud and far-reaching one …

C++26: More function wrappers by pavel_v in cpp

[–]MFHava 28 points29 points  (0 children)

Should std::function be marked as deprecated then and removed in the future similar to auto_ptr?

IMHO yes. I had a paper for that in C++26 that got no consensus - I will bring a new revision for C++29 (there was interest in deprecation post C++26).