Skip to content

convert all of Sage library code to libgap #26902

Open

Description

@dimpase

It's about time. The sooner this is done, the fewer code to cross pexpect gap/libgap boundary will have to be written.
Some completed tickets aiming at this: #26750, #26889, #27234, #28504, #28818, #28820, #34769, #34770, #34737, #34771

Also related:
#27923, #27911, #27878

Following completion of this work, we can look into formally deprecating the pexpect interface to GAP: #26963.

Component: interfaces

Keywords: gap libgap

Issue created by migration from https://trac.sagemath.org/ticket/26902

Activity

  1. added this to the sage-8.6 milestone on Dec 15, 2018
  2. embray commented on Dec 28, 2018

    @embray
  3. embray commented on Jan 15, 2019

    @embray
    Contributor
    comment:2

    Retarging tickets optimistically to the next milestone. If you are responsible for this ticket (either its reporter or owner) and don't believe you are likely to complete this ticket before the next release (8.7) please retarget this ticket's milestone to sage-pending or sage-wishlist.

  4. modified the milestones: sage-8.6, sage-8.7 on Jan 15, 2019
  5. soehms commented on Feb 7, 2019

    @soehms
  6. soehms commented on Feb 7, 2019

    @soehms
    Member
    comment:3

    I've created a follow up ticket #27234 to #26750, since by the improvements in connection with GAP 4.10 upgrade, the implementation of the gap method of class PermutationGroupElement can be done properly, right now.

  7. embray commented on Mar 25, 2019

    @embray
    Contributor
    comment:4

    Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

  8. modified the milestones: sage-8.7, sage-8.8 on Mar 25, 2019
  9. embray commented on Jun 14, 2019

    @embray
    Contributor
    comment:5

    As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9).

  10. removed this from the sage-8.8 milestone on Jun 14, 2019
  11. 4 remaining items

  12. dimpase commented on Nov 21, 2022

    @dimpase
    MemberAuthor
    comment:7

    see #25477 for a long discussion on performance of GAP vs Cython.
    Here is the current (Sage 9.8.beta3) list of modules using pexpect GAP, i.e.
    sage.interfaces.gap

    src/sage/coding/binary_code.pyx:                    from sage.interfaces.gap import gap
    src/sage/coding/linear_code.py:from sage.interfaces.gap import gap
    
    src/sage/combinat/matrices/latin.py:from sage.interfaces.gap import GapElement
    
    src/sage/combinat/root_system/weyl_group.py:from sage.interfaces.gap import gap
    src/sage/groups/class_function.py:from sage.interfaces.gap import gap
    src/sage/groups/perm_gps/constructor.py:from sage.interfaces.gap import GapElement
    src/sage/groups/perm_gps/cubegroup.py:from sage.interfaces.gap import gap
    src/sage/groups/perm_gps/permgroup.py:from sage.interfaces.gap import GapElement
    src/sage/groups/perm_gps/permgroup_element.pyx:            from sage.interfaces.gap import gap
    src/sage/interfaces/gap3.py:from sage.interfaces.gap import Gap_generic, GapElement_generic
    src/sage/libs/gap/element.pyx:        from sage.interfaces.gap import gap
    src/sage/misc/randstate.pyx:            from sage.interfaces.gap import gap
    src/sage/modular/arithgroup/arithgroup_perm.py:        from sage.interfaces.gap import gap
    src/sage/rings/finite_rings/element_givaro.pyx:            from sage.interfaces.gap import gfq_gap_to_sage
    src/sage/rings/finite_rings/element_ntl_gf2e.pyx:from sage.interfaces.gap import is_GapElement
    src/sage/rings/finite_rings/element_pari_ffelt.pyx:from sage.interfaces.gap import is_GapElement
    src/sage/rings/finite_rings/integer_mod_ring.py:                from sage.interfaces.gap import intmod_gap_to_sage
    src/sage/topology/simplicial_complex.py:        from sage.interfaces.gap import g
    

    In particular, even libgap is using sage.interfaces.gap - for GAP help system.

  13. dimpase commented on Nov 21, 2022

    @dimpase
    Author
  14. dimpase commented on Nov 21, 2022

    @dimpase
    Author
  15. dimpase commented on Nov 22, 2022

    @dimpase
    Author
  16. self-assigned this
    on Mar 2, 2023
  17. added 2 commits that reference this issue on Apr 14, 2026
  18. added 8 commits that reference this issue on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions