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

LibGAP #493

Closed
wants to merge 2 commits into from
Closed

LibGAP #493

wants to merge 2 commits into from

Conversation

vbraun
Copy link
Contributor

@vbraun vbraun commented Jan 18, 2016

Do not merge

This PR shows the libgap changes to the gap kernel

@olexandr-konovalov olexandr-konovalov added the gapsagedays2016 Issues and PRs that arose at https://www.gapdays.de/gap-sage-days2016 label Jan 19, 2016
@fingolfin
Copy link
Member

To fully understand how this work, one should also look at the cython code invoking libgap: https://github.com/sagemath/sage/blob/master/src/sage/libs/gap/

Then look for example at https://github.com/sagemath/sage/blob/master/src/sage/libs/gap/element.pyx and the call methods there which use libGAP_CALL_1ARGS etc. to directly invoke GAP functions.

@dimpase
Copy link
Member

dimpase commented Jan 19, 2016

there is also https://github.com/sagemath/sage/blob/master/src/sage/libs/gap/test/main.c
showing how to call libGAP from C, although perhaps this needs to be expanded to show more techniques.

@dimpase
Copy link
Member

dimpase commented Aug 23, 2016

The intrusive changes in fc14c8a are very minimal, we are basically talking about 20-30 lines added, and more removed. I'd be happy to make them nicely ifdf'ed if it comes to this. I think it's not bigger than support for some exotic OSs...

The bigger issue is the build system; we do have a mechanism to build the library using libtool, that uses the full autotools toolchain, see #504
Indeed before the latter is resolved, we cannot progress here.

@ChrisJefferson
Copy link
Contributor

One minor issue in fc14c8a, files starting 'c_' are auto-generated, so changes to these files should be made to the compiler, and then the files regenerated.

@dimpase
Copy link
Member

dimpase commented Aug 26, 2016

@ChrisJefferson - perhaps these changes to c_* files can be avoided all together (as all they do, they change a directory in an include statement).

Anyway - we can also think of making libGAP a package or another kind of add-on, with only common code in fc14c8a, and the rest, including the libGAP build system, being in a package/add-on. This way, the only intrusive change would be fc14c8a, and the rest, including libGAP's build system, would be living outside of GAP source tree, say, in pkg/libgap/.

@markuspf
Copy link
Member

markuspf commented Sep 7, 2017

The commits have been ported to #1205, so I'll close this. Work continues on #1205.

@markuspf markuspf closed this Sep 7, 2017
@markuspf markuspf added this to TODO in LibGAP Dec 18, 2017
@fingolfin fingolfin moved this from TODO to Done in LibGAP Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gapsagedays2016 Issues and PRs that arose at https://www.gapdays.de/gap-sage-days2016
Projects
LibGAP
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants