Skip to content

Move MatchingEngine out of _MatchingEngine 😐 #143

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
Feb 12, 2022

Conversation

milseman
Copy link
Member

@milseman milseman commented Feb 3, 2022

Currently based on top of #142

@milseman milseman marked this pull request as ready for review February 3, 2022 21:20
@milseman milseman requested a review from rxwei February 3, 2022 21:20
@milseman
Copy link
Member Author

milseman commented Feb 3, 2022

@rxwei Do you see any impact of this on the compiler integration side?

@rxwei
Copy link
Contributor

rxwei commented Feb 3, 2022

Is it just moving from _ME to _SP? It should be fine as far as compiler integration is concerned.

//
//===----------------------------------------------------------------------===//

public // For prototypes
Copy link
Contributor

Choose a reason for hiding this comment

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

Whatever's public in _StringProcessing is public to the user. Why do we want to expose Program or MEProgram?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's because we're restricted to only 2 modules here. The engine should be its own module, internal to everything else, so that it can have API that's usable by prototypes and _StringProcessing. But since we have to slurp everything up into _StringProcessing, then this needs to service the prototypes too.

We can drop the prototypes support at some point, at which point this would be dropped. We have loads of public entities that we know we aren't going to ship as public already, so there will be an audit / purge. I can denote it with a FIXME comment or something to make it easier to find in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would something like @_spi(PrototypeSupport) work?

@milseman milseman force-pushed the head_scratching branch 2 times, most recently from c2ace36 to a2c3f68 Compare February 12, 2022 04:10
@milseman
Copy link
Member Author

@swift-ci please test linux platform

@milseman
Copy link
Member Author

@swift-ci please test linux platform

@milseman milseman merged commit 875ab4f into swiftlang:main Feb 12, 2022
@milseman milseman deleted the head_scratching branch February 12, 2022 14:38
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.

2 participants