[sage-devel] Re: Caching a python function in (s)pyx file?

2011-01-15 Thread Simon King
Hi Robert! On 15 Jan., 22:16, Simon King wrote: > > > Cool. Looks like it neads a rebase though. I was not able to build sage-4.6.2.alpha1. Would it make sense to try with alpha0, that I am now attempting to build? Cheers, Simon -- To post to this group, send an email to sage-devel@googl

[sage-devel] Error building sage-4.6.2.alpha1

2011-01-15 Thread Simon King
Hi! I tried to build sage-4.6.2.alpha1, but without success. The install.log is at http://sage.math.washington.edu/home/SimonKing/logs/install.log My machine: $ uname -a Linux mpc622 2.6.34.linuxpool #0 SMP PREEMPT Wed May 19 16:32:19 CEST 2010 x86_64 GNU/Linux It has four Intel(R) Core(TM) i3

[sage-devel] gcc wrapper and overriding symbols on OSX

2011-01-15 Thread Volker Braun
Hi Jeroen / sage-devel, Here is a demo of how I think we should go about to override malloc(), and perhaps others, on OSX. As a quick background reminder, due to the two-level namespace on OSX it is not as easy as LD_PRELOAD'ing a shared library on Linux and other unices. On OSX, we need to s

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

2011-01-15 Thread John H Palmieri
On Jan 15, 4:13 pm, Florent Hivert wrote: >       Hi there, > > I'm currently preparing a few of demo for sage days 28. I'm using .rst file > for the demo. Indeed, compared to notebook it can be edited by hand, and it > allows easier distribution and versioning. However I'm having trouble with > s

Re: [sage-devel] question on EllipticCurve() for composite N and cardinality()

2011-01-15 Thread Robert Bradshaw
On Sat, Jan 15, 2011 at 4:20 PM, G Hahn wrote: > Hi, > > the sage reference on > http://www.sagemath.org/doc/reference/sage/schemes/elliptic_curves/constructor.html > reads that the EllipticCurve constructor can either be used with N > prime (>> EllipticCurve(GF(N), [a, b])) or with N composite (>

[sage-devel] Question relevant to Sage on Mathoverflow

2011-01-15 Thread kcrisman
http://mathoverflow.net/questions/52145/roadmap-to-computer-algebra-systems-usage-for-algebraic-geometry I don't happen to use Sage for this, but I know a lot of you do, and might have technical answers. I feel the comment saying Magma is called for the hard stuff in Sage is not accurate, but of

Re: [sage-devel] Setting up a notebook server with 1-1 mapping between NBUsers and UIDs

2011-01-15 Thread Tom Boothby
The current plan is to move absolutely everything into a database. What used to be a monolithic program has been split into numerous parts, each distributable across a number of computers. 1) Database: holds all data for the notebook including user info, worksheets, etc. 2) Front-end: a lightweigh

[sage-devel] question on EllipticCurve() for composite N and cardinality()

2011-01-15 Thread G Hahn
Hi, the sage reference on http://www.sagemath.org/doc/reference/sage/schemes/elliptic_curves/constructor.html reads that the EllipticCurve constructor can either be used with N prime (>> EllipticCurve(GF(N), [a, b])) or with N composite (>> EllipticCurve(Zmod(N),[a,b])), where [a,b] are the curve

[sage-devel] Testing rst files...

2011-01-15 Thread Florent Hivert
Hi there, I'm currently preparing a few of demo for sage days 28. I'm using .rst file for the demo. Indeed, compared to notebook it can be edited by hand, and it allows easier distribution and versioning. However I'm having trouble with sage -t. Suppose I'm writing the following .rst file "

[sage-devel] Re: can sage binaries be stripped (made smaller)

2011-01-15 Thread Emil Widmann
Stripping Sage Binaries II -- With hardlinking multible files and stripping executables a size reduction of 438 MB (-26%) was achieved. Further reduction involves moving directories which breaks sage -testall. The goal is to produce a binary package of sage with aedequate f

Re: [sage-devel] Sage forker

2011-01-15 Thread Ivan Andrus
> This afternoon, William gave me a really cool idea of starting up Sage > using fork(). Essentially you have one mothersage which forks off > copies of Sage. Like this, you can get an instant Sage prompt because > Sage is already started. I actually implemented this and it seems to > work (at l

[sage-devel] Re: Caching a python function in (s)pyx file?

2011-01-15 Thread Simon King
Hi Robert! On 15 Jan., 21:16, Robert Bradshaw wrote: > ... > > By the way, a few days ago, I posted a patch at #8611 that > > considerably speeds up cached_method. I'd appreciate a review! > > Cool. Looks like it neads a rebase though. Really? I made it using Sage Version 4.6.1.rc0. So, do I ne

[sage-devel] Setting up a notebook server with 1-1 mapping between NBUsers and UIDs

2011-01-15 Thread Nils Bruin
I understand that the notebook server is in the process of being redesigned. I have one idea that would make notebook server security easier to explain to sysadmins: * Make a notebook server virtual machine (I guess "appliance") where the notebook users have a 1-1 correspondence with the Unix Use

Re: [sage-devel] Re: Caching a python function in (s)pyx file?

2011-01-15 Thread Robert Bradshaw
On Sat, Jan 15, 2011 at 10:44 AM, Simon King wrote: > Hi! > > On 15 Jan., 18:33, Dima Pasechnik wrote: >> I wonder if it is possible  to use CachedFunction in Cython. >> Caching a python function in (s)pyx file does not seem to work: > > Indeed, caching does not work for Cython functions or metho

Re: [sage-devel] Re: Sage forker

2011-01-15 Thread Robert Bradshaw
On Sat, Jan 15, 2011 at 10:19 AM, Volker Braun wrote: > Maybe combine it with a zeromq-based main loop for the worker Sage process. > Then the notebook worker and the command line Sage would use the same > codebase... > Of course this is just psychological and won't speed up any actual > computati

[sage-devel] Re: Are computer generated patches allowed?

2011-01-15 Thread Rob Beezer
On Jan 15, 9:23 am, Jeroen Demeyer wrote: > Whether every range() should be changed to xrange(): I can't comment on > that. In Python 3, range() will return an iterator, which is the current behavior of xrange(). I'm not sure about the fate of xrange() in Python 3. See for example: http://stac

[sage-devel] Re: Caching a python function in (s)pyx file?

2011-01-15 Thread Simon King
Hi! On 15 Jan., 18:33, Dima Pasechnik wrote: > I wonder if it is possible  to use CachedFunction in Cython. > Caching a python function in (s)pyx file does not seem to work: Indeed, caching does not work for Cython functions or methods. The reason is that Python functions have some attributes th

Re: [sage-devel] simplify_full on matrices.

2011-01-15 Thread Francois Maltey
Hello, Any chance that we can add simplify_full on matrices? So that each element is simplified if possible? /1/ I suppose you know the map function that operate over each term of a list. map (lambda x: 3*x, [1,2,3]) # computes [3,6,9] # you can replace 3*x by the function simplify_what_y

[sage-devel] Re: Sage forker

2011-01-15 Thread Volker Braun
Maybe combine it with a zeromq-based main loop for the worker Sage process. Then the notebook worker and the command line Sage would use the same codebase... Of course this is just psychological and won't speed up any actual computation ;-) -- To post to this group, send an email to sage-dev

[sage-devel] Caching a python function in (s)pyx file?

2011-01-15 Thread Dima Pasechnik
I wonder if it is possible  to use CachedFunction in Cython. Caching a python function in (s)pyx file does not seem to work: On Jan 15, 12:31 am, Dima Pasechnik wrote: > I wonder if it is possible  to use CachedFunction in Cython. > I try doing > sage: load 'cf.spyx' > > where the file is > > # -

Re: [sage-devel] Are computer generated patches allowed?

2011-01-15 Thread Jeroen Demeyer
On 2011-01-15 04:25, koffie wrote: > Are such computer generated changes allowable. I'm only answering strictly to this question: yes, I think computer generated patches *are* allowed (I did this in #10115 for example). But you should absolutely check by hand afterwards that you didn't do anything

[sage-devel] Re: sage-4.6.1-linux-32bit-fedora_release_13_goddard fails to run

2011-01-15 Thread asd1815
This is very misleading and disturbing. Fedora 13 Godard does NOT provide 3.4.14 and it never will. http://koji.fedoraproject.org/koji/rpminfo?rpmID=2256490 I suggest that you rename the package to Fedora 14 Laughlin instead. This is not the first time this happens to me. A year ago I complained a

[sage-devel] Sage days 28, Orsay, France, 17-19 Jan 2011

2011-01-15 Thread Samuel Lelievre
Chers collègues, Vous avez probablement entendu parler de Sage, un logiciel libre de mathématiques qui combine la puissance de nombreux programmes libres dans une interface commune, et qui s'est donné pour mission de créer une alternative viable, libre et open source, à Magma, Maple, Mathematica e

[sage-devel] Are computer generated patches allowed?

2011-01-15 Thread koffie
Dear All, When optimizing some sage code. I found in multiple places the same reason for some stupid slowdown. Namely using: "for i in range(huge_number):" in several places. Instead of manually changing each of these occurances I thought it was easier to just write a bash oneliner which does this

[sage-devel] simplify_full on matrices.

2011-01-15 Thread ancienthart
Any chance that we can add simplify_full on matrices? So that each element is simplified if possible? For example, D = matrix([[-(e^3+2)/(e^3-1) + (2*e^3+1)/(e^3-1),1],[2,0]]) In sage, this returns a complex matrix. D[0][0].simplify_full() returns 1. I've noticed that matrices have the methods

[sage-devel] Re: caching a function

2011-01-15 Thread Dima Pasechnik
I wonder if it is possible to use CachedFunction in Cython. I try doing sage: load 'cf.spyx' where the file is # cf.spyx from sage.misc.cachefunc import CachedFunction @CachedFunction def y(): return 2000*1234 #- and it does not work --- I get Compiling ./cf.spyx... -