[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 11:38 PM, Nils Bruin wrote: > > On Aug 23, 8:15 pm, William Stein wrote: > >> On sage.math (Linux) I get the same timing as you: > > That's good, because that's where I did it. > > A sage with the ecl library interface is available in "/scratch/nbruin/ > sage-4.1.1-ecl-x86

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 10:38 PM, Robert Dodier wrote: > On 8/23/09, William Stein wrote: > >> In fact, I am mildly surprised that the above two timings between ecl >> and maxima are so different.  I wonder why it is an order of magnitude >> faster to compute "(+ 1 2)"   than to compute "(MEVAL #

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Nils Bruin
On Aug 23, 8:15 pm, William Stein wrote: > On sage.math (Linux) I get the same timing as you: That's good, because that's where I did it. A sage with the ecl library interface is available in "/scratch/nbruin/ sage-4.1.1-ecl-x86_64-Linux" so if you want to do timings for yourself, you can. Th

[sage-devel] Re: notebook rewrite

2009-08-23 Thread Brian Granger
William, Thanks for clarifying some of the details of pexpect. I do really want to understand this because I am starting to use the notebook more and currently IPython's parallel stuff works fine (there are a few things that need to be fixed on our side to make it easier though). Moreover, as lo

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Robert Dodier
On 8/23/09, William Stein wrote: > In fact, I am mildly surprised that the above two timings between ecl > and maxima are so different. I wonder why it is an order of magnitude > faster to compute "(+ 1 2)" than to compute "(MEVAL #$ 1 + 2$)". > Perhaps in the second case the Maxima parser ha

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 6:37 PM, Nils Bruin wrote: > > On Aug 23, 1:58 pm, William Stein wrote: >> To whet our appetite though, might you do some benchmarks that compare >> the speed of adding 2+2 via the library and via pexpect? > > OK, here's a little experiment. I thought adding 2 and 2 would

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Nils Bruin
On Aug 23, 1:58 pm, William Stein wrote: > To whet our appetite though, might you do some benchmarks that compare > the speed of adding 2+2 via the library and via pexpect? OK, here's a little experiment. I thought adding 2 and 2 would be too hard for now, so I stuck with 1+2. Good news is that

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Robert Dodier
Nils Bruin wrote: > 7. The main drive for using ecl-as-a-library in sage is to get a > faster interface with Maxima. If all options above turn out to involve > a lot of work or are expensive to maintain, perhaps we need to find > another way of speeding up the interface. As a side effect, we alr

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Nils Bruin
On Aug 23, 4:08 pm, Martin Albrecht wrote: > > > Both sage and ecl use GMP for their multi-precision arithmetic, and > > > both call mp_set_memory_functions to register their memory managers. > > > This obviously doesn't work, since GMP only keeps track of one set of > > > memory management routi

[sage-devel] Re: Design question about rings, re #6441

2009-08-23 Thread Minh Nguyen
On Mon, Aug 24, 2009 at 6:21 AM, Simon King wrote: > > I guess this would provide some flexibility, but I don't know if it > would be a "clean" thing to do. > Since I am not an experienced programmer: Are there reasons to not use > a dictionary for those kind of things? A good point: searching

[sage-devel] Re: typo in patch of ticket #6396: primes_of_degree_one is broken for relative extensions

2009-08-23 Thread Minh Nguyen
On Mon, Aug 24, 2009 at 5:40 AM, William Stein wrote: > > I personally read all the messages in every single one of the sage-* (and > cython-*) mailing lists via gmail, since I feel that is my responsibility as > Sage project director. I don't think it is anybody else's responsibility. It's d

[sage-devel] Re: Sage 4.1.1.rc1 build halt

2009-08-23 Thread David Joyner
Sage is now building from source on 64bit ubuntu karmic, under the latest (alpha 4?) release! On Wed, Aug 5, 2009 at 8:12 PM, J Elaych wrote: > > I'm on Ubuntu 9.10 beta with amd64 x2 and the > gcc version 4.4.1 (Ubuntu 4.4.1-1ubuntu1).  The > build just stops at base3, for hours so far, though

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Martin Albrecht
> > Both sage and ecl use GMP for their multi-precision arithmetic, and > > both call mp_set_memory_functions to register their memory managers. > > This obviously doesn't work, since GMP only keeps track of one set of > > memory management routines. Ecl needs to use its memory manager, since > >

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread Tim Lahey
On Aug 23, 2009, at 5:54 PM, William Stein wrote: > > Unfortunately it doesn't mean that. I think it just means that "ln" > is a shortcut for "log", but otherwise works just like "log". Is it possible in this change to have function for ln that will print to LaTeX and just call log behind t

[sage-devel] Re: verifying visual look of ReST in docstrings

2009-08-23 Thread Golam Mortuza Hossain
On Sun, Aug 23, 2009 at 4:46 PM, William Stein wrote: > > Thanks for finding this bug.  Can you report it to trac, please? Here it goes http://trac.sagemath.org/sage_trac/ticket/6815 Cheers, --~--~-~--~~~---~--~~ To post to this group, send an email to sage-dev

[sage-devel] Re: Sage benchmark

2009-08-23 Thread Harald Schilly
On Aug 10, 9:58 am, Harald Schilly wrote: > I was thinking about a benchmark website... ... which is now more concrete: http://www.sagemath.org/tour-benchmarks.html Please send me more examples if you have something else and review the page. I've CCed me to http://sagetrac.org/sage_trac/ticket/

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 2:54 PM, William Stein wrote: > > > On Sun, Aug 23, 2009 at 2:35 PM, Tim Lahey wrote: >> >> >> On Aug 23, 2009, at 5:25 PM, William Stein wrote: >> >> > >> > So since Tim's from Waterloo that might explain his preference for ln. >> >> >> I preferred ln(x) well before I lea

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 2:35 PM, Tim Lahey wrote: > > > On Aug 23, 2009, at 5:25 PM, William Stein wrote: > > > > > So since Tim's from Waterloo that might explain his preference for ln. > > > I preferred ln(x) well before I learned Maple. Plus, all my textbooks > used > ln(x). Good point. In

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread Tim Lahey
On Aug 23, 2009, at 5:25 PM, William Stein wrote: > > So since Tim's from Waterloo that might explain his preference for ln. I preferred ln(x) well before I learned Maple. Plus, all my textbooks used ln(x). As for Matlab, it might be engineering oriented, but engineers didn't invent it. I'

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 2:18 PM, Tim Lahey wrote: > > On Aug 23, 2009, at 5:14 PM, Harald Schilly wrote: > >> I think that's maybe a reminiscence from the age of pocket calculators >> or even slide rules. >> > > ln(x) is what's used in engineering. I dislike the use of log(x) for > ln(x) > but I'm

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread Tim Lahey
On Aug 23, 2009, at 5:14 PM, Harald Schilly wrote: > I think that's maybe a reminiscence from the age of pocket calculators > or even slide rules. > ln(x) is what's used in engineering. I dislike the use of log(x) for ln(x) but I'm guessing I don't have much of a choice. All use of log I learn

[sage-devel] Re: log(x) versus ln(x)

2009-08-23 Thread Harald Schilly
+1 for change back. I think that's maybe a reminiscence from the age of pocket calculators or even slide rules. h --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel

[sage-devel] Re: ECL as a library

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 1:54 PM, Nils Bruin wrote: > > > On Aug 23, 3:43 am, Juanjo > wrote: >> > Concerning signals: >> ECL does not need to be notified of signals. The important thing is >> that Sage's code does not interrupt ECL's code at arbitrary places and >> then transfers control out of t

[sage-devel] Re: typo in patch of ticket #6396: primes_of_degree_one is broken for relative extensions

2009-08-23 Thread Christian Nassau
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob Beezer wrote: > On Aug 23, 4:15 am, John Cremona wrote: >> Now gmail >> automatically hides quoted text, replacing it by a tiny link "show >> quoted text". > > [...] to toggle it on and back off again. I find the email versions of the > posts

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 1:42 PM, Nils Bruin wrote: > > The following problem came up while trying to use ecl as a library > inside sage: > > Both sage and ecl use GMP for their multi-precision arithmetic, and > both call mp_set_memory_functions to register their memory managers. > This obviously d

[sage-devel] Re: ECL as a library

2009-08-23 Thread Nils Bruin
On Aug 23, 3:43 am, Juanjo wrote: > > Concerning signals: > ECL does not need to be notified of signals. The important thing is > that Sage's code does not interrupt ECL's code at arbitrary places and > then transfers control out of them. > > For instance, interrupts during memory allocation are

[sage-devel] log(x) versus ln(x)

2009-08-23 Thread William Stein
Hi, One nuisance in mathematics is the "ln(x)" notation for natural logarithms by students up to a certain age, followed by the "log(x)" notation used for exactly the same thing after a certain age. So I've always taken great pride that in Sage (and most other math software), "log" is the right

[sage-devel] Using MPIR or GMP with multiple memory managers

2009-08-23 Thread Nils Bruin
The following problem came up while trying to use ecl as a library inside sage: Both sage and ecl use GMP for their multi-precision arithmetic, and both call mp_set_memory_functions to register their memory managers. This obviously doesn't work, since GMP only keeps track of one set of memory man

[sage-devel] Re: Design question about rings, re #6441

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 1:21 PM, Simon King wrote: > > Hi! > > On Aug 23, 8:42 pm, William Stein wrote: > [...] > > Don't make it upper case. Make the attribute _is_field. Otherwise the > > above sounds great to me. > > Or one could have a single attribute "_properties", which is a > dictionar

[sage-devel] Re: Design question about rings, re #6441

2009-08-23 Thread Simon King
Hi! On Aug 23, 8:42 pm, William Stein wrote: [...] > Don't make it upper case.  Make the attribute _is_field.  Otherwise the > above sounds great to me. Or one could have a single attribute "_properties", which is a dictionary, and then one can define self._properties['integrally_closed'] = Tr

[sage-devel] Re: verifying visual look of ReST in docstrings

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 3:24 AM, Golam Mortuza Hossain wrote: > > Hi, > > On Sun, Aug 23, 2009 at 2:02 AM, William Stein wrote: > > > If you did "sage -br" you do *not* have to restart the notebook server -- > > it suffices to just do "Action --> Restart Worksheet". > > > Thats a cool feature. I

[sage-devel] Re: typo in patch of ticket #6396: primes_of_degree_one is broken for relative extensions

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 11:18 AM, Rob Beezer wrote: > > On Aug 23, 4:15 am, John Cremona wrote: > > Now gmail > > automatically hides quoted text, replacing it by a tiny link "show > > quoted text". > > I read sage-devel and sage-support via the web and as John has > mentioned for gmail, on the w

[sage-devel] Re: Design question about rings, re #6441

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 12:27 PM, Sebastian Pancratz wrote: > > I think as a first step I'll only implement the additional argument > for the two methods "is_field" and "is_integral_domain". > > For the other suggestion, namely to allow the user to assert that a > ring is in fact a field, would th

[sage-devel] Re: notebook rewrite

2009-08-23 Thread William Stein
On Sun, Aug 23, 2009 at 9:17 AM, Brian Granger wrote: > >> In the current architecture, a twistd daemon spawns a notebook server >> which is responsible for doing "sage" stuff.  twistd is fully >> asynchronous, but the notebook process itself is a pexpect based >> blocking process connected with

[sage-devel] Re: Design question about rings, re #6441

2009-08-23 Thread Sebastian Pancratz
I think as a first step I'll only implement the additional argument for the two methods "is_field" and "is_integral_domain". For the other suggestion, namely to allow the user to assert that a ring is in fact a field, would the following be the "right" way to implement this? 1. Add a new attribu

[sage-devel] Re: typo in patch of ticket #6396: primes_of_degree_one is broken for relative extensions

2009-08-23 Thread Rob Beezer
On Aug 23, 4:15 am, John Cremona wrote: > Now gmail > automatically hides quoted text, replacing it by a tiny link "show > quoted text".   I read sage-devel and sage-support via the web and as John has mentioned for gmail, on the web the quoted-text also gets compressed into a single, expandable

[sage-devel] Re: notebook rewrite

2009-08-23 Thread Brian Granger
> In the current architecture, a twistd daemon spawns a notebook server > which is responsible for doing "sage" stuff. twistd is fully > asynchronous, but the notebook process itself is a pexpect based > blocking process connected with pipes to twistd. As such, the block > on read by pexpect prec

[sage-devel] Re: notebook rewrite

2009-08-23 Thread Alex Clemesha
On Fri, Aug 21, 2009 at 5:56 PM, Yoav Aner wrote: > > Sounds like a great idea to me to de-couple the notebook from sage. > Appengine is not the only option though (but maybe the cheapest at > least for now), you could probably use an Amazon EC2 instance just as > easily (and with some more facili

[sage-devel] Re: Categories restart: call for reviewers

2009-08-23 Thread John Cremona
2009/8/23 Nicolas M. Thiery : > So you can focus on looking at the code, doc, and tests in the files > mentioned in: > >        http://trac.sagemath.org/sage_trac/wiki/CategoriesCategoriesReview > > possibly simply by browsing: > >         > http://combinat.sagemath.org/hgwebdir.cgi/code/file/tip/

[sage-devel] Re: Error message: "However, an ERROR occurred in the Distributed Sage unit tests."

2009-08-23 Thread Dr. David Kirkby
Dr. David Kirkby wrote: > testSetEnabled ... > [OK] > dsage.database.tests.test_clientdb >ClientDatabaseSQLiteTestCase > testadd_client ... > /export/home/drkirkby/sage/sage-4.1.1/local/bin/sage-dsage-trial: line > 21: 29405 Segmentation Fault (core dumped) trial > --t

[sage-devel] Re: typo in patch of ticket #6396: primes_of_degree_one is broken for relative extensions

2009-08-23 Thread John Cremona
2009/8/23 Nick Alexander : > I'm a few uncut-quote-plus-one-line-replies away from no longer > reading sage-devel.  The signal to noise ratio has plummeted; several > important developers no longer read; many more rarely contribute.  One > personal reason is the poor netiquette on list: compared

[sage-devel] Re: Categories restart

2009-08-23 Thread John Cremona
2009/8/23 Nicolas M. Thiery : > >        Dear Craig, > > On Wed, Jul 08, 2009 at 02:21:49PM -0700, Craig Citro wrote: >> > So how is the baby? >> Very overdue! But she'll hopefully be here soon. ;) > > So > > She must have been here for a couple weeks now! How is it going? > We'll keep c

[sage-devel] Re: ECL as a library

2009-08-23 Thread Juanjo
On Aug 23, 9:14 am, Nils Bruin wrote: > So it's no surprise at all that integer_free_integer_pool seems to > call ecl_dealloc, because it does (via some gmp macro for deallocating > a gmp integer), and since that integer was allocated by another memory > manager, a segfault is entirely expected.

[sage-devel] Re: verifying visual look of ReST in docstrings

2009-08-23 Thread Golam Mortuza Hossain
Hi, On Sun, Aug 23, 2009 at 2:02 AM, William Stein wrote: > If you did "sage -br" you do *not* have to restart the notebook server -- > it suffices to just do "Action --> Restart Worksheet". Thats a cool feature. I noticed that restarting worksheet seems to disable latex typesetting even thou

[sage-devel] Re: Categories restart: call for reviewers

2009-08-23 Thread javier
On Aug 23, 12:56 am, "Nicolas M. Thiery" wrote: > For the rest, this review is a bit specific: you can skip the > technical part of the review (checking that the patch applies > smoothly, pass tests, ...); this part will be done at once for all the > category code once the mathematical review wil

[sage-devel] Re: Error message: "However, an ERROR occurred in the Distributed Sage unit tests."

2009-08-23 Thread Dr. David Kirkby
Dr. David Kirkby wrote: > After building sage 4.1.1 on Solaris, I get the above error message if I > run 'make test'. I've not seen this error on previous releases. I have > changed maxima and ecl, but I somewhat doubt they are the cause of the > problem. > > Has anything else changed in Sage

[sage-devel] Error message: "However, an ERROR occurred in the Distributed Sage unit tests."

2009-08-23 Thread Dr. David Kirkby
After building sage 4.1.1 on Solaris, I get the above error message if I run 'make test'. I've not seen this error on previous releases. I have changed maxima and ecl, but I somewhat doubt they are the cause of the problem. Has anything else changed in Sage recently that might have caused this

[sage-devel] Re: What's the view on updating Maxima?

2009-08-23 Thread Dr. David Kirkby
Dr. David Kirkby wrote: > A decision needs to be made about updating Maxima. First a few facts. > > > * The version of Maxima (5.16.3) in Sage is quite old. > * The version of ECL (9.4.1) in Sage is quite old. > * The old ECL 9.4.1 will not build on Solaris with a SPARC processor. > * The update

[sage-devel] Re: ECL as a library

2009-08-23 Thread Nils Bruin
On Aug 22, 2:16 pm, William Stein wrote: > Nils -- why don't you build everything in your (presumed) account on > sage.math.washington.edu?  Then you can easily given Juanjo access to that, > since he also has an account on sage.math.washington.edu. Done. The following is now available on sage.