-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Implement an interface to GAP3 #8380
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Here are two patches. Make sure you apply the correct patch for you version of Sage. Of course, you need to have GAP3 installed in order to use GAP3, and all doctests are marked optional. The interface behaves very much like the GAP4 interface: tab completion works, one can access the GAP3 help documentation, etc. Notes for the reviewer:
|
IGNORE THIS PATCH |
comment:3
Attachment: gap3_interface_v4.3.2.2.patch.gz This updated patch catches GAP3's syntax error messages. The interface seems pretty robust now, so its ready for review. Please try it out. |
Attachment: gap3_interface_v4.3.2.patch.gz Patch for Sage version 4.3.2 only. |
Attachment: gap3_interface_v4.3.3.patch.gz Patch for Sage version 4.3.3 only. |
Documentation |
comment:4
Attachment: gap3_interface_doc.pdf.gz If you're a GAP3 user interested in trying the new interface, then you can follow the instructions below to patch your version of Sage. These instructions are just a summary of the procedure described at: http://www.sagemath.org/doc/developer/walk_through.html#reviewing-a-patch. (Alternatively, your can just install all the sage-combinat patches using the command
sage: hg_sage.apply("https://github.com/sagemath/sage-prod/files/10648296/gap3_interface_v4.3.2.patch.gz")
sage: hg_sage.apply("https://github.com/sagemath/sage-prod/files/10648297/gap3_interface_v4.3.3.patch.gz")
sage -br
|
comment:5
Nicolas Thiery has posted some code on the sage-combinat patch server that uses this interface to construct Coxeter groups using the GAP3 package CHEVIE. Here is a link to his code: http://combinat.sagemath.org/hgwebdir.cgi/patches/file/e800cdb481fb/trac_8359-coxeter-groups-permutation-nt.patch#l1 |
comment:6
I tested it on my sage-4.3.3 running mac OS X 10.5.8. I had already the gap3 together with the chevie package. With the patch applied, I obtain All test passed! with the command Before giving a positive review, I would like one person used with interface code to take a look at the patch. Good work Franco! |
comment:7
Hi! With Jean Michel, I just made an experimental spkg for gap3 + chevie + all other gap3 packages not available on gap4:
Please test and report! Then we will submit this for submission in experimental/optional |
comment:9
Replying to @nthiery:
Updated package rebased on gap3-jm1 from http://www.math.jussieu.fr/~jmichel/gap3/ : |
comment:10
|
doctest output |
comment:11
Attachment: trac_8380_test.log I tested attachment: gap3_interface_v4.3.3.patch on Sage-4.4.1 with gap3 installed using Frank Luebeck's distribution. The patch applies cleanly, but there are many doctest failures. This could be due to the fact that optional packages like chevie are not included in this distribution of GAP3. Here is my review for the patch:
The optional package for gap3 in comment:9 looks good in general. Maybe the fact that it's binary only can be made more obvious, for example by adding a BTW, it's not possible to install the version of GAP3 downloaded from the main web site (http://www.gap-system.org/Gap3/Download3/download.html) easily. I suggest moving the link to Frank Luebeck's distribution to the first place, and putting this option last. |
Reviewer: Burcin Erocal |
comment:12
Replying to @burcin:
I downloaded Frank Luebeck's distribution and compiled it, but it is not working well on my machine:
As a result, I am getting several doctest errors. I wonder if this is the problem you are having: can you at least check that the above command works on your machine? I'll remark that Luebeck's distribution also includes a binary, and all the doctests but one (the banner) pass if I use that binary. |
comment:13
Replying to @saliola:
You're right, I get the same error. Sorry for the noise. Using the binary, I get only one doctest failure:
|
comment:14
I managed to make an spkg that compiles on 64bits machines. See ticket #8906 |
first apply gap3_interface_v4.3.3.patch, then this |
comment:15
Attachment: gap3_interface_patch2.patch.gz I've uploaded my changes in a separate patch to ease the review. Apply the patches in this order: Replying to @burcin:
The problem here was that a variable name could be overwritten; before the
This is now corrected, and I added the above as a doctest.
Neither Sage nor Gap seem to distribute any packages (see the
Yes, it is #8471. I added the ticket number to the comment, and It is not specific to the GAP interface. It is an issue with any
It shouldn't since the software is so old. Note that when the banners are
I've marked them as
Corrected.
The discussion surrounding spkgs should be moved to #8906, which proposes
Done. I listed ticket #8906 as the first option (it should be changed when |
comment:16
Replying to @saliola:
Ignore that the patch name says 4.3.3; it should apply cleanly against recent versions of Sage. |
Attachment: trac_8380-gap3_interface_patch2.take2.patch.gz Franco's patch2 with a minor change |
comment:17
It seems the doctest framework doesn't like starting output lines with an ellipsis. The test for I'm changing this to positive review. Patches to be applied: |
comment:18
I get the following failure
|
comment:19
Replying to @mwhansen:
Very bizarre; this passes in a sage session (but it fails while doctesting):
|
comment:20
Attachment: trac_8380-revert_changes_to_expect.patch.gz The bit of code in I have attached another patch that reverts the changes to Patches to be applied: |
comment:21
The first two patches above have already been positively reviewed, so just the last patch above needs to be dealt with. |
comment:22
I agree that the expect bug shouldn't hold this patch back. I'm changing this to a positive review. It would be great if this can be merged for the next release. AFAIK, the upcoming combinat meeting will have some CHEVIE developers. |
Merged: sage-4.4.4.alpha1 |
It would be great to have an interface to GAP3 so that one can use GAP3 packages that have not been ported to GAP4. Of particular interest are the packages (sage-devel occasionally receives questions about integrating these packages):
For a list of other GAP3 packages, check out
http://www.gap-system.org/Gap3/Packages3/packages.html
To use the interface implemented in this ticket, you need to have GAP3 installed on your machine.
To this end, you can use Jean Michel's GAP3 distribution
http://www.math.jussieu.fr/~jmichel/gap3/gap3-jm4.tar.gz
(instructions: http://www.math.jussieu.fr/~jmichel/gap3), which
includes a bunch of GAP3 packages (including Chevie, Specht, ...),
A simple alternative is to install the following Sage package
based on a slightly outdated version of the above.
CC: @sagetrac-sage-combinat @wdjoyner @seblabbe @sagetrac-jmichel
Component: interfaces
Keywords: gap3, chevie, specht, gap, sage-combinat
Author: Franco Saliola
Reviewer: Burcin Erocal
Merged: sage-4.4.4.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8380
The text was updated successfully, but these errors were encountered: