Call for Accelerated C++20 Modules Support Across Boost Libraries
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cmake, cpp
- Lĩnh vực
- build-system, ci-cd, compilers
Hướng nghiên cứu
Không xác định tệp, bài kiểm thử hoặc điểm vào cụ thể nào. Hãy bắt đầu bằng việc xem xét các nguyên mẫu mô-đun được liên kết của Boost.Mp11, Boost.Charconv, Boost.Core, Boost.Assert, Boost.ThrowException, Boost.Config và Boost.CMake, sau đó đánh giá các mục tiêu được đề xuất như Boost.Asio và Boost.Compute. Để được coi là hoàn tất, cần có phạm vi đã được thống nhất cùng với hỗ trợ mô-đun, cơ sở hạ tầng và độ bao phủ CI sẵn sàng cho production trên các thư viện được chọn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Dear Boost Community,
As the pioneer of C++ innovation, Boost has consistently led the charge in adopting groundbreaking features before they become standard. While we applaud the initial modularization efforts across several Boost libraries, the current pace of C++20 Modules adoption falls short of what the community needs and expects from this foundational project.
Current Modularization Efforts (Proofs-of-Concept)
The community has made valuable initial progress on modularizing key components:
Header-Only Libraries
- Boost.Mp11 (proof-of-concept for header-only modularization)
Compiled Libraries - Boost.Charconv (proof-of-concept for compiled libraries)
Core Infrastructure - Boost.Core (minimal test support subset)
- Boost.Assert (minimal test support subset)
- Boost.ThrowException (minimal test support subset)
- Boost.Config (compatibility headers)
Build System Support - Boost.CMake (module installation scripts)
While these efforts are commendable, they represent just the first steps. The C++ ecosystem cannot afford for Boost - the standard-bearer of C++ innovation - to lag in adopting this transformative feature.
Why Immediate Scaling is Critical
Compiler Readiness
All major compilers (GCC 15, Clang 16, MSVC) now support C++20 Modules, with import std; already working. The toolchain is ready - where is Boost?
C++ has reached a historical turning point with modularization, and Boost stands at the forefront of this wave.
Community Impact
With virtually every significant C++ project depending on Boost, the lack of comprehensive Modules support creates:
- Unnecessary build time bottlenecks
- Missed optimization opportunities
- Friction in modern codebases
Leadership Responsibility
Boost has historically bridged the gap between cutting-edge features and standardization (e.g., Filesystem, Coroutines). We must continue this tradition for Modules. Even though MSVC has some issues on the platform, both MSVC and STL are using Boost.Math, which shows the importance and necessity of Boost. And since when did one platform not being able to support something stop Boost from pushing the envelope of compilers and libraries?
CMake Status and Boost's Leadership
CMake's C++ Modules support is now in a usable state, with no major issues. However, Boost has always held a more prominent leadership position and had a greater influence in the C++ community compared to CMake. Boost should take the lead in driving the adoption of C++20 Modules, rather than waiting for CMake to fully catch up.
The Call for Boost 2
The idea of a Boost 2 that assumes C++20 as its starting point has been discussed for years. This would be an opportunity to shed historical baggage and embrace modern C++ fully. Such a bold move would not only align Boost with the current standards but also reinvigorate its position as the innovator in the C++ ecosystem.
Suggested Next Steps
- Consider establishing a Modules Task Force
- This group could coordinate efforts across library maintainers
- Document best practices for modularization
- Prioritize high-impact libraries for module conversion
- Focus on libraries like Boost.Asio, Boost.Compute that would benefit most from modules
- Create reference implementations for different library types
- Enhance infrastructure support
- Expand CMake support for module builds
- Enhance CI testing for modular configurations
- Increase community engagement
- Host regular progress updates
- Create contribution guidelines for module conversions
The time for proofs-of-concept is over. The C++ community needs production-ready module support across Boost's core libraries. Without Boost leading the way, the entire ecosystem remains stalled. Let's work together to make this happen now.
Reddit References:
- C++20 modules and Boost: a prototype
- GCC support std module with CMake 4.0 Now!
- Is it time for a rebased Boost2 that assumes C++20 as its starting point?
"Boost didn't become legendary by waiting for perfect conditions - it created them." Now is the time to lead again.
- Ngôn ngữ chính
- HTML
- Star
- 8.6k
- Fork
- 2k
- Merge trung bình
- 9 giờ 35 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của boostorg/boost
-
Add More GHA Runners to CIĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
-
Boost 1.92.0 build errorĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Tất cả issue của boostorg/boost
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
CI: pin OS images in build/publish tests instead of `*-latest`Có thể đã có người làm @shikhabhadoria đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vacanza/holidays#4220 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Niko1221/Strata#6731 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies go good first issue priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fukubie/StockLlama#48 ·