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

Remove nested functions in ratpoints #12473

Closed
ohanar opened this issue Feb 8, 2012 · 32 comments
Closed

Remove nested functions in ratpoints #12473

ohanar opened this issue Feb 8, 2012 · 32 comments

Comments

@ohanar
Copy link
Member

ohanar commented Feb 8, 2012

these won't work for most other compilers besides GCC.

Upstream: Reported upstream. No feedback yet.

CC: @kiwifb

Component: packages: standard

Author: Dima Pasechnik

Branch: dae689c

Reviewer: François Bissey

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

@ohanar ohanar added this to the sage-5.11 milestone Feb 8, 2012
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@dimpase
Copy link
Member

dimpase commented Sep 24, 2016

comment:5

here is a fix : http://users.ox.ac.uk/~coml0531/sage/ratpoints-2.1.3.tar.bz2
(I moved the only nested function outside; it works with gcc, and passes the tests (in sage)). Wonder how it goes with clang...

Still needs a bit of cleaning.

@dimpase dimpase modified the milestones: sage-6.4, sage-7.4 Sep 24, 2016
@kiwifb
Copy link
Member

kiwifb commented Sep 24, 2016

comment:6

Seems to works. I'll work on turning into a patch later.

@dimpase
Copy link
Member

dimpase commented Sep 25, 2016

Branch: u/dimpase/ratpts_nonestedfun

@dimpase
Copy link
Member

dimpase commented Sep 25, 2016

comment:7

here is a cleaned up patch, with more const qualifiers added.


New commits:

4889e9cun-nested and added const qualifiers to as many params as possible

@dimpase
Copy link
Member

dimpase commented Sep 25, 2016

Author: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Sep 25, 2016

Commit: 4889e9c

@kiwifb
Copy link
Member

kiwifb commented Sep 29, 2016

comment:8

Just touching spkg-install since -fnested-functions is not needed anywhere anymore.


New commits:

32c21d9Removing fnested-functions from cflags no that the nested functions are removed.

@kiwifb
Copy link
Member

kiwifb commented Sep 29, 2016

Changed commit from 4889e9c to 32c21d9

@kiwifb
Copy link
Member

kiwifb commented Sep 29, 2016

Changed branch from u/dimpase/ratpts_nonestedfun to u/fbissey/ratpts_nonestedfun

@dimpase
Copy link
Member

dimpase commented Sep 29, 2016

Reviewer: François Bissey

@dimpase
Copy link
Member

dimpase commented Sep 29, 2016

comment:11

Thanks!

@kiwifb
Copy link
Member

kiwifb commented Sep 29, 2016

comment:12

I meant to do that ;)

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

comment:15

Actually, I have the feeling something is missing on this branch, since it only changes CCFLAGS but nothing else.

@jdemeyer jdemeyer changed the title remove gcc builtin functions in ratpoints Remove nested functions in ratpoints Sep 30, 2016
@dimpase
Copy link
Member

dimpase commented Sep 30, 2016

comment:16

Replying to @jdemeyer:

Actually, I have the feeling something is missing on this branch, since it only changes CCFLAGS but nothing else.

Francois, the ball is in your court now... (you didn't ask for a review too :))

@kiwifb
Copy link
Member

kiwifb commented Sep 30, 2016

comment:17

Yes indeed, it looks like I messed up when importing Dima's branch.

As for the version bump. Yes I know we could do that. But really we didn't change any functionality, we just made it possible to compile with other compilers. But OK the patch is not trivial.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 1, 2016

Changed commit from 32c21d9 to dae689c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 1, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

4889e9cun-nested and added const qualifiers to as many params as possible
15e20ffMerge branch 'u/dimpase/ratpts_nonestedfun' of trac.sagemath.org:sage into ratpts_nonestedfun
dae689cVersion bump to force rebuild

@kiwifb
Copy link
Member

kiwifb commented Oct 1, 2016

comment:19

Should all be better now.

@dimpase
Copy link
Member

dimpase commented Oct 1, 2016

comment:20

OK, looks good.

@jdemeyer
Copy link

jdemeyer commented Oct 1, 2016

comment:21

Replying to @kiwifb:

As for the version bump. Yes I know we could do that. But really we didn't change any functionality, we just made it possible to compile with other compilers. But OK the patch is not trivial.

The reason I asked for this is mainly to increase testing coverage. If you bump the version, then everybody who upgrades Sage will rebuild the package with the new patch.

@vbraun
Copy link
Member

vbraun commented Oct 3, 2016

Changed branch from u/fbissey/ratpts_nonestedfun to dae689c

@dimpase
Copy link
Member

dimpase commented Oct 13, 2016

Upstream: Reported upstream. No feedback yet.

@dimpase
Copy link
Member

dimpase commented Oct 13, 2016

Changed commit from dae689c to none

@jdemeyer
Copy link

comment:24

Just commenting that the functionality that ratpoints provides should be replaced with PARI. It seems that PARI is slowly replacing all number-theoretical packages inside Sage. This already happened with genus2red and it should be possible for lcalc and ratpoints too.

@dimpase
Copy link
Member

dimpase commented Jan 12, 2018

comment:25

replacing sounds a bit drastic; adding another backend?

@kiwifb
Copy link
Member

kiwifb commented Jan 13, 2018

comment:26

Replying to @dimpase:

replacing sounds a bit drastic; adding another backend?

Honestly, it doesn't. Reducing your number of dependencies because another one, better maintained, can provide the same functionality is not controversial in my opinion. Who doesn't like less maintenance.

@dimpase
Copy link
Member

dimpase commented Jan 13, 2018

comment:27

ratpoints implements a very tricky mathematics, not something anybody can write. Having more than one implementation is a blessing.

@jdemeyer
Copy link

comment:28

I opened #24531 for that, by the way.

@jdemeyer
Copy link

comment:29

Replying to @dimpase:

ratpoints implements a very tricky mathematics, not something anybody can write.

The PARI developers are not just "anybody" :-) I trust that they know number theory. Besides, the way that I understand things, the code in PARI is actually based on this ratpoints package. They didn't write it from scratch.

@jdemeyer
Copy link

comment:30

Replying to @kiwifb:

Replying to @dimpase:

replacing sounds a bit drastic; adding another backend?

Honestly, it doesn't. Reducing your number of dependencies because another one, better maintained

"better" maintained? I don't think that ratpoints is maintained at all given that the latest release is from 2011.

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

No branches or pull requests

5 participants