Skip to content

Document specially integrated modules and integration process. #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Feb 17, 2022

No description provided.

@rxwei rxwei force-pushed the integration-doc branch 2 times, most recently from 5b94359 to 80f4fd8 Compare February 18, 2022 07:47
@rxwei rxwei requested a review from shahmishal February 18, 2022 07:47
@shahmishal
Copy link
Member

@rxwei and I talked offline about this, we will be meeting up tomorrow or next week to discuss this proposal.

@rxwei rxwei force-pushed the integration-doc branch 2 times, most recently from d66f0fa to 28a1b29 Compare February 18, 2022 18:53
@rxwei
Copy link
Contributor Author

rxwei commented Feb 25, 2022

@swift-ci please test

| `_MatchingEngine` | `SwiftCompilerSources/Sources/ExperimentalRegex` and `stdlib/public/_MatchingEngine` |
| `_CUnicode` | `stdlib/public/_StringProcessing` |
| `_StringProcessing` | `stdlib/public/_StringProcessing` |

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good for an initial integration doc, but I do think we'll want some CMake, perhaps in the Swift repo, that would add or remove certain sub-folders for the stdlib, like the engine itself.

- Do not modify the existing ABI between the regular expression parser and the Swift compiler unless absolutely necessary.
- Always minimize the number of lockstep integrations, i.e. when apple/swift-experimental-string-processing and apple/swift have to change together.
- In `_StringProcessing`, do not write fully qualified references to symbols in `_CUnicode`, and always wrap `import _CUnicode` in a `#if canImport(_CUnicode)`. This is because `_CUnicode` is built as part of `_StringProcessing` with CMake.
- In `_MatchingEngine`, do not write fully qualified references to `_MatchingEngine` itself. This is because `_MatchingEngine` is built as `ExperimentalRegex` in `SwiftCompilerSources/` with CMake.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And related, we should rename it to RegexParse or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but I think it is better for this document to describe the current state. We can patch it once the name has changed.

@rxwei
Copy link
Contributor Author

rxwei commented Feb 28, 2022

@swift-ci please test

rxwei added a commit to rxwei/swift that referenced this pull request Feb 28, 2022
Switch to using swift/main as the integration branch for apple/swift-experimental-string-processing.

Integration process documentation: swiftlang/swift-experimental-string-processing#170
Friend PR: swiftlang/swift-experimental-string-processing#192
@rxwei rxwei merged commit 996c6d3 into swiftlang:main Mar 2, 2022
@rxwei rxwei deleted the integration-doc branch March 2, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants