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

switch to a better Julia to GAP conversion #4086

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

ThomasBreuer
Copy link
Member

The changes rely on those in GAP.jl from oscar-system/GAP.jl/pull/1029, see the introductory comment there for the ideas.

The details are as follows.

  • change the installation of GapObj and GAP.julia_to_gap methods to calls of GAP.@install GapObj
  • change the GAP.julia_to_gap calls to GapObj calls
  • move the Oscar to GAP conversion methods for Set{T} and JSON3.Array to GAP.jl

As soon as Oscar.jl includes GAP.jl containing the code from oscar-system/GAP.jl/pull/1029, the current changes (or something better) must be added to Oscar.jl.

@fingolfin
Copy link
Member

@ThomasBreuer this has conflicts now?

- install `GapObj` and `GAP.julia_to_gap` methods via `GAP.@install`
- change the `GAP.julia_to_gap` calls to `GapObj` calls
- move some conversion methods from Oscar.jl to GAP.jl
@lgoettgens
Copy link
Member

With the new Hecke release available, CI seems to be happy now

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 89.65517% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.69%. Comparing base (c806a9d) to head (f9e4450).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/GAP/oscar_to_gap.jl 91.66% 1 Missing ⚠️
src/Groups/GAPGroups.jl 0.00% 1 Missing ⚠️
src/Serialization/GAP.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4086      +/-   ##
==========================================
- Coverage   84.69%   84.69%   -0.01%     
==========================================
  Files         627      627              
  Lines       84301    84287      -14     
==========================================
- Hits        71398    71385      -13     
+ Misses      12903    12902       -1     
Files with missing lines Coverage Δ
src/GAP/iso_oscar_gap.jl 98.26% <100.00%> (ø)
src/GAP/wrappers.jl 94.91% <100.00%> (ø)
src/Groups/cosets.jl 89.59% <100.00%> (ø)
src/Groups/group_characters.jl 95.65% <100.00%> (ø)
src/Groups/matrices/MatGrp.jl 94.31% <100.00%> (ø)
src/Groups/matrices/forms.jl 93.45% <100.00%> (ø)
src/Groups/tom.jl 95.30% <100.00%> (-0.03%) ⬇️
src/Groups/types.jl 81.57% <100.00%> (ø)
src/GAP/oscar_to_gap.jl 96.00% <91.66%> (-1.50%) ⬇️
src/Groups/GAPGroups.jl 94.13% <0.00%> (ø)
... and 1 more

... and 1 file with indirect coverage changes

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.

Looks good to me. It would be good if GAP.jl still provided julia_to_gap as fallback for existing code. I.e. we don't want people to install methods it, but code that just calls it should keep working. So something like julia_to_gap(x) = GapObj in GAP.jl might work (perhaps recursive also needs to be passed on)

@fingolfin fingolfin merged commit 32a38b3 into oscar-system:master Sep 27, 2024
33 of 54 checks passed
@ThomasBreuer ThomasBreuer deleted the TB_julia_to_gap branch September 27, 2024 20:58
HechtiDerLachs pushed a commit to HechtiDerLachs/Oscar.jl that referenced this pull request Sep 30, 2024
* next iteration

- install `GapObj` and `GAP.julia_to_gap` methods via `GAP.@install`
- change the `GAP.julia_to_gap` calls to `GapObj` calls
- move some conversion methods from Oscar.jl to GAP.jl

* do not call `GapObj(Union{}[])`

* require GAP.jl 0.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants