วันเสาร์ที่ 30 เมษายน พ.ศ. 2554

[sage-devel] Re: Can we afford a new attribute of sage.structure.element.Element?

Hi Nils,

On 30 Apr., 19:12, Nils Bruin <nbr...@sfu.ca> wrote:
> I looked over the comments in trac #11115 . Thank you for a very
> thorough analysis and presentation. One thing I didn't immediately
> find in the discussion there is that an increased memory footprint for
> elements can also cause cache-misses sooner, so lead to a slowdown

I don't understand that. Can you elaborate? Perhaps on the ticket?

> Cache performance is very dependent on processor and very tricky to
> test for. However, I would expect that an implementation which uses
> less memory for its working set will never perform worse than one that
> uses more (other things being equal). So my default preference would
> be for the mixed approach (3): make your chance to parents as proposed
> and let people install __cached_methods manually on elements to get
> the benefits.

OK, I'll soon post a patch for version (3) on the ticket, as an
alternative to the original implementation.

> The drawback of that approach is that it takes very specialized
> knowledge to get caching on elements working well. It would need to be
> featured prominently in the documentation somewhere.

I somehow disagree: I believe that it would take very specialized
knowledge in order to create an example that exposes the problem: You
need to implement a class whose instances don't accept attributes (so,
that is likely to require Cython), and in addition an instance must
belong to a parent that belongs to a category that provides a cached
element method (does that exist, yet?). And then, you must write code
that relies on that method being cached.

But certainly, if we go for version (3) then I will add an example in
sage.misc.cachefunc.

Best regards,
Simon

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: [sage-notebook] The crazy NB bug

On 4/30/11 3:22 PM, kcrisman wrote:
>
>>>> For the record I have been using flask.sagenb.org daily to prepare all
>>>> my lectures and have not once seen this problem.
>>
>>> My hope is that we fixed it in the flask notebook by keeping better track of
>>> when a text cell was added.
>>
>> This has been my experience. It is unclear if it is kcrisman's or
>> not, due to the lack of detail of his bug report.
>>
>
> Sorry, I was just trying to remind us of this and have a place to
> collate ideas.
>
> In fact, I haven't been using the flask notebook, so this was with the
> old one. It was the first time it had happened in a long time,
> though, and was worse than usual. Every text cell in a certain region
> was displaced by one computational cell, and a few text cells were
> just gone, as well as the last one being duplicated.
>
> But it sounds like Jason's idea that the rewrite took care of it could
> be right, if there is explicit watching of the cells.

To be clear, my idea of sending the full list of cells back and forth
every now and then has not been implemented. I thought it might help us
debug problems like this, though, if it were implemented.

Jason


--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: [sage-notebook] The crazy NB bug

> >> For the record I have been using flask.sagenb.org daily to prepare all
> >> my lectures and have not once seen this problem.
>
> > My hope is that we fixed it in the flask notebook by keeping better track of
> > when a text cell was added.
>
> This has been my experience.  It is unclear if it is kcrisman's or
> not, due to the lack of detail of his bug report.
>

Sorry, I was just trying to remind us of this and have a place to
collate ideas.

In fact, I haven't been using the flask notebook, so this was with the
old one. It was the first time it had happened in a long time,
though, and was worse than usual. Every text cell in a certain region
was displaced by one computational cell, and a few text cells were
just gone, as well as the last one being duplicated.

But it sounds like Jason's idea that the rewrite took care of it could
be right, if there is explicit watching of the cells.

- kcrisman

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Puiseux Series Implementation Location

Hello,

I recently implemented Puiseux series expansions in Sage and I would like to make this available in Sage to everyone. However, I was hoping for some suggestions as to where to place this code before I go any further.

First of all, Puiseux series (wiki) are power series that allow for fractional exponents. They're useful in the theory of algebraic curves. On a smooth point on a (complex) algebraic curve f(x,y)=0 we can represent y=y(x) locally by a power series. We cannot represent y(x) as a power series at a branch point / singular point of the curve but we can do so with a, or several, Puiseux series.

These local representations have applications in computing integral bases and the basis of the cohomology of the Riemann surface corresponding to the algebraic curve. These, amongst other applications, are things that I'm working on implementing into Sage for my research.

I'm interested in Puiseux expansions only for algebraic curve so one possible location for this code is as a method under sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular. When constructing a multi-
variate polynomial over QQ[x,y] using PolynomialRing or when taking a symbolic expression in two variables and using the 
Expression.polynomial() method this is the type received in return.

Another possibility is just writing puiseux as a module-level function. Suggestions as to where to place this is welcome.

--
Chris Swierczewski
University of Washington
Department of Applied Mathematics
http://www.cswiercz.info

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Suggestions for Puiseux Expansion Implementation Location

Hello,

I recently implemented Puiseux series expansions in Sage and I would like to make this available in Sage to everyone. However, I was hoping for some suggestions as to where to place this code before I go any further.

First of all, Puiseux series (wiki) are power series that allow for fractional exponents. They're useful in the theory of algebraic curves. On a smooth point on a (complex) algebraic curve f(x,y)=0 we can represent y=y(x) locally by a power series. We cannot represent y(x) as a power series at a branch point / singular point of the curve but we can do so with a, or several, Puiseux series.

These local representations have applications in computing integral bases and the basis of the cohomology of the Riemann surface corresponding to the algebraic curve. These, amongst other applications, are things that I'm working on implementing into Sage for my research.

I'm interested in Puiseux expansions only for algebraic curve so one possible location for this code is as a method under sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular. When constructing a multi-
variate polynomial over QQ[x,y] using PolynomialRing or when taking a symbolic expression in two variables and using the 
Expression.polynomial() method this is the type received in return.

Another possibility is just writing puiseux as a module-level function. Suggestions as to where to place this is welcome.

--
Chris Swierczewski
University of Washington
Department of Applied Mathematics
http://www.cswiercz.info

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: Can we afford a new attribute of sage.structure.element.Element?

Hi Simon,

I looked over the comments in trac #11115 . Thank you for a very
thorough analysis and presentation. One thing I didn't immediately
find in the discussion there is that an increased memory footprint for
elements can also cause cache-misses sooner, so lead to a slowdown (so
memory usage can lead to slowdown).

Cache performance is very dependent on processor and very tricky to
test for. However, I would expect that an implementation which uses
less memory for its working set will never perform worse than one that
uses more (other things being equal). So my default preference would
be for the mixed approach (3): make your chance to parents as proposed
and let people install __cached_methods manually on elements to get
the benefits.

The drawback of that approach is that it takes very specialized
knowledge to get caching on elements working well. It would need to be
featured prominently in the documentation somewhere.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Someone is spoofing my email address.

If you get an email that appears to come from me, that looks silly, then please
send me a private email. I'm not exactly sure what has happened. Whether someone
has hacked my account and so sending mail form there, or if they are just
spoofing the "From" field. But at least a couple of people have got spam with my
email address in the "From" field.

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Re: XCode 4

On 04/30/11 04:27 PM, Dima Pasechnik wrote:
> On Apr 30, 12:54 pm, William Stein<wst...@gmail.com> wrote:

>>> Even worse is behaviour with its clang compilers (they can't even
>>> compile several parts of Sage)
>>
>> Wow, that's incredible!
>>
>> We should:
>>
>> (1) add a remark right in the prereq spkg that checks that xcode 4 (4.0.1, to be precise)
>> isn't being used (unless SAGE_PORT or something is set)
>
> In fact, I don't know how to check this easily: it ships the same
> build of gcc as XCode 3 (3.2.6, to be precise)
> (gcc version 4.2.1 (Apple Inc. build 5666) (dot 3))
> and there is no ready way to check the version of the whole setup.
> The difference sits in libraries.
> One notable difference is that cc is not gcc, but a gcc-llvm build.
> (namely, gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
> build 2335.6)))
>
> So one can test that "cc -v" != "gcc -v", but this does nor seem to be
> robust enough.
>
> Probably one can use Applescript, but I have no clue about it.


Can you post the output of these two commands.

$ gcc -dM -E -xc /dev/null
$ cc -dM -E -xc /dev/null

It might help if you sorted them

to find the differences. i.e.

$ gcc -dM -E -xc /dev/null | sort > a
$ cc -dM -E -xc /dev/null | sort > b
$ diff a b

You might find there's something in there which can differentiate them. If there
is, we can add a specific test to the scripts $SAGE_LOCAL/bin/testcc.sh and
$SAGE_LOCAL/bin/testcxx.sh. Currently those scripts report one of

* GCC
* Sun_Studio
* HP_on_Tru64
* HP_on_HP-UX
* IBM_on_AIX
* HP_on_Alpha_Linux
* Unknown


Currently the scripts check if __GNUC__ is defined and if so its considered gcc
or a gcc-like compiler (e.g. Intel's icc). But if there's a need to
differentiate Clang, I'd be very surprised if there was not something we can use.

Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: XCode 4

I edited
http://wiki.sagemath.org/SupportedPlatforms
to reflect the status of XCode 4.

On Apr 30, 11:27 pm, Dima Pasechnik <dimp...@gmail.com> wrote:
> On Apr 30, 12:54 pm, William Stein <wst...@gmail.com> wrote:
>
>
>
>
>
> > On Wed, Apr 27, 2011 at 8:28 PM, Dima Pasechnik <dimp...@gmail.com> wrote:
> > > Hi,
>
> > > I tried XCode 4 and came to conclusion that it is buggy as hell
> > > - I can't build working Sage (due to startup-time segfaults, as
> > > described here),
> > > I can't even build a working copy of MPIR, etc etc...
>
> > > Even worse is behaviour with its clang compilers (they can't even
> > > compile several parts of Sage)
>
> > Wow, that's incredible!
>
> > We should:
>
> >    (1) add a remark right in the prereq spkg that checks that xcode 4 (4.0.1, to be precise)
> > isn't being used (unless SAGE_PORT or something is set)
>
> In fact, I don't know how to check this easily: it ships the same
> build of gcc as XCode 3 (3.2.6, to be precise)
> (gcc version 4.2.1 (Apple Inc. build 5666) (dot 3))
> and there is no ready way to check the version of the whole setup.
> The difference sits in libraries.
> One notable difference is that cc is not gcc, but a gcc-llvm build.
> (namely, gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
> build 2335.6)))
>
> So one can test that "cc -v" != "gcc -v", but this does nor seem to be
> robust enough.
>
> Probably one can use Applescript, but I have no clue about it.
>
>
>
> >    (2) if xcode 4 is being used (as detected by 1), the error message
> > should suggest xcode 3, and explain how to revert to it.   (Is it easy
> > still?)
>
> To revert back, I tried xcode-select, and it didn't quite work, as
> Xcode 4 overwrites /usr/* with new stuff, and probably something
> didn't work as expected.
> I ended up re-installing XCode 3 in the usual way.
> (and then I removed XCode 4 to save space, so I can't easily check
> things any more :-(  )
>
> Dima
>
>
>
>
>
> >  -- William
>
> > > So I reverted back to Xcode 3.
> > > (I should have added this to Wiki, but I lost my password, it
> > > seems :-))
>
> > > Dima
>
> > > On Apr 28, 4:28 am, William Stein <wst...@gmail.com> wrote:
> > >> Hi,
>
> > >> Aly Deines showed me what happened when she installed Xcode 4 then
> > >> built Sage.  She build Sage-4.7.rc0 itself, and it compiled fine.
> > >> However, when she ran it, it crashed on startup.   The traceback
> > >> implicates Pynac:
>
> > >> (gdb)
> > >> #0  0x0000000107a20c64 in PyInt_FromLong (ival=-5) at Objects/intobject.c:91
> > >> #1  0x00000001079971fa in GiNaC::Number_T::Number_T ()
> > >> #2  0x0000000107997280 in GiNaC::numeric::numeric ()
> > >> #3  0x00000001079e7bea in GiNaC::library_init::library_init ()
> > >> #4  0x00000001078708f8 in __static_initialization_and_destruction_0 ()
> > >> #5  0x00007fff5fc0d500 in
> > >> __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkCont extE
> > >> ()
> > >> #6  0x00007fff5fc0bcec in
> > >> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
> > >> ()
> > >> #7  0x00007fff5fc0bc9d in
> > >> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
> > >> ()
> > >> #8  0x00007fff5fc0bda6 in
> > >> __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
> > >> #9  0x00007fff5fc08fbb in __dyld_dlopen ()
> > >> #10 0x00007fff86ad2360 in dlopen ()
> > >> #11 0x00000001000e88af in _PyImport_GetDynLoadFunc ()
> > >> #12 0x00000001000d2e04 in _PyImport_LoadDynamicModule ()
> > >> #13 0x00000001000d10df in import_submodule ()
>
> > >> Note that Ipython alone and python alone both start fine.
>
> > >> I should buy and install XCode4 on bsd.math.washington.edu, so it is
> > >> easier for people to debug this problem.
>
> > >>  -- William
>
> > >> On Tue, Mar 22, 2011 at 4:43 AM, Dima Pasechnik <dimp...@gmail.com> wrote:
> > >> > I tried to get Xcode 4 from the local Apps Store, and got
> > >> > "The item you've requested is not currently available in the Singapore
> > >> > Store."
> > >> > Given that I read on the net about people actually buying it from this
> > >> > store,
> > >> > this is fishy...
>
> > >> > (Xcode 3 gets moved to /Applications/Developer-old/ when one installs
> > >> > Xcode 4, they say)
>
> > >> > On Mar 22, 11:20 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> > >> >> On 3/21/11 9:58 PM, kcrisman wrote:
>
> > >> >> > I only have the option to upgrade to 3.2.6 right now from Software
> > >> >> > Update, so it must be app-store only.
>
> > >> >> Yes, app store, and $4.99 or something like that to boot.  Though it's
> > >> >> free if you already pay for their developer or iOS memberships.
>
> > >> >> > I can see this update potentially causing problems for the OS X App,
> > >> >> > if I understand the announcement correctly as being a major change in
> > >> >> > how things are built.  I would strongly suggest testing that.
>
> > >> >> > Also, I think you can have more than one XCode at a time, right?
>
> > >> >> I don't know.
>
> > >> >> Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: XCode 4

On Apr 30, 12:54 pm, William Stein <wst...@gmail.com> wrote:
> On Wed, Apr 27, 2011 at 8:28 PM, Dima Pasechnik <dimp...@gmail.com> wrote:
> > Hi,
>
> > I tried XCode 4 and came to conclusion that it is buggy as hell
> > - I can't build working Sage (due to startup-time segfaults, as
> > described here),
> > I can't even build a working copy of MPIR, etc etc...
>
> > Even worse is behaviour with its clang compilers (they can't even
> > compile several parts of Sage)
>
> Wow, that's incredible!
>
> We should:
>
>    (1) add a remark right in the prereq spkg that checks that xcode 4 (4.0.1, to be precise)
> isn't being used (unless SAGE_PORT or something is set)

In fact, I don't know how to check this easily: it ships the same
build of gcc as XCode 3 (3.2.6, to be precise)
(gcc version 4.2.1 (Apple Inc. build 5666) (dot 3))
and there is no ready way to check the version of the whole setup.
The difference sits in libraries.
One notable difference is that cc is not gcc, but a gcc-llvm build.
(namely, gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
build 2335.6)))

So one can test that "cc -v" != "gcc -v", but this does nor seem to be
robust enough.

Probably one can use Applescript, but I have no clue about it.

>
>    (2) if xcode 4 is being used (as detected by 1), the error message
> should suggest xcode 3, and explain how to revert to it.   (Is it easy
> still?)

To revert back, I tried xcode-select, and it didn't quite work, as
Xcode 4 overwrites /usr/* with new stuff, and probably something
didn't work as expected.
I ended up re-installing XCode 3 in the usual way.
(and then I removed XCode 4 to save space, so I can't easily check
things any more :-( )

Dima

>
>  -- William
>
> > So I reverted back to Xcode 3.
> > (I should have added this to Wiki, but I lost my password, it
> > seems :-))
>
> > Dima
>
> > On Apr 28, 4:28 am, William Stein <wst...@gmail.com> wrote:
> >> Hi,
>
> >> Aly Deines showed me what happened when she installed Xcode 4 then
> >> built Sage.  She build Sage-4.7.rc0 itself, and it compiled fine.
> >> However, when she ran it, it crashed on startup.   The traceback
> >> implicates Pynac:
>
> >> (gdb)
> >> #0  0x0000000107a20c64 in PyInt_FromLong (ival=-5) at Objects/intobject.c:91
> >> #1  0x00000001079971fa in GiNaC::Number_T::Number_T ()
> >> #2  0x0000000107997280 in GiNaC::numeric::numeric ()
> >> #3  0x00000001079e7bea in GiNaC::library_init::library_init ()
> >> #4  0x00000001078708f8 in __static_initialization_and_destruction_0 ()
> >> #5  0x00007fff5fc0d500 in
> >> __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkCont extE
> >> ()
> >> #6  0x00007fff5fc0bcec in
> >> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
> >> ()
> >> #7  0x00007fff5fc0bc9d in
> >> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
> >> ()
> >> #8  0x00007fff5fc0bda6 in
> >> __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
> >> #9  0x00007fff5fc08fbb in __dyld_dlopen ()
> >> #10 0x00007fff86ad2360 in dlopen ()
> >> #11 0x00000001000e88af in _PyImport_GetDynLoadFunc ()
> >> #12 0x00000001000d2e04 in _PyImport_LoadDynamicModule ()
> >> #13 0x00000001000d10df in import_submodule ()
>
> >> Note that Ipython alone and python alone both start fine.
>
> >> I should buy and install XCode4 on bsd.math.washington.edu, so it is
> >> easier for people to debug this problem.
>
> >>  -- William
>
> >> On Tue, Mar 22, 2011 at 4:43 AM, Dima Pasechnik <dimp...@gmail.com> wrote:
> >> > I tried to get Xcode 4 from the local Apps Store, and got
> >> > "The item you've requested is not currently available in the Singapore
> >> > Store."
> >> > Given that I read on the net about people actually buying it from this
> >> > store,
> >> > this is fishy...
>
> >> > (Xcode 3 gets moved to /Applications/Developer-old/ when one installs
> >> > Xcode 4, they say)
>
> >> > On Mar 22, 11:20 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> >> >> On 3/21/11 9:58 PM, kcrisman wrote:
>
> >> >> > I only have the option to upgrade to 3.2.6 right now from Software
> >> >> > Update, so it must be app-store only.
>
> >> >> Yes, app store, and $4.99 or something like that to boot.  Though it's
> >> >> free if you already pay for their developer or iOS memberships.
>
> >> >> > I can see this update potentially causing problems for the OS X App,
> >> >> > if I understand the announcement correctly as being a major change in
> >> >> > how things are built.  I would strongly suggest testing that.
>
> >> >> > Also, I think you can have more than one XCode at a time, right?
>
> >> >> I don't know.
>
> >> >> Jason
>

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: Can we afford a new attribute of sage.structure.element.Element?

Hi Nicolas,

On 29 Apr., 23:06, "Nicolas M. Thiery" <Nicolas.Thi...@u-psud.fr>
wrote:
> Can you give it a shot with GF(2), so as to hit one of the smallest
> possible sage Element?

Sage-4.7.alpha5 with patches:

sage: K = GF(2)
sage: get_memory_usage()
842.01171875
sage: %time L = [K(i) for i in xrange(10^7)]
CPU times: user 25.85 s, sys: 0.05 s, total: 25.91 s
Wall time: 25.91 s
sage: get_memory_usage()
920.51171875
sage: 920.51171875 - 842.01171875
78.5000000000000

Sage-4.7.alpha5 without patches:

sage: K = GF(2)
sage: get_memory_usage()
839.96875
sage: %time L = [K(i) for i in xrange(10^7)]
CPU times: user 24.71 s, sys: 0.04 s, total: 24.75 s
Wall time: 24.75 s
sage: get_memory_usage()
918.4609375
sage: 918.4609375 - 839.96875
78.4921875000000

So, the additional memory usage seems affordable to me. But I guess I
should try to find out why the element creation became slower for
GF(2), while it became faster for GF(101), and again slower for
GF(next_prime(10^6)) (see example on the ticket).

Cheers,
Simon

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

วันศุกร์ที่ 29 เมษายน พ.ศ. 2554

Re: [sage-devel] Re: XCode 4

On Wed, Apr 27, 2011 at 8:28 PM, Dima Pasechnik <dimpase@gmail.com> wrote:
> Hi,
>
> I tried XCode 4 and came to conclusion that it is buggy as hell
> - I can't build working Sage (due to startup-time segfaults, as
> described here),
> I can't even build a working copy of MPIR, etc etc...
>
> Even worse is behaviour with its clang compilers (they can't even
> compile several parts of Sage)

Wow, that's incredible!

We should:

(1) add a remark right in the prereq spkg that checks that xcode 4
isn't being used (unless SAGE_PORT or something is set)

(2) if xcode 4 is being used (as detected by 1), the error message
should suggest xcode 3, and explain how to revert to it. (Is it easy
still?)

-- William

>
> So I reverted back to Xcode 3.
> (I should have added this to Wiki, but I lost my password, it
> seems :-))
>
> Dima
>
> On Apr 28, 4:28 am, William Stein <wst...@gmail.com> wrote:
>> Hi,
>>
>> Aly Deines showed me what happened when she installed Xcode 4 then
>> built Sage.  She build Sage-4.7.rc0 itself, and it compiled fine.
>> However, when she ran it, it crashed on startup.   The traceback
>> implicates Pynac:
>>
>> (gdb)
>> #0  0x0000000107a20c64 in PyInt_FromLong (ival=-5) at Objects/intobject.c:91
>> #1  0x00000001079971fa in GiNaC::Number_T::Number_T ()
>> #2  0x0000000107997280 in GiNaC::numeric::numeric ()
>> #3  0x00000001079e7bea in GiNaC::library_init::library_init ()
>> #4  0x00000001078708f8 in __static_initialization_and_destruction_0 ()
>> #5  0x00007fff5fc0d500 in
>> __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkCont extE
>> ()
>> #6  0x00007fff5fc0bcec in
>> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
>> ()
>> #7  0x00007fff5fc0bc9d in
>> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
>> ()
>> #8  0x00007fff5fc0bda6 in
>> __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
>> #9  0x00007fff5fc08fbb in __dyld_dlopen ()
>> #10 0x00007fff86ad2360 in dlopen ()
>> #11 0x00000001000e88af in _PyImport_GetDynLoadFunc ()
>> #12 0x00000001000d2e04 in _PyImport_LoadDynamicModule ()
>> #13 0x00000001000d10df in import_submodule ()
>>
>> Note that Ipython alone and python alone both start fine.
>>
>> I should buy and install XCode4 on bsd.math.washington.edu, so it is
>> easier for people to debug this problem.
>>
>>  -- William
>>
>>
>>
>>
>>
>> On Tue, Mar 22, 2011 at 4:43 AM, Dima Pasechnik <dimp...@gmail.com> wrote:
>> > I tried to get Xcode 4 from the local Apps Store, and got
>> > "The item you've requested is not currently available in the Singapore
>> > Store."
>> > Given that I read on the net about people actually buying it from this
>> > store,
>> > this is fishy...
>>
>> > (Xcode 3 gets moved to /Applications/Developer-old/ when one installs
>> > Xcode 4, they say)
>>
>> > On Mar 22, 11:20 am, Jason Grout <jason-s...@creativetrax.com> wrote:
>> >> On 3/21/11 9:58 PM, kcrisman wrote:
>>
>> >> > I only have the option to upgrade to 3.2.6 right now from Software
>> >> > Update, so it must be app-store only.
>>
>> >> Yes, app store, and $4.99 or something like that to boot.  Though it's
>> >> free if you already pay for their developer or iOS memberships.
>>
>> >> > I can see this update potentially causing problems for the OS X App,
>> >> > if I understand the announcement correctly as being a major change in
>> >> > how things are built.  I would strongly suggest testing that.
>>
>> >> > Also, I think you can have more than one XCode at a time, right?
>>
>> >> I don't know.
>>
>> >> Jason
>>
>> > --
>> > To post to this group, send an email to sage-devel@googlegroups.com
>> > To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
>> > For more options, visit this group athttp://groups.google.com/group/sage-devel
>> > URL:http://www.sagemath.org
>>
>> --
>> William Stein
>> Professor of Mathematics
>> University of Washingtonhttp://wstein.org
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Fwd: Beta release of GAP 4.5 for package authors

Please see
       ftp://ftp.gap-system.org/pub/gap/gap45/beta/

---------- Forwarded message ----------
From: Alexander Konovalov <alexk@mcs.st-andrews.ac.uk>
Date: 30 April 2011 08:59
Subject: [Devel] Draft for GAP Forum: Beta release of GAP 4.5 for
package authors
To: "devel@gap-system.org" <devel@gap-system.org>


Dear all,

We have to write also a public announcement of the beta release in the
GAP Forum.
I suggest to do it somewhere next week. Please find a draft version below. It
will be useful to reach package authors who are hopefully members of the Forum,
because some emails to addresses stated in PackageInfo.g files were bounced;
it will be helpful to users who are only developing their first package now;
and, finally, it will inform the users community about our progress.

Best,
       Alexander

===============

Dear GAP Forum,

There have been many changes in the development version of GAP during the more
than two years since the release of GAP 4.4.12. Some major developments that
were started earlier are now ready for release and it's now high time for the
GAP 4.5 release, which we plan to have later in 2011.

We have already prepared a first beta version of GAP 4.5, named GAP 4.5.1,
which is available in the following directory:

       ftp://ftp.gap-system.org/pub/gap/gap45/beta/

in order to allow authors of GAP 4 packages to test their packages with the
new features and prepare them for the first public release of GAP 4.5. We
have already tested most of the current versions of GAP packages with the
beta-release of GAP 4.5, and did not find any serious problems. Thus, we hope
that for most packages the change will go smoothly. While the transition to
GAP 4.5 will not break existing GAP code we encouraged package authors to
make some adjustments in the setup and the documentation of packages to use
some of the new features of the GAP 4.5 package interface.

If you are currently working on a new GAP package which you plan to release
soon, or if you are simply interested in a preview of a new version of GAP,
you are welcome to download, install and test GAP 4.5.1 which has the URL

ftp://ftp.gap-system.org/pub/gap/gap45/beta/gap4r5p1_2011_04_15-00_10.zip

This archive is not quite the same as the GAP 4.4 archives. For the general
release of GAP 4.5 (and subsequent updates) we plan the main form of
distribution of GAP to be a single dated archive file including current
versions of all packages. Some of the packages that are loaded at the
beginning of the GAP session currently produce errors; these may be ignored
at the moment unless you need those particular packages, and should be
eventually eliminated after relevant package updates.

This archive does not include binaries so you will need to compile the GAP
kernel yourself. There are now additional configure options available to
specify the usage of the external GMP and readline libraries and the build
mode, which are documented in the Chapter "Installing GAP" of the Reference
manual, available also at

       ftp://ftp.gap-system.org/pub/gap/gap45/beta/install.pdf

To run GAP under Windows, you may either compile it yourself with Cygwin or
download Windows binaries in the archive

       http://www.cs.st-andrews.ac.uk/~alexk/gap/gap4r5p1winbin.zip

It has two subdirectories, "gap4r5/bin" and "gap4r5/terminfo". You should
unpack it from the same place where you've previously unpacked 4.5.1 so the
content of 'bin' will go to the existing 'gap4r5/bin' directory and a new
subdirectory 'terminfo' will be created in 'gap4r5'.

In addition, the file

       http://www.cs.st-andrews.ac.uk/~alexk/gap/gap45beta.txt

contains further notes for package authors about building GAP 4.5 beta with
GMP on Mac OS X and may be extended with other relevant information in the
future.

The document

       ftp://ftp.gap-system.org/pub/gap/gap45/beta/gap45beta.pdf

contains, in addition to the information included in this message, a more
detailed announcement of GAP 4.5.1 with a brief overview of main changes in
GAP 4.5 from the package author's perspective, descriptions of known problems
that we observed while testing current packages with GAP 4.5, and some further
guidelines. For your convenience, the text of the announcement is duplicated
in the temporary preface of the reference manual for GAP 4.5.1, from where you
may follow hyperlinks to appropriate manual sections.

We welcome all feedback to support@gap-system.org including comments,
suggestions, bug reports and manual corrections.


Best wishes,
the GAP development team
_______________________________________________
Devel mailing list
Devel@gap-system.org
http://mail.gap-system.org/mailman/listinfo/devel

--
Dmitrii Pasechnik
-----
DISCLAIMER: Any text following this sentence does not constitute a
part of this message, and was added automatically during transmission.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] How does one make changes to the notebook?

On Friday, April 29, 2011, Dr. David Kirkby <david.kirkby@onetel.net> wrote:
> I'm puzzled on how one is supposed to make changes to the notebook.

Can you resend this to the sage-notebook list? Thanks!


> (See my other thread about some changes, though I'm going to leave the
> commas as they are!!!)
>
> http://nb.sagemath.org/
>
> says
>
> "Google code page (issue tracking, etc. -- do not use the sage trac)"
>
> Then if I click "How to do development" it concludes with:
>
> "Submit your code Use the Sage trac server, which you can quickly get
> an account on, and read about the Sage development process (ignore
> stuff about cloning). "
>
> So does one use trac or not to make changes to the notebook?
>
> All I want to do is to make some changes to the homepage
>
> http://www.sagenb.org/
>
> so that there are some hyperlinks and a general tidy up, taking care
> to keep the "commas" and "and" bits the same, changes would seem to
> cause more discussion than the topic warrants.
>
> It would be nice if one could get the online help from the front page,
> but there are no links to it, and I can't find any way of finding it
> unless one is logged in, in which case it can be found at
>
> http://www.sagenb.org/help/
>
> Anyway, the "help" issue is more complex and for now I just want to
> fix a bit of HTML.
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Can people test an alpha of a new GSL & provide feedback

On 04/30/11 01:32 AM, Dr. David Kirkby wrote:
> I've created a new package for the GNU Scientific library (GSL). It is
> not based on a stable release, but on an Alpha. But the GSL developers
> want to know of any problems.
>
> Could people please test it.
>
> http://boxen.math.washington.edu/home/kirkby/patches/gsl-1.14.91.spkg

before doing so, export SAGE_CHECK=yes to run the self-tests.

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Can people test an alpha of a new GSL & provide feedback

I've created a new package for the GNU Scientific library (GSL). It is not based
on a stable release, but on an Alpha. But the GSL developers want to know of any
problems.

Could people please test it.

http://boxen.math.washington.edu/home/kirkby/patches/gsl-1.14.91.spkg

this is based on the source code from

http://alpha.gnu.org/gnu/gsl/gsl-1.14.90.tar.gz
which as I say, is an alpha release.

This releases fixed one of the problems when trying to build Sage on AIX.
Previously it needed a patch to get GSL to build (#10000), but now it builds on
AIX with no problems.

It would be particularly helpful to get feedback from those with less common
hardware or software. I've personally found it ok on AIX, HP-UX, Solaris and
OpenSolaris, but I'm not the only one running slightly unusual hardware and
software.

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] How does one make changes to the notebook?

I'm puzzled on how one is supposed to make changes to the notebook.
(See my other thread about some changes, though I'm going to leave the
commas as they are!!!)

http://nb.sagemath.org/

says

"Google code page (issue tracking, etc. -- do not use the sage trac)"

Then if I click "How to do development" it concludes with:

"Submit your code Use the Sage trac server, which you can quickly get
an account on, and read about the Sage development process (ignore
stuff about cloning). "

So does one use trac or not to make changes to the notebook?

All I want to do is to make some changes to the homepage

http://www.sagenb.org/

so that there are some hyperlinks and a general tidy up, taking care
to keep the "commas" and "and" bits the same, changes would seem to
cause more discussion than the topic warrants.

It would be nice if one could get the online help from the front page,
but there are no links to it, and I can't find any way of finding it
unless one is logged in, in which case it can be found at

http://www.sagenb.org/help/

Anyway, the "help" issue is more complex and for now I just want to
fix a bit of HTML.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: [sage-notebook] The crazy NB bug

On 4/29/11 4:12 PM, William Stein wrote:
>> What
>> > happened right before the cell turned into a normal input cell? Had you
>> > just edited the cell, or executed surrounding cells, or anything? Or did a
>> > text cell just randomly turn into an input cell without you doing anything
>> > at all?
> I think (?) it happened right when I saved the tinymce cell. This
> always happened after I waited a little while.
> My current "fix" is to quickly type stuff into the tinymce cell and
> save it, rather than leaving a tinymce editor
> opened for a long time. When this happened, I now copy the entire
> input html into a buffer, refresh the page,
> rerun tinymce, click HTML, and paste the html back in.
>

Maybe it would be worth the extra bandwidth to periodically have the
browser query the server for a summary of the state of the cells in the
notebook. For example, the server could return a list of cells in
order, and for each cell, give its id, type (text or input), and the
first 20 characters of the input content.

Then the browser at least would have some way of detecting
synchronization errors like this before they caused data loss.

Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Re: [sage-notebook] The crazy NB bug

On Fri, Apr 29, 2011 at 2:03 PM, Jason Grout
<jason-sage@creativetrax.com> wrote:
> On 4/29/11 1:55 PM, William Stein wrote:
>>
>> On Friday, April 29, 2011, kcrisman<kcrisman@gmail.com>  wrote:
>>>
>>> with randomly moving text is still there.  Several lines about prime
>>> number asymptotics were swallowed and replaced by a duplicate copy of
>>> HW problems, and every cell was displaced by one computational cell.
>>>
>>
>> For the record I have been using flask.sagenb.org daily to prepare all
>> my lectures and have not once seen this problem.
>
>
> My hope is that we fixed it in the flask notebook by keeping better track of
> when a text cell was added.

This has been my experience. It is unclear if it is kcrisman's or
not, due to the lack of detail of his bug report.

>
>
>> I have a dozen
>> times seen a tinymce cell suddenly turn into a normal input cell with
>> html in it, then everything in that cell vanishes on page refresh.
>
>
> I think you're reporting a new bug in the flask notebook, right?

Yes. It is not systematically repeatable.

>  What
> happened right before the cell turned into a normal input cell?  Had you
> just edited the cell, or executed surrounding cells, or anything?  Or did a
> text cell just randomly turn into an input cell without you doing anything
> at all?

I think (?) it happened right when I saved the tinymce cell. This
always happened after I waited a little while.
My current "fix" is to quickly type stuff into the tinymce cell and
save it, rather than leaving a tinymce editor
opened for a long time. When this happened, I now copy the entire
input html into a buffer, refresh the page,
rerun tinymce, click HTML, and paste the html back in.

> William: what revision number is flask.sagenb.org running?

sagenb@boxen:~/flask/sage-4.6.2/devel/sagenb$ hg log|more
changeset: 459:7a13d03fde6b
tag: tip
user: Jason Grout <jason.grout@drake.edu>
date: Tue Mar 29 19:37:25 2011 -0500
summary: Update the worksheet state_number on the client side to
match when the updating is done on the server side.


>
> Rado: is your tree in a state that William can update flask.sagenb.org?
>  There are a huge number of bugfixes to tinymce contained in the update that
> lives in your current google code tree.
>
> Thanks,
>
> Jason
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Re: Can we afford a new attribute of sage.structure.element.Element?

On Wed, Apr 27, 2011 at 10:18:40AM -0700, Simon King wrote:
> By "objects", I suppose you mean instances of
> sage.structure.element.Element, such as elements of a finite field?
> You say "timewise", so, I suppose that I should just create the
> elements, not keep them in memory, and some of them may coincide? I
> hope the test below is OK for you.
>
> With sage-4.7.alpha5, I obtain:
>
> sage: K = GF(101)
> ...
> Conclusion:
>
> The time for the element creation test is actually slightly better
> with the patch. The startuptime did not change significantly. However,
> the memory consumption did increase.
>
> More test scenarios are welcome!

Can you give it a shot with GF(2), so as to hit one of the smallest
possible sage Element?

Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" <nthiery@users.sf.net>
http://Nicolas.Thiery.name/

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: [sage-notebook] The crazy NB bug

On 4/29/11 1:55 PM, William Stein wrote:
> On Friday, April 29, 2011, kcrisman<kcrisman@gmail.com> wrote:
>> with randomly moving text is still there. Several lines about prime
>> number asymptotics were swallowed and replaced by a duplicate copy of
>> HW problems, and every cell was displaced by one computational cell.
>>
>
> For the record I have been using flask.sagenb.org daily to prepare all
> my lectures and have not once seen this problem.


My hope is that we fixed it in the flask notebook by keeping better
track of when a text cell was added.


> I have a dozen
> times seen a tinymce cell suddenly turn into a normal input cell with
> html in it, then everything in that cell vanishes on page refresh.


I think you're reporting a new bug in the flask notebook, right? What
happened right before the cell turned into a normal input cell? Had you
just edited the cell, or executed surrounding cells, or anything? Or
did a text cell just randomly turn into an input cell without you doing
anything at all?

William: what revision number is flask.sagenb.org running?

Rado: is your tree in a state that William can update flask.sagenb.org?
There are a huge number of bugfixes to tinymce contained in the update
that lives in your current google code tree.

Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Big Sage Edu Days

There will be a Sage Days workshop June 16-18 at the University of Washington.

Everyone with an interest in teaching mathematics with Sage is invited to
attend. Mornings will have talks about using Sage in typical undergraduate
courses - both the relevant Sage commands and advice from teachers with
experience incorporating Sage into their courses. Afternoons will be free to
work on personal projects with the help and advice of others.

More information and the evolving program details are available at:

http://wiki.sagemath.org/education3

To register, just add yourself on the wiki, or send an email to me at beezer@ups.edu

There will also be a development workshop, concentrating on the Sage notebook,
happening the same week.

http://wiki.sagemath.org/days31

Rob

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: [sage-notebook] The crazy NB bug

On Friday, April 29, 2011, kcrisman <kcrisman@gmail.com> wrote:
> with randomly moving text is still there.  Several lines about prime
> number asymptotics were swallowed and replaced by a duplicate copy of
> HW problems, and every cell was displaced by one computational cell.
>

For the record I have been using flask.sagenb.org daily to prepare all
my lectures and have not once seen this problem. I have a dozen
times seen a tinymce cell suddenly turn into a normal input cell with
html in it, then everything in that cell vanishes on page refresh.


> Jason thought he had some ideas for how to recreate this at the Joint
> Meetings, thanks to some tips from the PREP users, but I just thought
> I'd start a thread to collect any info/ideas people have on this -
> maybe to be continued on sage-notebook, where I've cross-posted.  I
> should point out that I do not believe there was any cutting and
> pasting involved this time (?).
>
> Also, perhaps more worrisome, none of the saved versions of the
> worksheet in the "Undo" button are different from the newest version.
> That is a BIG bug, and one I think has been mentioned before.
>
> - kcrisman
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] The crazy NB bug

with randomly moving text is still there. Several lines about prime
number asymptotics were swallowed and replaced by a duplicate copy of
HW problems, and every cell was displaced by one computational cell.

Jason thought he had some ideas for how to recreate this at the Joint
Meetings, thanks to some tips from the PREP users, but I just thought
I'd start a thread to collect any info/ideas people have on this -
maybe to be continued on sage-notebook, where I've cross-posted. I
should point out that I do not believe there was any cutting and
pasting involved this time (?).

Also, perhaps more worrisome, none of the saved versions of the
worksheet in the "Undo" button are different from the newest version.
That is a BIG bug, and one I think has been mentioned before.

- kcrisman

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

วันพฤหัสบดีที่ 28 เมษายน พ.ศ. 2554

Re: [sage-devel] Some comments about the notebook's home page.

> I would not want the debate to move on to
> centre/center and so on.

I'm forever forgetting to use the American spellings for centre and
neighbour in Sage.

There is one case where I think the use of Americanisms means Sage is
simply wrong: the use of 'meter' for 'metre' in the units module. I'm
all in favour of preserving local dialects, but the official SI
documents use 'metre', and it seems needlessly contrary on the part of
our Yankee friends to come up with variant spellings *for a
deliberately standard unit system*.


Doug, who supports the Oxford comma

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

On Apr 28, 2011, at 19:28 , Keshav Kini wrote:

> On Friday, 29 April 2011 03:41:54 UTC+8, Justin C. Walker wrote:
>> According to Strunk & White, you have been badly misled.
>
> *Extremely* off topic, but you might be interested in what Geoffrey K.
> Pullum at Edinburgh has to say about Strunk and White...
> http://chronicle.com/article/50-Years-of-Stupid-Grammar/25497

There's always one nay-sayer around. He does, however, use ", and". But maybe it's time to follow John's subtle guidance.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
Like the ski resort full of girls hunting for husbands
and husbands hunting for girls, the situation is not
as symmetrical as it might seem.
- Alan MacKay
--

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

On Friday, 29 April 2011 03:41:54 UTC+8, Justin C. Walker wrote:
> According to Strunk & White, you have been badly misled.

Extremely off topic, but you might be interested in what Geoffrey K. Pullum at Edinburgh has to say about Strunk and White... http://chronicle.com/article/50-Years-of-Stupid-Grammar/25497

Just doing my bit to spread the word... :P

-Keshav

----
Join us in #sagemath on irc.freenode.net !

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

First, it's a good idea to keep the default notebook page very
well-polished. That's the first thing about Sage that many people see,
so we should make it good.

On Thu, 28 Apr 2011 at 10:17AM +0100, Dr. David Kirkby wrote:
> 1) I was always taught that if you list items, you don't put a comma
> before the last "and". i.e. one should write
>
> A, B, C and D.
>
> and not
>
> A, B, C, and D.
>
> but this page seems to break that rule on many occasions.

"I'd like to thank my parents, Ayn Rand and God."

It may be a rule, but it's not always a very good idea. We should pick a
style and be consistent, so long as the meaning is not obscured.

> 2) If one installs the notebook, there's a fair amount of help available in
>
> http://localhost:8000/help/
>
> but there's no link to that from the homepage. In fact, it can't be
> seen until someone logs in.
>
> IMHO, there should be a link to the help page even if one is not
> logged in and it should be available even if one is not logged in.

That's a good idea.

> 3) Section "Use an Open Source Alternative"
>
> I think "mathematics packages" would sound better than "math
> packages".

"Mathematics packages" would also sound better to those would might
write "maths packages"...

Your suggestions 4 through 8 also sound very good. Make a ticket and put
up a patch.

Dan

--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------

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

On Thu, Apr 28, 2011 at 11:57 AM, kcrisman <kcrisman@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 way to reproduce the problem
>>
>> sage: var('y')
>> y
>> sage: (y*(-3.0),y*(-2.0),y*(-1.0),y*0.0,y*1.0,y*2.0,y*3.0,y*4.0)
>> (-3.00000000000000*y, -2.00000000000000*y, -y, 0, y,
>> 2.00000000000000*y, 3.00000000000000*y, 4.00000000000000*y)
>> sage: 1.0==1
>> True
>
> Yes, but my question is whether it's a bug or a feature?  Sorry for
> not being clear.

I think it really boils down to the fact that the symbolic ring
doesn't understand the notion of exact vs. inexact values. E.g.

sage: 3.0*x
3.00000000000000*x
sage: 2.0*x
2.00000000000000*x
sage: 3.0*x - 2.0*x
x

- Robert

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Re: Testing rst files...

Hi Sage fan,

Reviving an old thread.

> Before the second code block, you need a "link" directive to tell it
> that it should be connected with the previous block. See
>
> <http://sagemath.org/doc/developer/conventions.html#testing-rest-
> documentation>
>
> for documentation. For an example, see the file "interfaces.rst" in
> the tutorial. Your example could look like this:
>
>
> Examples of code::
>
> sage: el = 1
> sage: el
> 1
>
> Some explanations:
>
> .. link
>
> ::
>
> sage: el
> 1
>
> > It seems that doesn't work inside a note environement:
>
> I guess it doesn't interact well with other environments? As far as I
> know, the ".. link" directive is a Sage add-on, dealt with in
> SAGE_ROOT/local/bin/sage-doctest, and it may not be implemented as
> fully as one might like. Another way of looking at this is, perhaps
> you should only be able to link blocks which are at the same level of
> indentation, so maybe this is a feature, not a bug :)

I'm trying to improve this and I realize the following: To tests a .rst file
we convert it to a python file and send the resulting file to the usual
doctest infrastructure. If the .rst file contains:

blabla::

sage: x=1

more blabla::

sage: x
1

This is converted to something like

"""
sage: y=1
"""
"""
sage: y
1
"""
And the second test fails because y isn't defined.
One have to write


blabla::

sage: x=1

more blabla:

..link

::

sage: x
1

to have something like

"""
sage: y=1
sage: y
1
"""

which is correct. Is there any good reason why we do this complicated
transformation rather that simply put a pair of """ """ around the .rst file ?
Indeed sending

"""
blabla::

sage: x=1

more blabla::

sage: x
1
"""

perfectly works.

> I'm also interested in this feature: how about we add a single line at
> the beggining of the rst file that indicates that all code cells are
> linked? That would cover all my use cases: how about yours?

The following easy diff should solve the problem. (I'll put a patch in ticket
#11263 for it). But I don't see why we need to do something more complicated.

diff --git a/sage-doctest b/sage-doctest
--- a/sage-doctest
+++ b/sage-doctest
@@ -524,7 +524,10 @@ def pythonify_rst(F):
verbatim examples in the ReST file.
"""
import re
-
+
+ if '.. linkall' in F:
+ return '\n"""\n\n%s\n\n"""\n'%F
+
def get_next_verbatim_block(s, pos):
while True:
# regular expression search in string s[pos:] for:


Cheers,

Florent

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

There are different conventions for this in different parts of the
English-speaking world. Sage authors come from all over. And have
more important things to be bothering about, in my opinion! I would
not want the debate to move on to centre/center and so on.

John

On Thu, Apr 28, 2011 at 9:41 PM, Justin C. Walker <justin@mac.com> wrote:
>
> On Apr 28, 2011, at 12:50 , Tim Lahey wrote:
>
>> On 2011-04-28, at 3:42 PM, "Justin C. Walker" <justin@mac.com> wrote:
>>> On Apr 28, 2011, at 02:17 , Dr. David Kirkby wrote:
> [snip]
>>>> 1) I was always taught that if you list items, you don't put a comma before the last "and". i.e. one should write
>>>>
>>>> A, B, C and D.
>>>>
>>>> and not
>>>>
>>>> A, B, C, and D.
>>>>
>>>> but this page seems to break that rule on many occasions.
>>>
>>> According to Strunk & White, you have been badly misled.
>>>
>>
>> It's a matter of style. Both are acceptable, but it should be consistent.
>
> Just because the title says "style" doesn't mean it's "just style".
>
> :-}
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon at Large
> Institute for the Absorption of Federal Funds
> -----------
> I'm beginning to like the cut of his jibberish.
> -----------
>
>
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

On Apr 28, 2011, at 12:50 , Tim Lahey wrote:

> On 2011-04-28, at 3:42 PM, "Justin C. Walker" <justin@mac.com> wrote:
>> On Apr 28, 2011, at 02:17 , Dr. David Kirkby wrote:
[snip]
>>> 1) I was always taught that if you list items, you don't put a comma before the last "and". i.e. one should write
>>>
>>> A, B, C and D.
>>>
>>> and not
>>>
>>> A, B, C, and D.
>>>
>>> but this page seems to break that rule on many occasions.
>>
>> According to Strunk & White, you have been badly misled.
>>
>
> It's a matter of style. Both are acceptable, but it should be consistent.

Just because the title says "style" doesn't mean it's "just style".

:-}

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
I'm beginning to like the cut of his jibberish.
-----------

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

On 2011-04-28, at 3:42 PM, "Justin C. Walker" <justin@mac.com> wrote:

>
> On Apr 28, 2011, at 02:17 , Dr. David Kirkby wrote:
>
>> Here's a few comments about the home page of the notebook.
>>
>> http://localhost:8000
>>
>> I'd appreciate what others think.
>>
>> 1) I was always taught that if you list items, you don't put a comma before the last "and". i.e. one should write
>>
>> A, B, C and D.
>>
>> and not
>>
>> A, B, C, and D.
>>
>> but this page seems to break that rule on many occasions.
>
> According to Strunk & White, you have been badly misled.
>

It's a matter of style. Both are acceptable, but it should be consistent.

Tim.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Re: [sage-devel] Some comments about the notebook's home page.

On Apr 28, 2011, at 02:17 , Dr. David Kirkby wrote:

> Here's a few comments about the home page of the notebook.
>
> http://localhost:8000
>
> I'd appreciate what others think.
>
> 1) I was always taught that if you list items, you don't put a comma before the last "and". i.e. one should write
>
> A, B, C and D.
>
> and not
>
> A, B, C, and D.
>
> but this page seems to break that rule on many occasions.

According to Strunk & White, you have been badly misled.

Justin

--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
for a night.
Set a man on fire and he'll be warm
for the rest of his life.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

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

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 way to reproduce the problem
>
> sage: var('y')
> y
> sage: (y*(-3.0),y*(-2.0),y*(-1.0),y*0.0,y*1.0,y*2.0,y*3.0,y*4.0)
> (-3.00000000000000*y, -2.00000000000000*y, -y, 0, y,
> 2.00000000000000*y, 3.00000000000000*y, 4.00000000000000*y)
> sage: 1.0==1
> True

Yes, but my question is whether it's a bug or a feature? Sorry for
not being clear.

- kcrisman

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

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

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 way to reproduce the problem

sage: var('y')
y
sage: (y*(-3.0),y*(-2.0),y*(-1.0),y*0.0,y*1.0,y*2.0,y*3.0,y*4.0)
(-3.00000000000000*y, -2.00000000000000*y, -y, 0, y,
2.00000000000000*y, 3.00000000000000*y, 4.00000000000000*y)
sage: 1.0==1
True


On Apr 28, 3:12 pm, kcrisman <kcris...@gmail.com> wrote:
> sage: var('y,z')
> (y, z)
> sage: x = 4/5*(4*y-3)*z-1/3
> sage: 1.0*x
> 4/5*(4*y - 3)*z - 1/3
> sage: 1.2*x
> 0.960000000000000*(4*y - 3)*z - 0.400000000000000
>
> I'm not familiar enough with the goals of that to be able to say for
> sure.  Seehttp://ask.sagemath.org/question/525/numerical-approximation-for-expr...
> for background.
>
> - kcrisman

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: How do R graphics end up being displayed in Sage?

This seems to happen in sagenb/notebook/cell.py in files_html(). The
png is created by R, lives in the directory via r.py and the
evaluation code in server/support.py (I think), and then is added to
the output of the cell in files_html().

But see #11249 for the weird thing that's appended.


On Apr 28, 6:28 am, ancienthart <joalheag...@gmail.com> wrote:
> Hi everyone,
> I'm trying to put together a short wrapper for R graphics, and need to know
> how to capture the image.
> I've tried to hunt this down in the R wrapper code and the notebook code,
> but obviously missing it. :(
>
> Joal Heagney

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

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

sage: var('y,z')
(y, z)
sage: x = 4/5*(4*y-3)*z-1/3
sage: 1.0*x
4/5*(4*y - 3)*z - 1/3
sage: 1.2*x
0.960000000000000*(4*y - 3)*z - 0.400000000000000


I'm not familiar enough with the goals of that to be able to say for
sure. See http://ask.sagemath.org/question/525/numerical-approximation-for-expression
for background.

- kcrisman

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: SVD fails on certain Macs

On 4/28/11 6:08 AM, Jason Grout wrote:
> The lapack people are looking for an example code and system details
> exhibiting the error. We're working on the trac ticket to provide this.

Can anyone who has seen this error follow the instructions on
http://trac.sagemath.org/sage_trac/ticket/11248#comment:34 to post a
detailed example and system information that we can send to the lapack
people?

Thanks,

Jason


--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

[sage-devel] Re: SVD fails on certain Macs

On Apr 26, 6:14 am, Francois Bissey wrote:
> Actually do we know what version of
> ATLAS/BLAS/LAPACK is shipped with OSX?

I couldn't figure out how to check that...

All I found are a few posts on macresearch.org,
which I didn't find helpful four our problem,

http://www.macresearch.org/tutorial-using-lapack-fortran-95#comment-15416
http://www.macresearch.org/lapack-multi-thread-issue
http://www.macresearch.org/lapack-test

and the following pages on Apple's developer site:

http://developer.apple.com/library/mac/#featuredarticles/AccelerateFrameworkData/_index.html
http://developer.apple.com/hardwaredrivers/ve/vector_libraries.html
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/10.5/man7/LAPACK.7.html

the second one having some warnings about C vs Fortran syntax
for specifying arrays, but I'm not sure if this is any help, and the
third one having the paragraphs below about BLAS and LAPACK.

BLAS

The Basic Linear Algebra Subroutines (BLAS) are high quality routines
for performing basic vector and matrix operations. Level 1 BLAS
consists
of vector-vector operations, Level 2 BLAS consists of matrix-vector
operations, and Level 3 BLAS have matrix-matrix operations. The
efficiency, portability, and the wide adoption of the BLAS have made
them commonplace in the development of high quality linear algebra
software such as LAPACK and in other technologies requiring fast
vector
and matrix calculations. All the industry standard FORTRAN BLAS entry
points and the standard C BLAS entry points are exported from the
vecLib
framework (the latter are commonly denoted the legacy C BLAS.) For
more information refer to <http://www.netlib.org/blas/faq.html>

LAPACK

LAPACK provides routines for solving systems of simultaneous linear
equations, least-squares solutions of linear systems of equations,
eigenvalue problems, and singular value problems. The associated
matrix
factorizations (LU, Cholesky, QR, SVD, Schur, generalized Schur) are
also provided, as are related computations such as reordering of the
Schur factorizations and estimating condition numbers. Dense and
banded matrices are handled, but not general sparse matrices. In all
areas, similar functionality is provided for real and complex
matrices,
in both single and double precision. LAPACK in vecLib makes full use
of
the optimized BLAS and fully benefits from their performance. All the
industry standard FORTRAN LAPACK entry points are exported from the
vecLib framework. C programs may make calls to the FORTRAN entry
points
using the prototypes set out in
"/System/Library/Frameworks/vecLib.framework/Headers/clapack.h".

For more information refer to <http://www.netlib.org/lapack/
index.html
>.

BLAS and LAPACK follow fortran calling conventions (even from C).
Users
must be aware that:

ALL arguments must be passed by reference. This includes all scalar
arguments such as matrix dimension M and N, further note there is a
difference in the memory arrangement of a two-dimensional array in
Fortran and C.

For more information refer to <http://www.netlib.org/clapack/readme>.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org