AStarDemo
ifc-spec
AStarDemo | ifc-spec | |
---|---|---|
14 | 6 | |
0 | 69 | |
- | - | |
2.5 | 6.0 | |
over 2 years ago | 7 months ago | |
C++ | TeX | |
- | Creative Commons Attribution 4.0 |
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
ifc-spec
-
C++ Modules: The Packaging Story
There is a proposal for this: https://github.com/microsoft/ifc-spec
Only Microsoft implants that so far. I gather EDG (which powers IntelliSense) has been at least researching support for consuming IFC files.
I'm not aware of anyone sponsoring work in Clang or GCC to add IFC support.
-
Module interfaces for pre-built libraries
Note that like .lib files, you'll likely need to build and share different module binary module interface files (e.g. Visual Studio's .ifc) per architecture, since #ifdefs are resolved early. Otherwise (in theory), you could share the same BMI for different architectures since they are largely a symbol table/graph of the parsed code (higher level representation before optimizations).
-
With C++20, what replaces header-only libraries?
My hope is that the IFC format can be evolved (with community inputs) into something supported (but not necessarily required) by C++ compilers. I regard something like the IFC as a necessity for the C++ community to realize the full potential of modules.
-
is it still basically useless working with modules in g++-11?
Now, Gabriel Dos Reis has a CppCon 2021 talk describing a way compilers could communicate in enough detail such that IntelliSense, static analysis, etc. would work as expected. The file format for this mechanism is called IFC and here is the link to the relevant repo. I don't have any information about it being implemented in any compiler other than Microsoft's, but it would solve a lot of problems if it were available.
-
I hope this would ease C++ tooling
For those interested in the final pdf, here is a link to the latest release containing said pdf
What are some alternatives?
cpp-docs - C++ Documentation
ppm2png - Basic command line utility to convert PPM images (P3) into PNG
ipr - Compiler-neutral Internal Program Representation for C++
cppwinrt - C++/WinRT
TextLayoutSampler - Utility to display text via multiple Windows API's simultaneously (D2D, DWrite, GDI, GDI+).
docs - conan.io reStructuredText documentation
pyshim - An experiment; can i make an LD_PRELOADable shim with Cython?
cxx20-modules-examples - C++20 modules examples
STL - MSVC's implementation of the C++ Standard Library.
cxx20-modules-examples - C++20 modules examples