Initialize CMP as a C++23 module project - #1
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR turns the generic mcpplibs module scaffold into the initial CMP (Coroutine Machine Process) project.
mcpplibs.mylibidentity with packagemcpplibs/cmpand modulemcpplibs.cmp.gitignoreThis PR establishes the repository identity and development baseline. It does not implement coroutine runtime functionality.
Package identity
mcpplibs/cmp0.1.0mcpplibs.cmpmcpplibs::cmpThe
Cin CMP echoes the naming role of theGin the Go runtime. This is naming motivation only, not a claim of equivalent runtime behavior.The root module currently contains only:
Template cleanup
templates/basicandtemplates/libwere genericmcpp newpublishing assets inherited from the scaffold. They did not describe a CMP-specific API.tools/template_smoke.shrendered each publishing template, replaced scaffold placeholders, redirected the generated dependency to the current checkout, and then built and ran the generated project. Once the inherited templates were removed, the script no longer had a test subject.examples/basicremains as an independent path-dependency consumer ofmcpplibs.cmp.Convention check
The repository layout was checked against:
The comparison confirmed that package naming,
src/cmp.cppm, and modulemcpplibs.cmpfollow current mcpplibs conventions. Publishing templates, template-smoke scripts, CI layout, and lock-file policy are package-specific rather than organization-wide requirements.mcpp search cmpreturned no existing package match on 2026-08-02.Validation
mcpp build --cache=offmcpp test --cache=off— 1/1 passedexamples/basic:mcpp run --cache=off— exit code 0git diff --checkCI retains separate Linux, macOS, and Windows build, test, and example-consumer workflows.
Non-goals
mcpp newtemplates before a stable public API exists