On Jul 28, 5:42 pm, William Stein <wst...@gmail.com> wrote: > On Tue, Jul 28, 2009 at 4:47 PM, Robert > > > > > > Bradshaw<rober...@math.washington.edu> wrote: > > > On Jul 28, 2009, at 4:16 PM, William Stein wrote: > > >> On Tue, Jul 28, 2009 at 3:56 PM, David > >> Kirkby<david.kir...@onetel.net> wrote: > > >>> 2009/7/28 William Stein <wst...@gmail.com>: > > >>>> Cool. So your proposal is basically the opposite of David Kirkby's? > >>>> His was to have "-g" nowhere by default, and yours is to have "-g" > >>>> everywhere possible by default. :-) > > >>>> As a Sage users and developer, and after hearing Robert's > >>>> arguments, I > >>>> can definitely see your points. > > >>>> -- William > > >>> I have no problem with that at all. I mainly feel we need > >>> consistancy. > > >>> In which case, when I fiddle around with lcalc, I'll add -g as > >>> default, and will remove it if SAGE_DEBUG is set to 0 > > >>> Does that seem reasonable? > > >> So your proposal is: > > >> * SAGE_DEBUG not set -- have -g's everywhere, but leave -O as is.. > > >> * SAGE_DEBUG = 0 -- have no -g's > > >> * SAGE_DEBUG set and != 0 --- have -g's and -O0's everywhere? > > > I'm always wary of not set not being equivalent to any set value. > > What about > > > SAGE_DEBUG = 0 -- not even -g > > > SAGE_DEBUG = 1 -- -g and other minor non-performance-degrading debug > > flags (default if not set) > > > SAGE_DEBUG = 2 -- -O0, --without-pymalloc, etc. > > > But I'm not strongly opposed to the above system either. > > A possibly amusing alternative: > > SAGE_DEBUG = 0 --- -O0, --without-pymalloc, etc. > > SAGE_DEBUG = 1 -- -g and other minor non-performance-degrading debug > flags (default if not set) > > SAGE_DEBUG = 2 - not even -g, -O2 or higher when possible, but safe > > SAGE_DEBUG = 3 - allow unsafe optimizations;
It feels to me as though higher value of SAGE_DEBUG should do more debugging, not less. There could be two variables: SAGE_DEBUG and SAGE_OPTIMIZE, each of which could be set to various levels... John --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---