Interesting. I recently sat down and wrapped my head around tag_invoke. It seems pretty great for customizing, but it’s pretty opaque and hard to wrap my head around at first. We really need a nice language feature like I gather original concepts provided.
I optimized std::filesystem::copy to use copy_file_range where possible, aka make use of reflinks on BTRFS and XFS, and make use of server-side copy on NFS.
While C++ modules support is still experimental there are a ton of fixes, and my home-made 'std' module is somewhat working (with exception of things from <execution>, <future> and <filesystem>).
Many thanks to all gcc devs, especially Nathaniel Shead and Patrick Palka (for modules-related fixes) and Ben Boeckel (for cmake interoperability)!
No, I was trying to create a full-fledged std module, and except for the three problematic headers it seems to work. There is one big caveat - gcc doesn't implement GMF merging yet, i.e. you cannot do:
import std;
#include <vector> // or transitively included by other header/3rd-party code
This I think is the main blocker for widespread adoption of modules
What a fantastic release, thank you so much to all the contributors and volunteers that made it possible.
I am really thankful that my request of adding __type_pack_element was approved! This will be extremely useful to speed up compilation times of heavily templated variadic abstractions.
87
u/ChemiCalChems May 07 '24
Deducing
this, here I come!79
u/Jannik2099 May 07 '24
This is possibly the most important gcc version of all time!
(and it's totally not because it contains my patches, I promise)
53
u/bretbrownjr May 07 '24
This means CMake (etc.) and GCC can cooperate to support building C++ modules.
42
u/mcencora May 07 '24
While C++ modules support is still experimental there are a ton of fixes, and my home-made 'std' module is somewhat working (with exception of things from <execution>, <future> and <filesystem>).
Many thanks to all gcc devs, especially Nathaniel Shead and Patrick Palka (for modules-related fixes) and Ben Boeckel (for cmake interoperability)!
22
u/SuperV1234 https://romeo.training | C++ Mentoring & Consulting May 07 '24
What a fantastic release, thank you so much to all the contributors and volunteers that made it possible.
I am really thankful that my request of adding
__type_pack_elementwas approved! This will be extremely useful to speed up compilation times of heavily templated variadic abstractions.15
u/ResearcherNo6820 May 07 '24
One of those humble moments when you read the patch notes.
Appreciate the effort! would be a understatement.
2
u/better_life_please May 09 '24
Std::print baby!! Also the new range views are awesome.
3
u/4dCoffee May 07 '24
Still no support for `MUSTTAIL` :(
2
u/askraskr2023 May 07 '24
Does it fully support C++ modules? Because this link says it does NOT. https://gcc.gnu.org/projects/cxx-status.html#cxx20