Skip to content
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

Fallback-aware datagen #3487

Merged
merged 23 commits into from
Jun 21, 2023
Merged

Fallback-aware datagen #3487

merged 23 commits into from
Jun 21, 2023

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Jun 5, 2023

Part of #2683

Needed for builtin data.

@robertbastian robertbastian requested review from sffc, Manishearth and a team as code owners June 5, 2023 17:41
provider/core/src/datagen/mod.rs Show resolved Hide resolved
provider/datagen/src/baked_exporter.rs Outdated Show resolved Hide resolved
provider/datagen/src/baked_exporter.rs Outdated Show resolved Hide resolved
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

Still not sure about the "batteries included" approach to fallback, but this is close to how I think the code should look if we were to take that approach

provider/datagen/src/baked_exporter.rs Outdated Show resolved Hide resolved
@robertbastian robertbastian force-pushed the fallback branch 3 times, most recently from f4c924c to 79392e4 Compare June 14, 2023 14:03
@robertbastian
Copy link
Member Author

The batteries included discussion is isolated in baked_exporter.rs. I'd like to get the rest of this PR aproved, and tentatively merge the baked_exporter.rs changes as well, as this is blocking further baked data rollout (many doc tests only pass with fallback).

@robertbastian robertbastian changed the title Fallback-aware databake Fallback-aware datagen Jun 16, 2023
@robertbastian
Copy link
Member Author

Removed the baked_exporter.rs change

@@ -53,7 +53,7 @@ impl core::fmt::Debug for ExportBox {
impl<M> UpcastDataPayload<M> for ExportMarker
where
M: DataMarker,
M::Yokeable: Sync,
M::Yokeable: Sync + Send,
Copy link
Member Author

@robertbastian robertbastian Jun 20, 2023

Choose a reason for hiding this comment

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

This is technically breaking, but I think it's almost impossible to have !Send data structs, as they'd have to contain raw pointers or Rc. If we don't want this we can remove locale-level parallelism and generate all locales for each key on the same thread.

Copy link
Member

Choose a reason for hiding this comment

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

I lean toward shipping this and rolling back if anyone has problems

Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

LGTM with open questions regarding the exact behavior of the fallback modes

@robertbastian robertbastian merged commit 6f8a531 into unicode-org:main Jun 21, 2023
23 checks passed
@robertbastian robertbastian deleted the fallback branch June 21, 2023 20:59
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.

None yet

3 participants