Re: [sage-devel] abuse of char C type in Cython (several places in sage/) - please review your code

2012-01-30 Thread Willem Jan Palenstijn
On Mon, Jan 30, 2012 at 03:13:50AM +0100, Julien Puydt wrote: > Le 30/01/2012 03:10, Dima Pasechnik a écrit : > >Working on the ARM port (kudos to Snark), which has, unlike x86, > >unsigned char, we stumbled upon several places in Sage library (in > >Cython code) where char type was used for (essen

[sage-devel] Re: Re: [sage-support] performance of matrix_from_columns method ...

2012-01-30 Thread Martin Albrecht
On Monday 30 January 2012, you wrote: > Dear Martin, Hi Benjamin, (CC [sage-devel] where I think this discussion belongs), > I do know C - and I've dowloaded the M4RI library. I was considering > writing up > some C code (and use ctypes to tie back to python/sage) > which would wrap M4RI more d

Re: Re: [sage-devel] abuse of char C type in Cython (several places in sage/) - please review your code

2012-01-30 Thread Martin Albrecht
On Monday 30 January 2012, Julien Puydt wrote: > Le 30/01/2012 03:10, Dima Pasechnik a écrit : > > Working on the ARM port (kudos to Snark), which has, unlike x86, > > unsigned char, we stumbled upon several places in Sage library (in > > Cython code) where char type was used for (essentially) oper

Re: [sage-devel] abuse of char C type in Cython (several places in sage/) - please review your code

2012-01-30 Thread Julien Puydt
Le 30/01/2012 09:43, Martin Albrecht a écrit : Did you by any chance test whether switching to unsigned char in the matrix_mod2 reduce function indeed fixes the issue? I don't have an ARM box here to test? I will try that as soon as Dima will have confirmed I'm not stepping on his toes doing s

[sage-devel] Re: abuse of char C type in Cython (several places in sage/) - please review your code

2012-01-30 Thread Volker Braun
As a code sample: from libc.stdint cimport * cdef int8_t ok_int8 = 127 cdef int8_t bad_int8 = 128 cdef uint8_t ok_uint8 = 255 cdef uint8_t bad_uint8 = 256 print "127 ==", ok_int8 # output is 127 == 127 print "127 !=", bad_int8 # output is 127 != -128 print "255 ==", ok_uint8 # o

Re: [sage-devel] abuse of char C type in Cython (several places in sage/) - please review your code

2012-01-30 Thread Julien Puydt
Le 30/01/2012 04:12, Julien Puydt a écrit : I will try that as soon as Dima will have confirmed I'm not stepping on his toes doing so. He did, I tried, it worked : http://trac.sagemath.org/sage_trac/ticket/12386 One more ARM problem down *g* Snark on #sagemath -- To post to this group, send

[sage-devel] Re: webgl

2012-01-30 Thread Jason Grout
On 1/29/12 7:29 PM, Dima Pasechnik wrote: On Monday, 30 January 2012 03:49:45 UTC+8, Keshav Kini wrote: Well, I wonder if we shouldn't ask around a bit more. If a day later you found something better than pre3d, maybe soon you will find something even better than three.js? :P As to

[sage-devel] Re: [sage-support] performance of matrix_from_columns method ...

2012-01-30 Thread Jason Grout
On 1/30/12 2:36 AM, Martin Albrecht wrote: Dear Martin, Hi Benjamin, (CC [sage-devel] where I think this discussion belongs), Of course, an implementation that uses the library routines directly will be the fastest. However, this is still pretty sad for the standard code. I looked into it

[sage-devel] sage-4.8 relocation problem (OSX binary)

2012-01-30 Thread Guilherme
Dear developers, I downloaded a sage-4.8 .dmg installer for OS X (10.6.8 in my case). On the first launch it tells me about relocation, after that Sage works OK. Now I am trying to upgrade some of my spkg and Distutils doesn't seem to find the proper include and lib paths. Therefore gcc and gfort

[sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread Nathann Cohen
Hello everybody !!! I wondered why we still had .py files in our library. Some time ago this made sense as there were Python features that were not available in Cython -- like the yield keyword -- but now that they are, what is the point ? I'm asking this because we have in the Graph classes which

Re: [sage-devel] Create numpy-functions from sage symbolic functions

2012-01-30 Thread Burcin Erocal
Hi Maximillian, On Fri, 27 Jan 2012 19:27:45 +0100 Maximilian Trescher wrote: > I'm very new to the developers list. > About my background: I'm studying physics (in Berlin) and I'm using > sage regularly for some physical calculations. > > Three days ago I wondered if there is any possibility t

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread William Stein
On Jan 30, 2012 5:12 AM, "Nathann Cohen" wrote: > > Hello everybody !!! > > I wondered why we still had .py files in our library. Some time ago > this made sense as there were Python features that were not available > in Cython -- like the yield keyword -- but now that they are, what is > the poin

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread Nathann Cohen
Hell !! > If you ever change a filebfrom Python to Cython for no clear good reason, I > will be very annoyed. Well, the point's always to be able to rewrite code more efficiently :-p > One should always use Python instead of Cython unless > there is a clear compelling reason not to. Rea

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread William Stein
On Jan 30, 2012 8:09 AM, "Nathann Cohen" wrote: > > Hell !! > > > > If you ever change a filebfrom Python to Cython for no clear good reason, I > > will be very annoyed. > > Well, the point's always to be able to rewrite code more efficiently :-p > > > > One should always use Python instea

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread Nathann Cohen
> I would even add this to the review checklist. Well... O_o > It takes nearly an hour on one cpu to build the sage library now right? > If you change all .py to .pyx, it might take 2 hours. That .5 seconds you site can be longer for bigger files and adds up. Well, that's mostly libraries, isn

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread Julien Puydt
Le 30/01/2012 17:16, William Stein a écrit : On Jan 30, 2012 8:09 AM, "Nathann Cohen" mailto:nathann.co...@gmail.com>> wrote: > Come ooon ! Half a second when you rebuild Sage !!! How bad can that be ? > It takes nearly an hour on one cpu to build the sage library now right? If you change

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread Nathann Cohen
> Spoiled, both of you. > > If I touch devel/sage/sage/graph/graph_decompositions/vertex_separation.pyx, > then run sage -b, it takes already more than 30s on my little ARM box. THIS file takes 30 seconds ? O_O How long did it take to build Sage on this machine ? And how fast is that machine by

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread Julien Puydt
Le 30/01/2012 17:28, Nathann Cohen a écrit : Spoiled, both of you. If I touch devel/sage/sage/graph/graph_decompositions/vertex_separation.pyx, then run sage -b, it takes already more than 30s on my little ARM box. THIS file takes 30 seconds ? O_O How long did it take to build Sage on this m

Re: [sage-devel] Create numpy-functions from sage symbolic functions

2012-01-30 Thread Maximilian Trescher
Hi, thanks for the hint. i looked into it (shortly), this seems the way to go, but again my question is: is there interest in it? I could/would rewrite it using this infrastructure, but only if there are people interested in it... thanks Maximilian > > You should use the infrastructure (written

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread William Stein
On Mon, Jan 30, 2012 at 8:25 AM, Nathann Cohen wrote: >> I would even add this to the review checklist. > > Well... O_o > > >> It takes nearly an hour on one cpu to build the sage library now right? >> If you change all .py to .pyx, it might take 2 hours.   That .5 seconds >> you site can be longe

Re: [sage-devel] Re: sage-5.0.x and OS X 10.7 Lion

2012-01-30 Thread John H Palmieri
On Tuesday, January 17, 2012 1:59:45 PM UTC-8, William wrote: > > On Tue, Jan 17, 2012 at 1:39 PM, William Stein wrote: > > On Mon, Jan 16, 2012 at 3:43 PM, William Stein wrote: > >> On Mon, Jan 16, 2012 at 9:26 AM, John H Palmieri > wrote: > >>> > >>> > >>> On Monday, January 16, 2012 7:42:4

Re: [sage-devel] Should we slowly move the .py files to .pyx files now that we have iterators ?

2012-01-30 Thread William Stein
On Mon, Jan 30, 2012 at 8:16 AM, William Stein wrote: > > On Jan 30, 2012 8:09 AM, "Nathann Cohen" wrote: >> >> Hell !! >> >> >> > If you ever change a filebfrom Python to Cython for no clear good >> > reason, I >> > will be very annoyed. >> >> Well, the point's always to be able to rewri

Re: [sage-devel] Sage 4.8 and 5.0.beta1 (OS X 10.6)-> Error installing package R

2012-01-30 Thread François Bissey
On Mon, 30 Jan 2012 16:20:50 Guilherme Brondani Torri wrote: > Hello! > > I jut tried to compile Sage 4.8 and 5.0.beta1 on a OS X 10.6.8 (Snow > Leopard) without success. > > I just did: > export MAKE="make -j8" > make > > Even after R fails the compilation goes a bit further and stops. Please

[sage-devel] Re: Factorising RSA modulus with high/low-order bits known module or relevent

2012-01-30 Thread Ermis
This is really helpful Martin! Thank you very much. I shall have a thorough look at this. And I would be very happy to contribute too. Regards, Ermis On Jan 29, 8:41 pm, Martin Albrecht wrote: > On Sunday 29 January 2012, Ermis wrote: > > > Hi all, > > Hi, > > > I am focusing on the LLL algori

[sage-devel] Re: Factorising RSA modulus with high/low-order bits known module or relevent

2012-01-30 Thread Ermis
Hi Bill, I will have a look at this p^2+p+1 algorithm. I haven't tried flint to be honest. This might be an alternative solution. Thank you very much! Regards, Ermis On Jan 29, 9:55 pm, Bill Hart wrote: > There's an LLL in flint 1.5, called ULLL which is very fast for large > lattice entries.

[sage-devel] iOS app is for sale

2012-01-30 Thread Ivan Andrus
For those who have been waiting to run it, version 1.0 of the iPhone app is in the app store: http://itunes.apple.com/us/app/sage-math/id496492945?ls=1&mt=8 I would love any feedback, big or small. Be warned, interacts are supported yet. -Ivan -- To post to this group, send an email to sage

[sage-devel] Re: iOS app is for sale

2012-01-30 Thread Jason Grout
On 1/30/12 4:39 PM, Ivan Andrus wrote: For those who have been waiting to run it, version 1.0 of the iPhone app is in the app store: http://itunes.apple.com/us/app/sage-math/id496492945?ls=1&mt=8 I would love any feedback, big or small. Be warned, interacts are supported yet. For those th

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread David Joyner
On Mon, Jan 30, 2012 at 5:39 PM, Ivan Andrus wrote: > For those who have been waiting to run it, version 1.0 of the iPhone app is > in the app store: > > http://itunes.apple.com/us/app/sage-math/id496492945?ls=1&mt=8 I don't see it in an itunes search for "sage math" > > I would love any feedba

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Justin C. Walker
On Jan 30, 2012, at 14:39 , Ivan Andrus wrote: > For those who have been waiting to run it, version 1.0 of the iPhone app is > in the app store: > > http://itunes.apple.com/us/app/sage-math/id496492945?ls=1&mt=8 > > I would love any feedback, big or small. Be warned, interacts are supported

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Ivan Andrus
On Jan 30, 2012, at 11:45 PM, David Joyner wrote: > On Mon, Jan 30, 2012 at 5:39 PM, Ivan Andrus wrote: >> For those who have been waiting to run it, version 1.0 of the iPhone app is >> in the app store: >> >> http://itunes.apple.com/us/app/sage-math/id496492945?ls=1&mt=8 > > I don't see it in

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Ivan Andrus
On Jan 30, 2012, at 11:54 PM, Justin C. Walker wrote: > On Jan 30, 2012, at 14:39 , Ivan Andrus wrote: > >> For those who have been waiting to run it, version 1.0 of the iPhone app is >> in the app store: >> >> http://itunes.apple.com/us/app/sage-math/id496492945?ls=1&mt=8 >> >> I would love an

[sage-devel] Re: webgl

2012-01-30 Thread Jason Grout
On 1/29/12 1:49 PM, Keshav Kini wrote: Well, I wonder if we shouldn't ask around a bit more. If a day later you found something better than pre3d, maybe soon you will find something even better than three.js? :P As to who would be a good community to ask about this stuff, though, I have no idea.

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread David Joyner
On Mon, Jan 30, 2012 at 5:54 PM, Ivan Andrus wrote: > On Jan 30, 2012, at 11:45 PM, David Joyner wrote: >> On Mon, Jan 30, 2012 at 5:39 PM, Ivan Andrus wrote: >>> For those who have been waiting to run it, version 1.0 of the iPhone app is >>> in the app store: >>> >>> http://itunes.apple.com/us/

[sage-devel] Re: FreeBSD and Sage - ccosh

2012-01-30 Thread kcrisman
Just to make sure this is found by anyone searching this thread: http://trac.sagemath.org/sage_trac/ticket/12399 http://trac.sagemath.org/sage_trac/ticket/12400 http://trac.sagemath.org/sage_trac/ticket/12401 are followup tickets with some of the stuff from the "port" attached or copied. -- To

[sage-devel] Re: sagemath.org, sagenb.org and mobile devices

2012-01-30 Thread Jason Grout
On 1/29/12 9:41 AM, Ivan Andrus wrote: On Jan 25, 2012, at 2:52 PM, kcrisman wrote: Ivan's iPhone app is cool. However, when it links to sagenb or sagemath.org, it looks ... unhelpful. Perhaps this is possible to fix easily - exchange below. Is there someone for whom this would be only epsi

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread William Stein
On Jan 30, 2012 5:27 PM, "David Joyner" wrote: > > On Mon, Jan 30, 2012 at 5:54 PM, Ivan Andrus wrote: > > On Jan 30, 2012, at 11:45 PM, David Joyner wrote: > >> On Mon, Jan 30, 2012 at 5:39 PM, Ivan Andrus wrote: > >>> For those who have been waiting to run it, version 1.0 of the iPhone app is

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread William Stein
On Jan 30, 2012 8:17 PM, "William Stein" wrote: > > > On Jan 30, 2012 5:27 PM, "David Joyner" wrote: > > > > On Mon, Jan 30, 2012 at 5:54 PM, Ivan Andrus wrote: > > > On Jan 30, 2012, at 11:45 PM, David Joyner wrote: > > >> On Mon, Jan 30, 2012 at 5:39 PM, Ivan Andrus wrote: > > >>> For those w

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Iftikhar Burhanuddin
On Mon, Jan 30, 2012 at 8:21 PM, William Stein wrote: > > On Jan 30, 2012 8:17 PM, "William Stein" wrote: >> >> >> On Jan 30, 2012 5:27 PM, "David Joyner" wrote: >> > >> > On Mon, Jan 30, 2012 at 5:54 PM, Ivan Andrus >> > wrote: >> > > On Jan 30, 2012, at 11:45 PM, David Joyner wrote: >> > >> O

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Iftikhar Burhanuddin
On Mon, Jan 30, 2012 at 8:34 PM, Iftikhar Burhanuddin wrote: > On Mon, Jan 30, 2012 at 8:21 PM, William Stein wrote: >> >> On Jan 30, 2012 8:17 PM, "William Stein" wrote: >>> >>> >>> On Jan 30, 2012 5:27 PM, "David Joyner" wrote: >>> > >>> > On Mon, Jan 30, 2012 at 5:54 PM, Ivan Andrus >>> > w

[sage-devel] Problem with the patchbot?

2012-01-30 Thread Kwankyu Lee
On my patch, the patchbot shows a red swirling symbol with the following log: ... -- sage: Building and installing modified Sage library files. Installing c_lib gcc -o src/convert.os -c -fPIC -I/levi/scratch/robertwb/buildbot/sage-4.8/lo

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Iftikhar Burhanuddin
On Mon, Jan 30, 2012 at 9:00 PM, Iftikhar Burhanuddin wrote: > On Mon, Jan 30, 2012 at 8:34 PM, Iftikhar Burhanuddin > wrote: >> On Mon, Jan 30, 2012 at 8:21 PM, William Stein wrote: >>> >>> On Jan 30, 2012 8:17 PM, "William Stein" wrote: On Jan 30, 2012 5:27 PM, "David Joyner"

Re: [sage-devel] Problem with the patchbot?

2012-01-30 Thread Minh Nguyen
Hi Kwankyu, On Tue, Jan 31, 2012 at 4:26 PM, Kwankyu Lee wrote: > src/convert.c:56: fatal error: error closing /tmp/ccj9Gz6N.s: No space left > on device > compilation terminated. > scons: *** [src/convert.os] Error 1 > ERROR: There was an error building c_lib. > ... > > This does not seem a faul

Re: [sage-devel] Problem with the patchbot?

2012-01-30 Thread Kwankyu Lee
Thanks for explaining me. 16G seems small, considering the (huge, I think) amount of loads on the patchbot. Kwankyu -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options,

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Justin C. Walker
Hi, Ifti, On Jan 30, 2012, at 21:36 , Iftikhar Burhanuddin wrote: > On Mon, Jan 30, 2012 at 9:00 PM, Iftikhar Burhanuddin > wrote: >> On Mon, Jan 30, 2012 at 8:34 PM, Iftikhar Burhanuddin [snip] >> >> I think I figured it out. I first have to upgrade my iTunes on my Mac >> and then upgrade iOS o

Re: [sage-devel] Re: FreeBSD and Sage - ccosh

2012-01-30 Thread Stephen Montgomery-Smith
On 01/30/2012 08:27 PM, kcrisman wrote: Just to make sure this is found by anyone searching this thread: http://trac.sagemath.org/sage_trac/ticket/12399 http://trac.sagemath.org/sage_trac/ticket/12400 http://trac.sagemath.org/sage_trac/ticket/12401 are followup tickets with some of the stuff fr

Re: [sage-devel] Problem with the patchbot?

2012-01-30 Thread William Stein
On Mon, Jan 30, 2012 at 9:48 PM, Kwankyu Lee wrote: > Thanks for explaining me. 16G seems small, considering the (huge, I think) > amount of loads on the patchbot. No, 16GB should be fine. Unfortunately, the problem is that the patchbot keeps "crashing" and dumping some sort of massive output fi

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Iftikhar Burhanuddin
On Mon, Jan 30, 2012 at 9:52 PM, Justin C. Walker wrote: > Hi, Ifti, > On Jan 30, 2012, at 21:36 , Iftikhar Burhanuddin wrote: > >> On Mon, Jan 30, 2012 at 9:00 PM, Iftikhar Burhanuddin >> wrote: >>> On Mon, Jan 30, 2012 at 8:34 PM, Iftikhar Burhanuddin > [snip] >>> >>> I think I figured it out.

Re: [sage-devel] iOS app is for sale

2012-01-30 Thread Justin C. Walker
On Jan 30, 2012, at 22:51 , Iftikhar Burhanuddin wrote: > On Mon, Jan 30, 2012 at 9:52 PM, Justin C. Walker wrote: >> Hi, Ifti, >> On Jan 30, 2012, at 21:36 , Iftikhar Burhanuddin wrote: [snip] >> In order to run the "sage math " app, you need to have iOS 5.x installed on >> your iDevice. In o

Re: [sage-devel] Problem with the patchbot?

2012-01-30 Thread Volker Braun
How about setting "ulimit -c 0" (coredumpsize) for the patch bot? -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/s

Re: [sage-devel] Problem with the patchbot?

2012-01-30 Thread Robert Bradshaw
Done. Now if only I could figure out why the doctests keep crashing... On Mon, Jan 30, 2012 at 11:21 PM, Volker Braun wrote: > How about setting "ulimit -c 0" (coredumpsize) for the patch bot? > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this

[sage-devel] Naming runs of Sage

2012-01-30 Thread Iftikhar Burhanuddin
Hi folks, When I execute a Sage script using the 'nohup' command [1], for instance nohup sage test.sage > out.txt & the process is listed in the 'top' command display as 'python'. How do I give user-generated names to this 'python' process for the purpose of identification? Regards, Ifti [1] h