Re: [sage-devel] Versioning objects

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 9:10 AM, Kwankyu Lee ekwan...@gmail.com wrote: Hi, How does Sage solve the following situation? A user stores objects pickled in Sage version X.1. Then a developer changes internal logic and data structure of the class of the objects for Sage version X.2. If we assume

Re: [sage-devel] Homset or Homspace

2011-05-26 Thread Robert Bradshaw
Hom(X, Y) is always a set, calling it a homspace seems (to me) to imply some more specific kind of structure, for example (but not necessarily) a vector space. It's nice to always use the same term everywhere for consistency. Homspace is a lot less common:

Re: [sage-devel] Color('red') == Color('red') returns False

2011-05-25 Thread Robert Bradshaw
No, comparison of colors has simply never been implemented. Should be an easy starter ticket. On Wed, May 25, 2011 at 11:14 AM, slabbe sla...@gmail.com wrote: Is this desired? sage: Color('red') == Color('red') False Sébastien -- To post to this group, send an email to

Re: [sage-devel] Review delegation

2011-05-25 Thread Robert Bradshaw
2011/5/25 Tom Boothby tomas.boot...@gmail.com: In the past, I've sent out a few dozen emails to people to urge developers to do more reviews.  They usually look something like, Hi ___, Please take a minute and look at the following tickets:   SAGE Notebook leaves dead processes on OS X  

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-10 Thread Robert Bradshaw
On Tue, May 10, 2011 at 7:19 AM, Volker Braun vbraun.n...@gmail.com wrote: IMHO the list of installed files is an integral piece of package management and should explicitly be part of the spkg. Automatically generating it is not an option during parallel compilation. There should be a

Re: [sage-devel] New guidelines for spkg's

2011-05-09 Thread Robert Bradshaw
On Sun, May 8, 2011 at 4:43 AM, David Kirkby drkir...@gmail.com wrote: On 8 May 2011 05:37, Robert Bradshaw rober...@math.washington.edu wrote: On Sat, May 7, 2011 at 6:45 AM, David Kirkby drkir...@gmail.com wrote: On 7 May 2011 10:59, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-05-06

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-09 Thread Robert Bradshaw
On Mon, May 9, 2011 at 3:05 AM, Ondrej Certik ond...@certik.cz wrote: On Sat, May 7, 2011 at 9:41 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Fri, May 6, 2011 at 2:21 PM, Ondrej Certik ond...@certik.cz wrote: On Fri, May 6, 2011 at 2:19 PM, Ondrej Certik ond...@certik.cz wrote

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-09 Thread Robert Bradshaw
On Mon, May 9, 2011 at 2:57 PM, Ondrej Certik ond...@certik.cz wrote: On Mon, May 9, 2011 at 9:11 AM, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, May 9, 2011 at 3:05 AM, Ondrej Certik ond...@certik.cz wrote: On Sat, May 7, 2011 at 9:41 PM, Robert Bradshaw rober

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-07 Thread Robert Bradshaw
On Sat, May 7, 2011 at 2:55 AM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-05-06 20:26, Robert Bradshaw wrote: And I'd love to have a live head to test and rebase against. Something like the sage merger script, but automated as every ticket on trac with positive review + release

Re: [sage-devel] New guidelines for spkg's

2011-05-07 Thread Robert Bradshaw
On Sat, May 7, 2011 at 6:45 AM, David Kirkby drkir...@gmail.com wrote: On 7 May 2011 10:59, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-05-06 19:53, Robert Bradshaw wrote: Even better would be to checksum the source in a src.md5 file, and have sage -spgk warn/error if the checksums

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-07 Thread Robert Bradshaw
On Fri, May 6, 2011 at 2:21 PM, Ondrej Certik ond...@certik.cz wrote: On Fri, May 6, 2011 at 2:19 PM, Ondrej Certik ond...@certik.cz wrote: On Fri, May 6, 2011 at 11:26 AM, Robert Bradshaw rober...@math.washington.edu wrote: [...] Were I to design the system from scratch, I'd put all our

Re: [sage-devel] Re: Patchbot confusing tickets?

2011-05-06 Thread Robert Bradshaw
On Fri, May 6, 2011 at 12:24 AM, Keshav Kini keshav.k...@gmail.com wrote: Hi Simon, There is no 4.7 yet, so I'm not sure how the patchbot can do what you want. Robert Bradshaw has set up the patchbot to work from the last stable release, which is 4.6.2. You may need to rebase your entire

Re: [sage-devel] New guidelines for spkg's

2011-05-06 Thread Robert Bradshaw
On Fri, May 6, 2011 at 6:26 AM, Dr. David Kirkby david.kir...@onetel.net wrote: On 05/ 6/11 10:08 AM, Jeroen Demeyer wrote: On 2011-05-05 23:42, Dr. David Kirkby wrote: I've often wondered if it would be possible to safely remove the write permissions from the src directory and everything

Re: [sage-devel] New guidelines for spkg's

2011-05-06 Thread Robert Bradshaw
On Fri, May 6, 2011 at 8:26 AM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-05-06 15:26, Dr. David Kirkby wrote: So, it it was possible to protect against that, I think it would be a good idea. One check could be done in the merger script: If the new and old spkgs have the same

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-06 Thread Robert Bradshaw
On Fri, May 6, 2011 at 12:12 AM, Keshav Kini keshav.k...@gmail.com wrote: Hi Jeroen, I'd suggest that SPKG authors make their final commit themselves rather than just allowing Jeroen's script to do it for them - this keeps the blame history intact (assuming Jeroen's script doesn't mine

Re: Re: [sage-devel] Re: New guidelines for spkg's

2011-05-06 Thread Robert Bradshaw
On Fri, May 6, 2011 at 11:41 AM, Martin Albrecht martinralbre...@googlemail.com wrote: The other problem is that so much isn't under revision control (eg. what versions of spkgs to use), or in multiple repositories that need to be kept in sync. Were I to design the system from scratch, I'd put

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-05 Thread Robert Bradshaw
On Thu, May 5, 2011 at 8:47 AM, kcrisman kcris...@gmail.com wrote: Further ideas, suggestions, complaints are welcome. I agree with the sentiment expressed elsewhere in previous threads that the changelog should be in the hg log, and not necessarily in the SPKG.txt file.  In other words, I

Re: [sage-devel] Disabling doctests when they are known to fail. Should we have failures?

2011-05-05 Thread Robert Bradshaw
On Tue, May 3, 2011 at 12:09 AM, Dr. David Kirkby david.kir...@onetel.net wrote: A discussion started on sage-release, which I think is best on sage-devel. I believe this ticket http://trac.sagemath.org/sage_trac/ticket/11277 is a very bad idea, as it disables a doctest which is known to

Re: [sage-devel] Re: Disabling doctests when they are known to fail. Should we have failures?

2011-05-05 Thread Robert Bradshaw
On Thu, May 5, 2011 at 1:07 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/5/11 2:54 PM, Robert Bradshaw wrote: manually keeping track of known failures is cumbersome and more likely to let in new failures in the files known to fail. One possibility is to use nose for tests like

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-05 Thread Robert Bradshaw
On Thu, May 5, 2011 at 1:34 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/5/11 3:29 PM, Jeroen Demeyer wrote: On 2011-05-05 20:20, Dr. David Kirkby wrote: I like SPKG.txt. Personally I would have called the file ChangeLog in common with just about every other software project, but

Re: [sage-devel] Re: New guidelines for spkg's

2011-05-05 Thread Robert Bradshaw
On Thu, May 5, 2011 at 3:02 PM, Francois Bissey francois.bis...@canterbury.ac.nz wrote: On Thu, May 5, 2011 at 1:34 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/5/11 3:29 PM, Jeroen Demeyer wrote: On 2011-05-05 20:20, Dr. David Kirkby wrote: I like SPKG.txt. Personally I would

Re: [sage-devel] Debugging exceptions in Python/Cython?

2011-05-04 Thread Robert Bradshaw
Are you returning a non-python object in a cdef method without an except signature? (In this case, it should be printing where the exception was unable to be propagated.) Turning on profiling is another way to get call stacks. On Wed, May 4, 2011 at 11:53 AM, Jeroen Demeyer jdeme...@cage.ugent.be

Re: [sage-devel] Debugging exceptions in Python/Cython?

2011-05-04 Thread Robert Bradshaw
On Wed, May 4, 2011 at 2:16 PM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-05-04 23:06, Robert Bradshaw wrote: Are you returning a non-python object in a cdef method without an except signature? This is not the issue. I think that *somewhere* in Sage a KeyboardInterrupt exception

Re: [sage-devel] Debugging exceptions in Python/Cython?

2011-05-04 Thread Robert Bradshaw
On Wed, May 4, 2011 at 3:05 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, May 4, 2011 at 2:16 PM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-05-04 23:06, Robert Bradshaw wrote: Are you returning a non-python object in a cdef method without an except signature

Re: [sage-devel] Re: Is this a bug in coercion?

2011-04-28 Thread Robert Bradshaw
On Thu, Apr 28, 2011 at 11:57 AM, kcrisman kcris...@gmail.com wrote: On Apr 28, 10:49 am, Maarten Derickx m.derickx.stud...@gmail.com wrote: I think that somewhere the factor with which you multiply is checked for being -1,0 or 1 and that that causes the problem. Here is at least an easier

Re: [sage-devel] Can I use patchbot?

2011-04-27 Thread Robert Bradshaw
On Wed, Apr 27, 2011 at 7:14 PM, Dan Drake dr...@kaist.edu wrote: On Wed, 27 Apr 2011 at 06:32PM -0700, Kwankyu Lee wrote: I hear about patchbot here and there. I understand it as an automatic patch testing system. Is that available to an occasional developer like me? Or is that for the

Re: [sage-devel] Re: Documentation tips...

2011-04-23 Thread Robert Bradshaw
On Sat, Apr 23, 2011 at 8:45 AM, kcrisman kcris...@gmail.com wrote: On Apr 23, 9:56 am, Florent Hivert florent.hiv...@univ-rouen.fr wrote:       Hi Simon, There is another quite common mistake: It should be     EXAMPLE::         sage: bla and not     EXAMPLE:         sage:

Re: [sage-devel] default __hash__

2011-04-21 Thread Robert Bradshaw
be broken inadvertently, even by a total    beginner, by using the rename feature:     sage: K = QQ['x']     sage: hash(K)     -764788796815899192     sage: K.rename(K)     sage: hash(K)     9600028874 This one is fixed in #8119 thanks to Robert Bradshaw. I'm ok with the patch but I

Re: [sage-devel] Re: Windows port status

2011-04-20 Thread Robert Bradshaw
On Tue, Apr 19, 2011 at 9:50 PM, Volker Braun vbraun.n...@gmail.com wrote: If you are fine with using a virtual machine then just punch the notebook port through. The only thing running native would be the browser rendering the worksheet. I think that this is the whole point no matter what

Re: [sage-devel] Q.lift()(x) or Q.lift(x)?

2011-04-20 Thread Robert Bradshaw
On Wed, Apr 20, 2011 at 5:15 AM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: On Wed, Apr 20, 2011 at 02:34:49AM -0700, Simon King wrote:  * Q.lift(x) should be removed, and the category framework for quotient rings should request a parent method lifting_morphism instead of lift. For

Re: [sage-devel] buildbot applying to 4.6.2

2011-04-19 Thread Robert Bradshaw
On Sun, Apr 17, 2011 at 7:38 PM, Robert Miller r...@rlmiller.org wrote: I'm not sure exactly how the buildbot works, but it seems to be automatically testing new patches against sage-4.6.2, even though the latest (dev) sage is 4.7.alpha4. Seems we've moved away from the release early, release

Re: [sage-devel] State of the Patchbot

2011-04-19 Thread Robert Bradshaw
On Mon, Apr 18, 2011 at 5:52 PM, Rob Beezer goo...@beezer.cotse.net wrote: First, the patchbot is an excellent idea and will be a very useful tool.  Thanks, Robert, for your work on it. Thank you. I haven't gotten to do much with it lately, but hope to get back on it (in particular, get it

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-19 Thread Robert Bradshaw
On Sun, Apr 17, 2011 at 1:54 AM, Nathann Cohen nathann.co...@gmail.com wrote: Manually run sage -cython -a path/to/devel/sage/... and it will set up the proper include paths and run cython to make the .html (and .c) files. Yea !! Thank you !! I don't remember if this made it into

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-19 Thread Robert Bradshaw
On Tue, Apr 19, 2011 at 12:36 AM, Nathann Cohen nathann.co...@gmail.com wrote: will be out, but we just merged generators). When you say generators Does it mean that the promised yield ? Yep, that's the magic keywords. -- To post to this group, send an email to

Re: [sage-devel] default __hash__

2011-04-19 Thread Robert Bradshaw
On Mon, Apr 18, 2011 at 10:24 PM, William Stein wst...@gmail.com wrote: On Mon, Apr 18, 2011 at 9:09 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, Apr 18, 2011 at 4:13 PM, William Stein wst...@gmail.com wrote: Hi, I was just explaining to a student in my Sage course how I

Re: [sage-devel] Re: build timing

2011-04-19 Thread Robert Bradshaw
On Sun, Apr 17, 2011 at 10:33 AM, John H Palmieri jhpalmier...@gmail.com wrote: On Sunday, April 17, 2011 3:58:46 AM UTC-7, Samuel Lelievre wrote: Hello, Is it possible to get a timing indication at the end of make, similar to the one at the end of make ptestlong, which looks something

Re: [sage-devel] Units

2011-04-19 Thread Robert Bradshaw
On Tue, Apr 19, 2011 at 4:39 PM, Simon simonjty...@gmail.com wrote: I'm not sure that I understand the logic in the units package. http://www.sagemath.org/doc/reference/sage/symbolic/units.html The temperature units have their own convert_temperature() function while every other unit is

Re: [sage-devel] default __hash__

2011-04-18 Thread Robert Bradshaw
On Mon, Apr 18, 2011 at 4:13 PM, William Stein wst...@gmail.com wrote: Hi, I was just explaining to a student in my Sage course how I had stupidly defined a default __hash__ method for SageObject, which was -- stupidly -- to just hash the string representation.  This was of course silly and

Re: [sage-devel] new group sage-trac-account for managing trac accounts

2011-04-16 Thread Robert Bradshaw
On Sat, Apr 16, 2011 at 3:56 AM, Dr. David Kirkby david.kir...@onetel.net wrote: On 04/15/11 09:43 PM, Justin C. Walker wrote: On 15 Apr, 2011, at 13:21 PM, David Kirkby wrote: On 15 April 2011 17:51, Volker Braunvbraun.n...@gmail.com  wrote: I would think that it is sufficient to only

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-16 Thread Robert Bradshaw
On Fri, Apr 15, 2011 at 3:07 AM, Nathann Cohen nathann.co...@gmail.com wrote: Hello everybody ! Robert showed me a few days ago that it was possible to obtain a clear version of the C code generated by Cython when compiling a .pyx file, while I was trying to read the obfuscated one ^^; Now

Re: [sage-devel] Re: profiling cython

2011-04-16 Thread Robert Bradshaw
On Thu, Apr 14, 2011 at 3:06 AM, Martin Rubey martin.ru...@math.uni-hannover.de wrote: Robert Bradshaw rober...@math.washington.edu writes: On Wed, Apr 13, 2011 at 7:19 AM, Martin Rubey martin.ru...@math.uni-hannover.de wrote: Simon King simon.k...@uni-jena.de writes: On 13 Apr., 15:53

Re: [sage-devel] profiling cython

2011-04-13 Thread Robert Bradshaw
On Wed, Apr 13, 2011 at 5:34 AM, Martin Rubey martin.ru...@math.uni-hannover.de wrote: Hi there! I'd like to profile some performance-critical cythonized sage code.  I read that this can be done by writing # cython: profile=True at the very beginning of my file (which is configs.spyx).  

Re: [sage-devel] Re: profiling cython

2011-04-13 Thread Robert Bradshaw
On Wed, Apr 13, 2011 at 7:19 AM, Martin Rubey martin.ru...@math.uni-hannover.de wrote: Simon King simon.k...@uni-jena.de writes: On 13 Apr., 15:53, Martin Rubey martin.ru...@math.uni-hannover.de wrote: 2) The spyx file gets a header prepended, meaning that the #cython ... pragmas are not

Re: [sage-devel] Re: has Apple effectively forked gcc?

2011-04-08 Thread Robert Bradshaw
On Fri, Apr 8, 2011 at 1:32 PM, Tim Lahey tim.la...@gmail.com wrote: On Fri, Apr 8, 2011 at 12:51 PM, Tim Lahey tim.la...@gmail.com wrote: On Fri, Apr 8, 2011 at 3:37 PM, William Stein wst...@gmail.com wrote: OS X comes with XCode, it's just not installed. It's just XCode 4 that costs $4.99.

Re: [sage-devel] Re: Is cross-reviewing allowed?

2011-04-07 Thread Robert Bradshaw
On Thu, Apr 7, 2011 at 12:23 AM, Simon King simon.k...@uni-jena.de wrote: Hi Rob, On 7 Apr., 09:09, Rob Beezer goo...@beezer.cotse.net wrote: I believe I wrote that, and it has been my experience that a reviewer patch is often reviewed by the main author. I was not talking about a reviewer

Re: [sage-devel] Re: lcalc code quality

2011-04-02 Thread Robert Bradshaw
On Sat, Apr 2, 2011 at 8:18 AM, David Kirkby david.kir...@onetel.net wrote: On 2 April 2011 14:20, Bill Hart goodwillh...@googlemail.com wrote: Please also bear in mind that many upstream developers have put years of their life into research, development of algorithms and coding. Many of them

Re: [sage-devel] Difference between conversion and coercion?

2011-04-01 Thread Robert Bradshaw
On Thu, Mar 31, 2011 at 11:25 PM, Simon King simon.k...@uni-jena.de wrote: Hi! I hope sage-devel is the right place to ask a very basic question on the coercion model. sage.structure.parent.Parent has methods register_conversion and register_coercion. What is the difference between

Re: [sage-devel] Re: lcalc code quality

2011-04-01 Thread Robert Bradshaw
On Thu, Mar 31, 2011 at 12:09 PM, kcrisman kcris...@gmail.com wrote: And I agree that we should communicate with the author politely. I was addressing the Sage developers that use lcalc, and I think that its allowable to use a more colloquial tone in that case. I would submit that we should

Re: [sage-devel] Debugging some cython code / Pynac

2011-04-01 Thread Robert Bradshaw
On Fri, Apr 1, 2011 at 3:46 PM, Burcin Erocal bur...@erocal.org wrote: On Fri, 01 Apr 2011 17:20:57 +0100 Dr. David Kirkby david.kir...@onetel.net wrote: On 04/ 1/11 12:54 PM, Burcin Erocal wrote: On Fri, 01 Apr 2011 00:37:46 +0100 Dr. David Kirkbydavid.kir...@onetel.net  wrote: I've

Re: [sage-devel] lcalc code quality

2011-03-31 Thread Robert Bradshaw
On Thu, Mar 31, 2011 at 9:22 AM, Volker Braun vbraun.n...@gmail.com wrote: Is anybody working on either removing lcalc or getting its code up to reasonable quality? Is it not giving you the right answers anymore? Does anybody know the upstream author? Yes, several of us. The lcalc spkg

Re: [sage-devel] Changing Complex Plot

2011-03-22 Thread Robert Bradshaw
On Tue, Mar 22, 2011 at 1:52 PM, Ethan Van Andel evlu...@gmail.com wrote: What would people think about changing complex_plot.pyx in the following manner: ComplexPlot is changed so that the complex_to_rgb function is passed as a parameter on creation. The complex_plot function will then pass

Re: [sage-devel] The hash function for matrices suffers from many collisions with permutation matrices

2011-03-17 Thread Robert Bradshaw
I don't see an attached patch, but a criteria is that it's easy to compute for both dense and sparse matrices and for is a function of the hash of its elements to satisfy equal matrices over different parents having the same hash. On Wed, Mar 16, 2011 at 11:09 AM, Nicolas M. Thiery

Re: [sage-devel] What should a reviewer do if s/he thinks a ticket is wontfix or duplicate or invalid?

2011-03-17 Thread Robert Bradshaw
On Wed, Mar 16, 2011 at 11:51 PM, Simon King simon.k...@uni-jena.de wrote: Hi, it happened again, although I perfectly know that closing a trac ticket is the job of the release manager. The only reason as far as I know that closing a ticket is the job of the release manager is to make sure

Re: [sage-devel] Re: The hash function for matrices suffers from many collisions with permutation matrices

2011-03-17 Thread Robert Bradshaw
On Thu, Mar 17, 2011 at 4:06 AM, David Roe r...@math.harvard.edu wrote: for is a function of the hash of its elements to satisfy equal matrices over different parents having the same hash. Err, sorry, I don't manage to parse the end of the sentence. Do you mind reformulating? I think what

Re: [sage-devel] Re: Proposal - Add notes of verification as comments to doctests

2011-03-17 Thread Robert Bradshaw
On Thu, Mar 17, 2011 at 4:04 PM, Dr. David Kirkby david.kir...@onetel.net wrote: On 03/17/11 04:26 PM, kcrisman wrote: You are also encouraged to provide examples which can only be computed with Sage. To promote Sage, you could add a comment to the documentation something like: To my

Re: [sage-devel] Re: Failed tests for accuracy reasons

2011-03-16 Thread Robert Bradshaw
On Tue, Mar 15, 2011 at 12:55 PM, David Kirkby david.kir...@onetel.net wrote: On 15 March 2011 17:05, Julien PUYDT julien.pu...@laposte.net wrote: Le 14/03/2011 20:00, Robert Bradshaw a écrit : In the case of the OP's failures, that processor (or libm, libc, whatever) is giving us less

Re: [sage-devel] Re: Proposal - Add notes of verification as comments to doctests

2011-03-16 Thread Robert Bradshaw
On Mon, Mar 14, 2011 at 8:45 AM, Johan S. R. Nielsen j.s.r.niel...@mat.dtu.dk wrote: On Mar 14, 10:58 am, Volker Braun vbraun.n...@gmail.com wrote: On Monday, March 14, 2011 6:13:54 AM UTC, Dr. David Kirkby wrote: 1) A doctest should have a comment by it, referencing the trac ticket where

Re: [sage-devel] Re: Failed tests for accuracy reasons

2011-03-16 Thread Robert Bradshaw
On Wed, Mar 16, 2011 at 4:58 AM, Julien PUYDT julien.pu...@laposte.net wrote: Le 16/03/2011 08:55, Robert Bradshaw a écrit : We can, for example, call gsl rather than libc. Or we can special case this processor and/or set of values. Whatever process is used to compute the value, the fact

Re: [sage-devel] Re: Failed tests for accuracy reasons

2011-03-16 Thread Robert Bradshaw
On Wed, Mar 16, 2011 at 6:15 PM, Jason Grout jason-s...@creativetrax.com wrote: On 3/16/11 3:04 PM, Peter Jeremy wrote: Overall, I believe the abs(actual-expected)tiny_number approach is the only practical way to handle doctests.  The expected numeric result is still available, just not on a

Re: [sage-devel] Re: Proposal - Add notes of verification as comments to doctests

2011-03-16 Thread Robert Bradshaw
On Wed, Mar 16, 2011 at 6:15 PM, Dr. David Kirkby david.kir...@onetel.net wrote: On 03/16/11 08:21 AM, Robert Bradshaw wrote: If the author can't justify the doctest, then that's a problem, and if the reviewer can't (after consulting the author) then either he shouldn't give a positive review

Re: [sage-devel] Re: Failed tests for accuracy reasons

2011-03-14 Thread Robert Bradshaw
On Mon, Mar 14, 2011 at 8:49 AM, David Kirkby david.kir...@onetel.net wrote: On 14 March 2011 14:58, rjf fate...@gmail.com wrote: At the risk of pointing out the obvious, there are 2 well known tests for the closeness of two numbers. relative error and absolute error. abs( (a-b)/a)  is

Re: [sage-devel] Re: Failed tests for accuracy reasons

2011-03-14 Thread Robert Bradshaw
On Mon, Mar 14, 2011 at 12:42 PM, Willem Jan Palenstijn w...@usecode.org wrote: On Mon, Mar 14, 2011 at 05:44:26PM +, David Kirkby wrote: On 14 March 2011 16:42, Willem Jan Palenstijn w...@usecode.org wrote: You can use hg to find out which commit added it, and if that commit is recent

Re: [sage-devel] Re: evaluation of polynomials in several variables

2011-03-14 Thread Robert Bradshaw
On Fri, Mar 11, 2011 at 8:42 AM, Simon King simon.k...@uni-jena.de wrote: On 11 Mrz., 17:24, Volker Braun vbraun.n...@gmail.com wrote: Substitution should always try to return the same type (i.e. same parent) if possible. Anything else will just be a constant source of bugs where your code

Re: [sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Robert Bradshaw
On Fri, Mar 11, 2011 at 11:39 AM, John H Palmieri jhpalmier...@gmail.com wrote: On Friday, March 11, 2011 10:39:18 AM UTC-8, kcrisman wrote: If you do, then I bet that the problem is the double slash.  In fact, we just ran into this same sort of problem when working on the new jmol going

Re: [sage-devel] How to tell if a FLOSS project is doomed to FAIL

2011-03-09 Thread Robert Bradshaw
2011/3/9 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andr...@gmail.com:  This may be of interest https://www.theopensourceway.org/wiki/How_to_tell_if_a_FLOSS_project_is_doomed_to_FAIL and should explain why sage is not included and/or built from sources in any major distro. Well, I

Re: [sage-devel] Re: How to tell if a FLOSS project is doomed to FAIL

2011-03-09 Thread Robert Bradshaw
On Wed, Mar 9, 2011 at 4:35 PM, Tom Boothby tomas.boot...@gmail.com wrote: 2011/3/9 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andr...@gmail.com:  But I did not account: Releases - Your releases are only in an encapsulation format that you invented. [ +100 points of FAIL ]  ((

Re: [sage-devel] Re: exceptions, Python, Cython, C

2011-03-07 Thread Robert Bradshaw
That would do it :). This is why we need automatic .h - .pxd declarations. Also, it's been thrown around a couple of times that it may be worth making cdef foo() a warning, forcing the user to explicitly declare cdef object foo() (or, in your case, cdef int foo() :-). On Mon, Mar 7, 2011 at 1:24

Re: [sage-devel] Re: Preparsing madness...

2011-03-05 Thread Robert Bradshaw
On Sat, Mar 5, 2011 at 12:26 AM, Simon King simon.k...@uni-jena.de wrote: Hi Robert, On 4 Mrz., 22:18, Robert Bradshaw rober...@math.washington.edu wrote: ... See the PyUnicode_IsIdentifier function. ... which soon refers to two other functions (_PyUnicode_IsXidStart

Re: [sage-devel] Try searching for Mathematica in Google

2011-03-05 Thread Robert Bradshaw
On Sat, Mar 5, 2011 at 11:19 AM, Dr. David Kirkby david.kir...@onetel.net wrote: If you try a Google search for Mathematica, you should (I hope) be able to find a sponsored ad for Sage. Please do NOT click it, as I'm paying for every click, so would rather only people who don't know about Sage

Re: [sage-devel] Re: Preparsing madness...

2011-03-04 Thread Robert Bradshaw
2011/3/4 Simon King simon.k...@uni-jena.de: PS: On 4 Mrz., 09:06, Simon King simon.k...@uni-jena.de wrote: What about the following idea:  1. var(s) only accept strings and lists of strings, and for backwards compatibility one could also make it accept objects whose string representation

Re: [sage-devel] Re: Preparsing madness...

2011-03-04 Thread Robert Bradshaw
On Fri, Mar 4, 2011 at 12:45 AM, Simon King simon.k...@uni-jena.de wrote: Hi Robert, On 4 Mrz., 09:30, Robert Bradshaw rober...@math.washington.edu wrote: So one would have to do     alpha=var(α, validate_name=False) to avoid an error? Yes, that was the idea. Also, I'd still like

Re: [sage-devel] Re: Preparsing madness...

2011-03-04 Thread Robert Bradshaw
On Fri, Mar 4, 2011 at 12:33 PM, Simon King simon.k...@uni-jena.de wrote: Hi Robert, On 4 Mrz., 19:39, Robert Bradshaw rober...@math.washington.edu wrote: How to test whether something is a valid identifier in Python3? I don't know. Fortunately, Python is open source :) I can't imagine

Re: [sage-devel] Questions regarding import from extension classes

2011-03-03 Thread Robert Bradshaw
On Thu, Mar 3, 2011 at 7:08 AM, luisfe lftab...@yahoo.es wrote: Could someone highlight why the following happens? from a sage session, the names that can be imported from sage.rings.integer_ring are: {{{ EuclideanDomains     Z                    factor is_IntegerRing IntegerRing          

Re: [sage-devel] Re: Preparsing madness...

2011-03-03 Thread Robert Bradshaw
On Thu, Mar 3, 2011 at 2:52 AM, Simon King simon.k...@uni-jena.de wrote: Hi Burcin and all, On 2 Mrz., 17:36, Burcin Erocal bur...@erocal.org wrote: People might want to use utf-8 strings which won't be valid under that condition. See #7496: http://trac.sagemath.org/sage_trac/ticket/7496

Re: [sage-devel] Re: Preparsing madness...

2011-03-03 Thread Robert Bradshaw
On Thu, Mar 3, 2011 at 1:23 PM, Simon King simon.k...@uni-jena.de wrote: Hi Robert, On 3 Mrz., 20:02, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Mar 3, 2011 at 2:52 AM, Simon King simon.k...@uni-jena.de wrote: Hi Burcin and all, On 2 Mrz., 17:36, Burcin Erocal bur

Re: [sage-devel] Re: Questions regarding import from extension classes

2011-03-03 Thread Robert Bradshaw
On Thu, Mar 3, 2011 at 2:12 PM, luisfe lftab...@yahoo.es wrote: The difference is with sage.all $ sage -ipython Python 2.6.4 (r264:75706, Jan 15 2011, 11:46:28) Type copyright, credits or license for more information. IPython 0.9.1 -- An enhanced Interactive Python. ?         -

Re: [sage-devel] Re: Preparsing madness...

2011-03-02 Thread Robert Bradshaw
On Wed, Mar 2, 2011 at 10:03 AM, D. S. McNeil dsm...@gmail.com wrote: For what reason is var(s) not raising an error if not s.isalnum()? People might want to use utf-8 strings which won't be valid under that condition. Even x_1 fails an alnum check. It would make sense to exclude some

Re: [sage-devel] Re: Preparsing madness...

2011-03-02 Thread Robert Bradshaw
On Wed, Mar 2, 2011 at 1:57 PM, Jason Grout jason-s...@creativetrax.com wrote: On 3/2/11 2:37 PM, Robert Bradshaw wrote: On Wed, Mar 2, 2011 at 10:03 AM, D. S. McNeildsm...@gmail.com  wrote: For what reason is var(s) not raising an error if not s.isalnum()? People might want to use utf-8

Re: [sage-devel] QuadraticForm Impact/Usage information?

2011-03-02 Thread Robert Bradshaw
I've used them in computing Heegner points as well. On Wed, Mar 2, 2011 at 8:17 PM, John Cremona john.crem...@gmail.com wrote: I have, in a small way:  computing Hilbert modular polynomials.  And probably also in computing Heegner points. Good luck! John On Wed, Mar 2, 2011 at 5:29 PM,

Re: [sage-devel] Re: profiling Sage startup

2011-03-01 Thread Robert Bradshaw
On Tue, Mar 1, 2011 at 12:48 AM, Johan S. R. Nielsen j.s.r.niel...@mat.dtu.dk wrote: On Feb 23, 11:03 pm, Jason Grout jason-s...@creativetrax.com wrote: On 2/23/11 3:56 PM, Robert Bradshaw wrote: On Wed, Feb 23, 2011 at 1:47 PM, Jason Grout jason-s...@creativetrax.com  wrote: On 2/23/11

Re: [sage-devel] Re: profiling Sage startup

2011-03-01 Thread Robert Bradshaw
On Tue, Mar 1, 2011 at 4:32 AM, Johan S. R. Nielsen j.s.r.niel...@mat.dtu.dk wrote: On Mar 1, 10:13 am, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Mar 1, 2011 at 12:48 AM, Johan S. R. Nielsen j.s.r.niel...@mat.dtu.dk wrote: On Feb 23, 11:03 pm, Jason Grout jason-s

Re: [sage-devel] Re: profiling Sage startup

2011-03-01 Thread Robert Bradshaw
On Tue, Mar 1, 2011 at 4:56 AM, luisfe lftab...@yahoo.es wrote: On Mar 1, 1:32 pm, Johan S. R. Nielsen j.s.r.niel...@mat.dtu.dk wrote: On Mar 1, 10:13 am, Robert Bradshaw rober...@math.washington.edu wrote: Nice! I weren't aware of this module. When you get a good idea, there's a good

Re: [sage-devel] Re: profiling Sage startup

2011-03-01 Thread Robert Bradshaw
On Tue, Mar 1, 2011 at 10:07 AM, David Kirkby david.kir...@onetel.net wrote: On 1 March 2011 15:38, daly d...@axiom-developer.org wrote: Sage could follow the same technique used by Gimp. Gimp loads a huge number of files at startup and can take over a minute to start on small systems. They

Re: [sage-devel] Re: Documentation of prcedures with decorator

2011-02-28 Thread Robert Bradshaw
On Mon, Feb 28, 2011 at 3:32 AM, Simon King simon.k...@uni-jena.de wrote: On 28 Feb., 12:18, Simon King simon.k...@uni-jena.de wrote: ... I recall that it is impossible to modifiy __doc__ in Cython - could this be a related problem? That could very well be: cached_method is defined in

Re: [sage-devel] Re: Documentation of prcedures with decorator

2011-02-28 Thread Robert Bradshaw
On Mon, Feb 28, 2011 at 11:38 AM, Simon King simon.k...@uni-jena.de wrote: Hi Robert, On 28 Feb., 19:56, Robert Bradshaw rober...@math.washington.edu wrote: If you add a cdef object __doc__ member to that class, you should be able to assign to it. I am afraid this is not true. One

Re: [sage-devel] Re: Documentation of prcedures with decorator

2011-02-28 Thread Robert Bradshaw
On Mon, Feb 28, 2011 at 2:35 PM, Simon King simon.k...@uni-jena.de wrote: Hi Robert! On 28 Feb., 21:00, Robert Bradshaw rober...@math.washington.edu wrote: ... Sorry, I forgot to mention that it must be declared as cdef public object __doc__. Otherwise it doesn't create a Python-visible

Re: [sage-devel] Re: Documentation of prcedures with decorator

2011-02-28 Thread Robert Bradshaw
On Mon, Feb 28, 2011 at 11:39 PM, Simon King simon.k...@uni-jena.de wrote: Hi Robert, On 1 Mrz., 00:15, Robert Bradshaw rober...@math.washington.edu wrote: ... Namely, cached_method tries to obtain certain attributes common to python functions from its argument. func_defaults is just one

Re: [sage-devel] Re: Support contracts for commercial customers.

2011-02-27 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 9:34 PM, daly d...@axiom-developer.org wrote: On Sat, 2011-02-26 at 20:09 -0800, Nils Bruin wrote: On Feb 25, 10:52 pm, William Stein wst...@gmail.com wrote: 2) Pay for advertising Sage in maths journals, New Scientist, or if deemed appropriate, anywhere where the 4

Re: [sage-devel] How to target Mathematica on Google - I'll pay !!!

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 6:40 AM, David Kirkby david.kir...@onetel.net wrote: I'm willing to donate £30.00 ($48) of my own money to target Mathematica, so when people search for it, they get ads for Sage on Google. That might not be enough to make any impact, but it's worth a try. 1) First,

Re: [sage-devel] Re: How to target Mathematica on Google - I'll pay !!!

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 6:26 PM, kcrisman kcris...@gmail.com wrote: In contrast, when searching for Mathematica, the first hit with Sage in the name is around #50, which is a comparison of Mathematica vs Sage - one where the author clearly considers Mathematica much better.

Re: [sage-devel] Re: exceptions, Python, Cython, C

2011-02-25 Thread Robert Bradshaw
On Fri, Feb 25, 2011 at 8:07 AM, Jason Grout jason-s...@creativetrax.com wrote: On 2/24/11 11:35 PM, Robert Bradshaw wrote: On Thu, Feb 24, 2011 at 8:52 PM, Robert Millerrlmills...@gmail.com  wrote: I'm working on wrapping a C package in Cython for use in Sage, and I'm having some trouble

Re: [sage-devel] Re: Support contracts for commercial customers.

2011-02-24 Thread Robert Bradshaw
On Thu, Feb 24, 2011 at 11:18 AM, Tom Boothby tomas.boot...@gmail.com wrote: I'm also curious about honest *opinions* about how people in the Sage community would feel about a company making potentially gobs of money selling support contracts?   What balance between profit and giving back to

Re: [sage-devel] Re: profiling Sage startup

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 4:43 AM, Volker Braun vbraun.n...@gmail.com wrote: I take it that the slow thing is reading ~2000 sage library files from a harddisk into the filesystem cache. I'm using SSDs and Sage starts consistently within about 1 second. There is sage -startuptime to profile. The

Re: [sage-devel] Re: Side-effect of preparsing implicit symbolic function definitions

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 10:48 AM, Jason Grout jason-s...@creativetrax.com wrote: On 2/23/11 11:35 AM, Nils Bruin wrote: When I saw the following, initially I thought the preparser was providing a very convenient feature:   sage: f(t)=sin(t)   sage: f   t |--  sin(t)   sage: parent(t)  

Re: [sage-devel] Re: Side-effect of preparsing implicit symbolic function definitions

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 11:45 AM, Nils Bruin nbr...@sfu.ca wrote: Do you have the same objections to: R.x,y=QQ[]? No, but that is because I am used to magma. Perhaps also because the notation contrasts with R = QQ[x,y]. The fact that the variable names only occur on the left side (and in

Re: [sage-devel] Re: Updating the Developer's Walk-Through

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 10:13 AM, slabbe sla...@gmail.com wrote: Hi, I'm going to still wait a few days before starting, so feel free to pile on if you would like to add to the discussion. At Sage Days 28, I gave a talk about how to contribute to Sage. The philosophy I choose to present was

Re: [sage-devel] Re: profiling Sage startup

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 11:34 AM, William Stein wst...@gmail.com wrote: On Wed, Feb 23, 2011 at 10:57 AM, Jason Grout jason-s...@creativetrax.com wrote: On 2/23/11 12:28 PM, William Stein wrote: At lunch yesterday Robert Bradshaw made the interesting suggestion to read the docs for importlib

Re: [sage-devel] Re: Side-effect of preparsing implicit symbolic function definitions

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 1:19 PM, Nils Bruin nbr...@sfu.ca wrote: On Feb 23, 12:50 pm, Robert Bradshaw rober...@math.washington.edu wrote: Escaping is nice when one wants to take a derivative, etc. I don't think most calculus students think about scope being local or not, and relying

Re: [sage-devel] Re: Side-effect of preparsing implicit symbolic function definitions

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 1:33 PM, kcrisman kcris...@gmail.com wrote: Note that the OP's issue will go away once that deprecation warning becomes an actual error. (Well, it'll be an error rather than a bad answer.) Indeed. That will be a large improvement. Disagree.  Does Nils' suggestion

Re: [sage-devel] Re: profiling Sage startup

2011-02-23 Thread Robert Bradshaw
On Wed, Feb 23, 2011 at 1:47 PM, Jason Grout jason-s...@creativetrax.com wrote: On 2/23/11 3:06 PM, Robert Bradshaw wrote: On Wed, Feb 23, 2011 at 11:34 AM, William Steinwst...@gmail.com  wrote: On Wed, Feb 23, 2011 at 10:57 AM, Jason Grout jason-s...@creativetrax.com  wrote: On 2/23/11 12

<    1   2   3   4   5   6   7   8   9   10   >