[sage-devel] Re: Patchbot

2014-06-21 Thread Ralf Stephan


On Friday, June 20, 2014 8:10:18 AM UTC+2, Robert Bradshaw wrote:
>
> I just released a new version of the patchbot: 
> http://sage.math.washington.edu/home/robertwb/patches/patchbot-2.2.spkg 
> https://github.com/robertwb/sage-patchbot/compare/2.1.1.1...2.2 
>

Nice. Can you please explain what happens with this PluginFailed? I cannot 
see why...
http://patchbot.sagemath.org/ticket/2516/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Patchbot

2014-06-21 Thread Volker Braun
plugins.startup_modules checks that no new modules are being imported at 
startup.

As with most plugins, this requires some human judgement. We don't want to 
make the startup time any worse than what it already is. On the other hand, 
if your module is required by something that is already imported at startup 
it might not be feasible to avoid it. The plugin failure is a hint that you 
should try to use the lazy_import mechanism to avoid importing the module 
at startup.


On Saturday, June 21, 2014 8:47:57 AM UTC+1, Ralf Stephan wrote:
>
>
>
> On Friday, June 20, 2014 8:10:18 AM UTC+2, Robert Bradshaw wrote:
>>
>> I just released a new version of the patchbot: 
>> http://sage.math.washington.edu/home/robertwb/patches/patchbot-2.2.spkg 
>> https://github.com/robertwb/sage-patchbot/compare/2.1.1.1...2.2 
>>
>
> Nice. Can you please explain what happens with this PluginFailed? I cannot 
> see why...
> http://patchbot.sagemath.org/ticket/2516/
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Patchbot

2014-06-21 Thread Ralf Stephan
Thanks. Eventually I'll have to make a visualization of the system.


On Sat, Jun 21, 2014 at 12:43 PM, Volker Braun 
wrote:

> plugins.startup_modules checks that no new modules are being imported at
> startup.
>
> As with most plugins, this requires some human judgement. We don't want to
> make the startup time any worse than what it already is. On the other hand,
> if your module is required by something that is already imported at startup
> it might not be feasible to avoid it. The plugin failure is a hint that you
> should try to use the lazy_import mechanism to avoid importing the module
> at startup.
>
>
> On Saturday, June 21, 2014 8:47:57 AM UTC+1, Ralf Stephan wrote:
>>
>>
>>
>> On Friday, June 20, 2014 8:10:18 AM UTC+2, Robert Bradshaw wrote:
>>>
>>> I just released a new version of the patchbot:
>>> http://sage.math.washington.edu/home/robertwb/patches/patchbot-2.2.spkg
>>> https://github.com/robertwb/sage-patchbot/compare/2.1.1.1...2.2
>>>
>>
>> Nice. Can you please explain what happens with this PluginFailed? I
>> cannot see why...
>> http://patchbot.sagemath.org/ticket/2516/
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/d7FVLt8Cyb8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: RFC: New Build/Packaging System

2014-06-21 Thread Volker Braun
I've made a proof-of-concept conversion of the Sage packaging system to 
hashdist:

https://github.com/vbraun/sagestack

Obviously its not working, but you can build third-party packages and maybe 
play around with hashdist.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: [sage-cloud] network access from projects

2014-06-21 Thread William Stein
On Thu, Jun 19, 2014 at 6:02 PM, R. Andrew Ohana  wrote:
> Some observations from this change:
>
> 1) The "From Internet" button in the +New tab is right now a complete lie,
> and gives un-user friendly error messages. Either you should remove this
> button (for now), or somehow make it bypass the whitelist.
> 2) You cannot ssh out (nor use any services that rely on ssh tunnels, e.g.
> sshfs).
> 3) It seems like only some of *.sagemath.org is whitelisted: you can
> download packages, but you cannot interact with the repository at
> git.sagemath.org.
> 3b) Because of 2, you cannot contribute to sage development.
> 4) It makes working on the distribution part of sage (whether reviewing, or
> upgrading packages) pretty much impossible at the moment.

I've updated the whitelist to allow connections to git.sagemath.org,
so sage dev should be possible again.

 -- William


>
> At the very least 1 and 3 should be fixed ASAP (and not wait for this vague
> "quota" thing).
>
>
>
> On Thu, Jun 19, 2014 at 10:56 AM, William Stein  wrote:
>>
>> Hi,
>>
>> Unfortunately, due to malicious abuse of resources, most access *to*
>> the outside internet *from* a SageMathCloud projects will soon be
>> removed.  This will restrict what is possible using SMC (e.g., wget
>> from a terminal, downloading files from the web, etc.).  We will
>> have a very small whitelist, which may be the following:
>>
>>- github
>>- bitbucket
>>- dropbox
>>
>> If there is anything else you desperately need on such a whitelist,
>> let me know and we'll consider it.
>>
>> Note: this is not at all a should-we or should-we-not discussion --
>> this is the way it will be.
>>
>> Similar remarks apply to sagenb.org, the sage cell server, etc.
>>
>> At some point later this summer, there will be another setting under
>> "quota", which will allow for more general network access for specific
>> projects (which I'll have to initially manually enable on a
>> per-project basis).
>>
>>   -- William
>>
>>
>> --
>> William Stein
>> Professor of Mathematics
>> University of Washington
>> http://wstein.org
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "sage-cloud" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-cloud+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-cloud/CACLE5GABnqCSafd%3DmwDAkaKy18UepqxHnvnnQHJA77A5AgPYQg%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Andrew
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
>
> For more options, visit https://groups.google.com/d/optout.



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

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: RFC: New Build/Packaging System

2014-06-21 Thread Volker Braun
PS: I just remembered that this is using file globs, so you need hashdist 
from this branch: https://github.com/vbraun/hashdist/tree/files_glob. 
Though it should be merged upstream soon.


On Saturday, June 21, 2014 11:22:26 PM UTC+1, Volker Braun wrote:
>
> I've made a proof-of-concept conversion of the Sage packaging system to 
> hashdist:
>
> https://github.com/vbraun/sagestack
>
> Obviously its not working, but you can build third-party packages and 
> maybe play around with hashdist.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: RFC: New Build/Packaging System

2014-06-21 Thread Aron Ahmadia
Wow, this is really impressive work!

A


On Sat, Jun 21, 2014 at 7:42 PM, Volker Braun  wrote:

> PS: I just remembered that this is using file globs, so you need hashdist
> from this branch: https://github.com/vbraun/hashdist/tree/files_glob.
> Though it should be merged upstream soon.
>
>
>
> On Saturday, June 21, 2014 11:22:26 PM UTC+1, Volker Braun wrote:
>>
>> I've made a proof-of-concept conversion of the Sage packaging system to
>> hashdist:
>>
>> https://github.com/vbraun/sagestack
>>
>> Obviously its not working, but you can build third-party packages and
>> maybe play around with hashdist.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/52VPaADq0pU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: RFC: New Build/Packaging System

2014-06-21 Thread Aron Ahmadia
Also, I just merged Volker's pull request in to <#> master.  You shouldn't
need to use his hashdist branch.

A


On Sat, Jun 21, 2014 at 7:47 PM, Aron Ahmadia  wrote:

> Wow, this is really impressive work!
>
> A
>
>
> On Sat, Jun 21, 2014 at 7:42 PM, Volker Braun 
> wrote:
>
>> PS: I just remembered that this is using file globs, so you need hashdist
>> from this branch: https://github.com/vbraun/hashdist/tree/files_glob.
>> Though it should be merged upstream soon.
>>
>>
>>
>> On Saturday, June 21, 2014 11:22:26 PM UTC+1, Volker Braun wrote:
>>>
>>> I've made a proof-of-concept conversion of the Sage packaging system to
>>> hashdist:
>>>
>>> https://github.com/vbraun/sagestack
>>>
>>> Obviously its not working, but you can build third-party packages and
>>> maybe play around with hashdist.
>>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "sage-devel" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/sage-devel/52VPaADq0pU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread gofortu...@gmail.com
I didn't get such answer as you got,my Sage factor 2007193456621 correctly.
N.factor() returns 1001797*2003593.
Did you use an old version of Sage?



發自我的小米手機

John Cremona 提到:

>I noticed an announcement on the flint-dev list which led me to try
>this, and indeed we have the bug:
>
>sage: n=2007193456621
>sage: n.is_prime()
>False
>sage: n.factor() # !!
>2007193456621
>sage: pari(n).factor()
>[1001797, 1; 2003593, 1]
>sage: n == 1001797 * 2003593
>True
>
>See flint-dev for more details, but this seems serious enough to
>report here too.  I do not understand why Sage fails to factor n since
>the documentation says that pari is the default, and pari can factor
>this n (as above), however:
>
>sage: n.factor(algorithm='pari')
>2007193456621
>
>but
>
>sage: from sage.rings.factorint import factor_using_pari
>sage: factor_using_pari(n)
>[(1001797, 1), (2003593, 1)]
>
>so something is going wrong before pari is getting called, perhaps a
>primality test?
>
>John
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"sage-devel" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to sage-devel+unsubscr...@googlegroups.com.
>To post to this group, send email to sage-devel@googlegroups.com.
>Visit this group at http://groups.google.com/group/sage-devel.
>For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread William Stein
On Jun 21, 2014 7:17 PM, "gofortu...@gmail.com" 
wrote:
>
> I didn't get such answer as you got,my Sage factor 2007193456621
correctly.
> N.factor() returns 1001797*2003593.
> Did you use an old version of Sage?
>

What version are *you* using?

>
>
> 發自我的小米手機
>
> John Cremona 提到:
>
> >I noticed an announcement on the flint-dev list which led me to try
> >this, and indeed we have the bug:
> >
> >sage: n=2007193456621
> >sage: n.is_prime()
> >False
> >sage: n.factor() # !!
> >2007193456621
> >sage: pari(n).factor()
> >[1001797, 1; 2003593, 1]
> >sage: n == 1001797 * 2003593
> >True
> >
> >See flint-dev for more details, but this seems serious enough to
> >report here too.  I do not understand why Sage fails to factor n since
> >the documentation says that pari is the default, and pari can factor
> >this n (as above), however:
> >
> >sage: n.factor(algorithm='pari')
> >2007193456621
> >
> >but
> >
> >sage: from sage.rings.factorint import factor_using_pari
> >sage: factor_using_pari(n)
> >[(1001797, 1), (2003593, 1)]
> >
> >so something is going wrong before pari is getting called, perhaps a
> >primality test?
> >
> >John
> >
> >--
> >You received this message because you are subscribed to the Google
Groups "sage-devel" group.
> >To unsubscribe from this group and stop receiving emails from it, send
an email to sage-devel+unsubscr...@googlegroups.com.
> >To post to this group, send email to sage-devel@googlegroups.com.
> >Visit this group at http://groups.google.com/group/sage-devel.
> >For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
"sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread gofortu...@gmail.com
I use Sage 6.1.1 which I build from source code on my x86 Ubuntu14.04

William Stein 提到:

>
>On Jun 21, 2014 7:17 PM, "gofortu...@gmail.com"  wrote:
>>
>> I didn't get such answer as you got,my Sage factor 2007193456621 correctly.
>> N.factor() returns 1001797*2003593.
>> Did you use an old version of Sage?
>>
>
>What version are *you* using?
>
>>
>>
>> 發自我的小米手機
>>
>> John Cremona 提到:
>>
>> >I noticed an announcement on the flint-dev list which led me to try
>> >this, and indeed we have the bug:
>> >
>> >sage: n=2007193456621
>> >sage: n.is_prime()
>> >False
>> >sage: n.factor()                 # !!
>> >2007193456621
>> >sage: pari(n).factor()
>> >[1001797, 1; 2003593, 1]
>> >sage: n == 1001797 * 2003593
>> >True
>> >
>> >See flint-dev for more details, but this seems serious enough to
>> >report here too.  I do not understand why Sage fails to factor n since
>> >the documentation says that pari is the default, and pari can factor
>> >this n (as above), however:
>> >
>> >sage: n.factor(algorithm='pari')
>> >2007193456621
>> >
>> >but
>> >
>> >sage: from sage.rings.factorint import factor_using_pari
>> >sage: factor_using_pari(n)
>> >[(1001797, 1), (2003593, 1)]
>> >
>> >so something is going wrong before pari is getting called, perhaps a
>> >primality test?
>> >
>> >John
>> >
>> >--
>> >You received this message because you are subscribed to the Google Groups 
>> >"sage-devel" group.
>> >To unsubscribe from this group and stop receiving emails from it, send an 
>> >email to sage-devel+unsubscr...@googlegroups.com.
>> >To post to this group, send email to sage-devel@googlegroups.com.
>> >Visit this group at http://groups.google.com/group/sage-devel.
>> >For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"sage-devel" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to sage-devel+unsubscr...@googlegroups.com.
>To post to this group, send email to sage-devel@googlegroups.com.
>Visit this group at http://groups.google.com/group/sage-devel.
>For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread Nils Bruin


On Saturday, June 21, 2014 9:06:39 PM UTC-7, 张秦川 wrote:
>
> I use Sage 6.1.1 which I build from source code on my x86 Ubuntu14.04
>

The x86 is the key here. The flint announcement mentions that this bug only 
affects 64 bit platforms.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.