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

Load the whole GAP library before loading packages #5914

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

ThomasBreuer
Copy link
Contributor

Up to now, the "implementation part" of the GAP library was delayed until a package got loaded that claimed to need the whole library.

The idea was to have calls to functions from some packages inside the GAP library, without syntax warnings, and to use some gapdoc functions already during startup.

This was used for some time for the packages gapdoc, primgrp, and transgrp, but meanwhile the GAP library can apparently be loaded without problems before the declaration part of these packages has been loaded.

Up to now, the "implementation part" of the GAP library was delayed
until a package got loaded that claimed to need the whole library.
The idea was to have calls to functions from some packages inside
the GPA library.
This was used for some time by the packages primgrp and transgrp,
but meanwhile the GAP library can apparently be loaded without problems
before the declaration part of these packages has been loaded.
@ThomasBreuer ThomasBreuer added topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker) release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes kind: removal or deprecation A feature was removed or deprecated / made obsolete labels Jan 24, 2025
@ChrisJefferson
Copy link
Contributor

I'm happy with this, it makes sense to get GAP fully loaded before we start loading packages, I'm just curious if there is any reason you wanted to make the change?

@ThomasBreuer
Copy link
Contributor Author

When working on #5912, I noticed that packages can still get partially loaded before the library. Removing this feature first of all simplifies the code. Perhaps it will simplify also further changes in the handling of packages.

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Simplifies the package loading mechanism, good -- that makes it a bit easier to debug and possibly modify in the future.

@fingolfin fingolfin merged commit dcef556 into gap-system:master Jan 24, 2025
33 checks passed
@ThomasBreuer ThomasBreuer deleted the TB_load_order branch January 25, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: removal or deprecation A feature was removed or deprecated / made obsolete release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants