AStarDemo
cxx20-modules-examples
AStarDemo | cxx20-modules-examples | |
---|---|---|
14 | 5 | |
0 | 55 | |
- | - | |
2.5 | 4.7 | |
over 2 years ago | 5 months ago | |
C++ | Ruby | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AStarDemo
-
Module interfaces for pre-built libraries
However, how it is done is compiler specific, see here for an example. The business logic is a static library.
-
Simple usage of C++20 modules
Yes, see https://github.com/pjmlp/AStarDemo/tree/master/AStarDemoLib
- Do you think template classes will ever be able to be split into .h and .cpp files?
-
C++ Modules Might Be Dead-on-Arrival
Nothing serious, but you can look at
https://github.com/pjmlp/ppm2png
https://github.com/pjmlp/AStarDemo
I am also in the process of porting Raytracing Weekend to C++ modules.
- is it still basically useless working with modules in g++-11?
-
A basic ppm (P3) to PNG converter with C++ modules.
I have another one where I use them, https://github.com/pjmlp/AStarDemo.
- Sayonara, C++, and Hello to Rust
- C++20 Modules: Splitting into separate interface & implementation files?
-
Visual Studio 2022 now available
This toy project kills IntelliSense, is unable to use static analysers and given the dependency of C++/WinRT on PCH (which cannot be used on projects with modules), it makes exactly the opposite in desired build times.
- C++ modules, C++/WinRT and UWP sample
cxx20-modules-examples
-
C++ Modules: The Packaging Story
build2 use the module mapper API which was available long before 2021: https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Module-Mapper... You can try the examples here https://github.com/build2/cxx20-modules-examples/ with GCC 13 or 12 to confirm, if you wish.
> given communication APIs for GCC just landed in its main branch a month ago
Can you elaborate on what are these "communication APIs"?
-
New C++ features in GCC 12
It you are looking for news on C++20 modules support, then sadly, there is not much progress since GCC 11. I've re-tested my modules examples[1] a few days ago with the GCC 12 snapshot, and while a few bugs have been fixed, the majority remain unfixed[2].
[1] https://github.com/build2/cxx20-modules-examples
[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524
-
Experiments with modules
I used a build2 repository containing C++20 Modules hello-world projects setup in different scenario with module partitions, without partitions, libraries or not etc. They all just print hello world but the point is to check and show very basic modules usage.
-
GCC 11.1
If anyone is looking for a build system to try C++20 modules with GCC, there is build2: https://build2.org/blog/build2-cxx20-modules-gcc.xhtml
There is also a repository of module examples (some trying to imitate real-world usage like distributing modules as part of a library): https://github.com/build2/cxx20-modules-examples/
-
When do you think modules will be fully implemented?
Here is a set of examples that exercises major modules features: https://github.com/build2/cxx20-modules-examples
What are some alternatives?
cpp-docs - C++ Documentation
cxx20-modules-examples - C++20 modules examples
ppm2png - Basic command line utility to convert PPM images (P3) into PNG
fmt - A modern formatting library
cppwinrt - C++/WinRT
owning-ref-rs - A library for creating references that carry their owner with them.
ifc-spec - IFC format specification
Bronze
TextLayoutSampler - Utility to display text via multiple Windows API's simultaneously (D2D, DWrite, GDI, GDI+).
test-dll-modules-visualstudio - Shows an example of Visual Studio projects with a dll project exposing a module and an executable using the module from the dll.
pyshim - An experiment; can i make an LD_PRELOADable shim with Cython?
docs - conan.io reStructuredText documentation