[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
On Saturday, 23 August 2014 06:09:00 UTC+2, jason wrote: > > On 8/21/14, 11:36, Bill Hart wrote: > > You can define the A.b syntax in Julia if you should so desire. It's > > essentially just another kind of method overload in Julia. > > > > And then, it supports A. giving a list of all the th

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
On Saturday, 23 August 2014 04:26:10 UTC+2, jason wrote: > > On 8/21/14, 18:08, Bill Hart wrote: > > In theory, I can do generic programming in Julia that is faster (at > > runtime) than you can do in *any* C compiler. And I don't just mean a > > little bit. I mean a lot. I don't even think th

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Jason Grout
On 8/21/14, 11:36, Bill Hart wrote: You can define the A.b syntax in Julia if you should so desire. It's essentially just another kind of method overload in Julia. And then, it supports A. giving a list of all the things that could follow the dot, just as Python would. Are you saying you can o

Re: [sage-devel] Re: About "pi?"

2014-08-22 Thread Erik Massop
Dear all, This is now ticket #16871: http://trac.sagemath.org/ticket/16871 Regards, Erik Massop On Thu, 21 Aug 2014 13:33:53 -0700 (PDT) Volker Braun wrote: > +1 to dynamically generating a suitable docstring if the expression > consists only of a single constant. But IMHO it should still

[sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread Jason Grout
On 8/22/14, 0:45, Fernando Perez wrote: Because our execution model decouples the kernel from the filesystem, the user gets their 'normal' environment, files, etc, and they don't really need to know anything about the VM to get to their work, their directories, etc. Their .sage and .ipynb files

Re: [sage-devel] On scientific computing, Python and Julia

2014-08-22 Thread rjf
On Friday, August 22, 2014 2:04:35 PM UTC-7, Bill Hart wrote: > > > RJF said... >> I don't know about canonical maps. The term "canonical representation" >> makes sense to me. >> > > He means this. In algebra Z/nZ is actually a ring modulo an ideal. Z is > the ring, nZ is the ideal. > > The ele

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Jason Grout
On 8/21/14, 18:08, Bill Hart wrote: In theory, I can do generic programming in Julia that is faster (at runtime) than you can do in *any* C compiler. And I don't just mean a little bit. I mean a lot. I don't even think the Julia people fully realise this yet (I might be wrong about that, I don't

Re: [sage-devel] Re: Docs, "return" vs. "returns" etc.

2014-08-22 Thread Ralf Hemmecke
On 08/22/2014 10:14 PM, Volker Braun wrote: > On Friday, August 22, 2014 9:11:08 PM UTC+1, Ralf Hemmecke wrote: >> >> Well, of course, a name is just a name. So call the function 'foo' >> instead of 'nonzero'. Would you still be happy with the specification? >> > > I wouldn't be happy with the m

Re: [sage-devel] On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
On Friday, 22 August 2014 21:58:15 UTC+2, rjf wrote: > > > > On Wednesday, August 20, 2014 9:54:02 PM UTC-7, Robert Bradshaw wrote: >> >> On Fri, Aug 8, 2014 at 6:57 PM, rjf wrote: >> > >> > >> > On Thursday, August 7, 2014 10:55:37 PM UTC-7, Robert Bradshaw wrote: >> >> >> >> On Thu, Aug 7

[sage-devel] Re: sage make fail @ ntl

2014-08-22 Thread Volker Braun
My guess would be that either your nfs client or server have problems with acls. If you have administrative access you could mount with the "noacl" option. Or build somewhere under /tmp From http://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/s1-nfs-client-config-options.html no

Re: [sage-devel] sage make fail @ ntl

2014-08-22 Thread Mark ODell
no default access control that I am aware of though I do little with ACLs a specific command you would like run for output ? modell@bacchus$ getfacl --access /home/modell/pkg/sage/sage-6.3/local/include/NTL/version.h getfacl: Removing leading '/' from absolute path names # file: home/modell/p

[sage-devel] Re: sage make fail @ ntl

2014-08-22 Thread Mark ODell
modell@bacchus$ mount /dev/xvda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pip

Re: [sage-devel] Re: Docs, "return" vs. "returns" etc.

2014-08-22 Thread Volker Braun
On Friday, August 22, 2014 9:11:08 PM UTC+1, Ralf Hemmecke wrote: > > Well, of course, a name is just a name. So call the function 'foo' > instead of 'nonzero'. Would you still be happy with the specification? > I wouldn't be happy with the method name to start with. No amount of documentation

Re: [sage-devel] Re: Docs, "return" vs. "returns" etc.

2014-08-22 Thread Ralf Hemmecke
> Suppose you have: >> "nonzero(x) tests whether x is zero or not" > Your example is confusing because the method name is not expressive enough. > Call it is_nonzero() and it is much clearer. Or maybe ensure_nonzero(x) if > you want to return x if x!=0 and something else if x==0. Well, of cou

Re: [sage-devel] On scientific computing, Python and Julia

2014-08-22 Thread rjf
On Wednesday, August 20, 2014 9:55:56 PM UTC-7, Robert Bradshaw wrote: > > > You're (intentionally?) missing the point. > > Given the linear system Ax = b, where A and b are given in terms of > floating point numbers, one could > > (1) Return x' that is the closest (according to some chosen ro

Re: [sage-devel] On scientific computing, Python and Julia

2014-08-22 Thread rjf
On Wednesday, August 20, 2014 9:54:02 PM UTC-7, Robert Bradshaw wrote: > > On Fri, Aug 8, 2014 at 6:57 PM, rjf > > wrote: > > > > > > On Thursday, August 7, 2014 10:55:37 PM UTC-7, Robert Bradshaw wrote: > >> > >> On Thu, Aug 7, 2014 at 9:02 AM, rjf wrote: > >> > > >> > > >> > On Wednes

Re: [sage-devel] Re: Docs, "return" vs. "returns" etc.

2014-08-22 Thread Volker Braun
On Friday, August 22, 2014 8:20:22 PM UTC+1, Ralf Hemmecke wrote: > > I hate it when someone documents 'test whether this and that holds'. Or > is there some convention that a test returns true if something holds and > false otherwise? > Is there anybody returning "False" if the property holds?

Re: [sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread Volker Braun
On Friday, August 22, 2014 7:54:57 PM UTC+1, Fernando Perez wrote: > > - a headless VM is less 'alien' to user. T\(they can use their familiar > browser, extensions, etc, and they don't have to see a new desktop. The > whole 'destkop in a desktop' can be confusing to new users. > I agree, which

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
I think I know how I will solve the Julia package issue for Nemo. I will definitely make Nemo a standard Julia package. People who want to just do Pkg.add("Nemo") from within Julia will be able to do so. If you have Julia on your machine that should be all that is necessary. It'll automatically

Re: [sage-devel] Re: Docs, "return" vs. "returns" etc.

2014-08-22 Thread Ralf Hemmecke
> Shorter is generally better for headlines, so I'd prefer "Test whether f is > foo" over "Return whether f is foo" over "Return ``True`` if f is foo, and > ``False`` otherwise". I hate it when someone documents 'test whether this and that holds'. Or is there some convention that a test returns

Re: [sage-devel] sage make fail @ ntl

2014-08-22 Thread Jori Mantysalo
On Fri, 22 Aug 2014, Mark ODell wrote: cp: preserving ACL for `/home/modell/pkg/sage/sage-6.3/local/include/NTL/version.h': Operation not supported Error installing package ntl-6.1.0.p0 Do you have some default ACL's set up? Something like setfacl -m --default u:backup:r said to directory

Re: [sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread Fernando Perez
On Fri, Aug 22, 2014 at 4:42 AM, Volker Braun wrote: > That is not so unlike the current VM which runs the sage notebook web > server. You can then connect to it with the host browser, if you want (it > does pop up a browser inside the VM because 1. why not and 2. firewall > issues). Yup, I kno

[sage-devel] Re: Docs, "return" vs. "returns" etc.

2014-08-22 Thread Volker Braun
PEP8 says use "Return ...", not "Returns ...". Shorter is generally better for headlines, so I'd prefer "Test whether f is foo" over "Return whether f is foo" over "Return ``True`` if f is foo, and ``False`` otherwise". ``True`` is the correct markup for the Python true value. Either way, I wo

[sage-devel] Docs, "return" vs. "returns" etc.

2014-08-22 Thread Jori Mantysalo
On Fri, 22 Aug 2014, Travis Scrimshaw wrote: Next, short description. There are three different style used for True/False -functions: - Returns True if the poset has a unique minimal element. - Returns True if the poset is totally ordered, and False otherwise. - Return

[sage-devel] Re: sage make fail @ ntl

2014-08-22 Thread Volker Braun
I've never seen that before. Can you tell us which file systems you are using? Output of "mount"? -- 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+unsub

[sage-devel] sage make fail @ ntl

2014-08-22 Thread Mark ODell
sage-devel Sages, I have not tried to build sage before, and am blindly providing the requested submission of make fail info. 'Looked at first like a problem with copying, mode bits, & ACLs, but thats probably not the real cause. Will continue debugging, but please let me know if this is a

[sage-devel] sage make fail @ ntl

2014-08-22 Thread Mark ODell
sage-devel Sages, I have not tried to build sage before, and am blindly providing the requested submission of make fail info. 'Looked at first like a problem with copying, mode bits, & ACLs, but thats probably not the real cause. Will continue debugging, but please let me know if this is

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
One interesting thing I should mention is that loading Julia in bare module mode and redefining all the basic operators and so on does not break all of Julia's libraries. They all continue to operate as normal. This was quite a surprise to me when I first found out, but all those modules have t

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
On Friday, 22 August 2014 14:10:10 UTC+2, Pierre wrote: > > Thanks for the examples. However, given that in Julia you can re-define > about everything (cf your example with the function extracting elements > from a list, replaced by " print 'test' "), surely you could change, say, > the behavi

Re: [sage-devel] Re: Function for subposet search

2014-08-22 Thread Nathann Cohen
> +1 to doing this; that way it becomes easier (more natural) to check for > things like 2+2 freeness. My first thought is for B.is_subposet(A). In Graph there is a G.is_subgraph(H) that just checks that the edges of H are edges of G (and that points of H are point of G). This function is of cours

Re: [sage-devel] Re: Function for subposet search

2014-08-22 Thread Travis Scrimshaw
Hey, > OK. First question is name of the function. I would say A.has_subposet(), > but should it be A.has_isomorphic_subposet() or even B.is_subposet()? > +1 to doing this; that way it becomes easier (more natural) to check for things like 2+2 freeness. My first thought is for B.is_subposet(

Re: [sage-devel] Re: Function for subposet search

2014-08-22 Thread Nathann Cohen
Helloo !! > OK. First question is name of the function. I would say A.has_subposet(), > but should it be A.has_isomorphic_subposet() or even B.is_subposet()? HMmmm.. Well, do you only want to answer whether there is a copy of B in A, or also give that copy to the user ? When I picked a n

Re: [sage-devel] Re: Function for subposet search

2014-08-22 Thread Jori Mantysalo
On Fri, 22 Aug 2014, Nathann Cohen wrote: Does Sage has a function to check if poset A contains a subposet isomorphic to subposet B? Not... exactly. There is no Poset method that does that, but there is a DiGraph method that does that. But then, it depends on what you call a subpos

[sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread mmarco
> Install one in a VM :) > The reasons why i don't run windows on my computers still apply to running windows on VM's on my computers. Besides, a VM that runs inside a VM is probably not a good idea for testing the possible problems that this GUI would encounter in real life. -- You receiv

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Pierre
Thanks for the examples. However, given that in Julia you can re-define about everything (cf your example with the function extracting elements from a list, replaced by " print 'test' "), surely you could change, say, the behaviour of the function / upon loading the Nemo module? (without mentio

[sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread Jean-Pierre Flori
On Friday, August 22, 2014 2:05:44 PM UTC+2, mmarco wrote: > > > In fact, there was a GSoC proposal to write some simple GUI that would > handle the VM: check for firewall issues, open the VM's browser if there > are, and run the VM in headless mode if there are not, also handle the > actualiz

[sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread mmarco
In fact, there was a GSoC proposal to write some simple GUI that would handle the VM: check for firewall issues, open the VM's browser if there are, and run the VM in headless mode if there are not, also handle the actualizations of the VM and so on. Sadly, no student decided to go for that pr

Re: [sage-devel] Re: SageMathCloud / closed source / GPL / Spirit of Sage??

2014-08-22 Thread mmarco
As far as i understand, the current plan is to spend the money made by SMC (if it makes money, some day) to improve Sage (for example, to hire paid programmers that would work into the windows port). So, if things don't deviate from that plan, the gain of SMC would also turn into a gain for Sa

[sage-devel] Re: Crazy/dumb idea about Sage on Windows...

2014-08-22 Thread Volker Braun
That is not so unlike the current VM which runs the sage notebook web server. You can then connect to it with the host browser, if you want (it does pop up a browser inside the VM because 1. why not and 2. firewall issues). On Friday, August 22, 2014 5:46:28 AM UTC+1, Fernando Perez wrote: >

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Bill Hart
On Friday, 22 August 2014 11:49:20 UTC+2, Pierre wrote: > > I thought we would have another argument about real numbers this morning, > but I see the topic has changed back to Julia. And I have to say that I > find the Nemo project very interesting, in spite of the over-aggressive > publicity

[sage-devel] Re: Function for subposet search

2014-08-22 Thread Nathann Cohen
Hello ! Does Sage has a function to check if poset A contains a subposet > isomorphic to subposet B? > Not... exactly. There is no Poset method that does that, but there is a DiGraph method that does that. But then, it depends on what you call a subposet of a poset. Case 1: You say that a po

[sage-devel] Patchbot troubles

2014-08-22 Thread Jeroen Demeyer
Hello, Given the message asking for patchbot volunteers, I'm trying to run a patchbot but it's not going as well as it should be. For one, the version installed by "sage -i patchbot" is not the most recent one, one has to do "sage -i http://sage.math.washington.edu/home/robertwb/patches/patch

[sage-devel] Re: On scientific computing, Python and Julia

2014-08-22 Thread Pierre
I thought we would have another argument about real numbers this morning, but I see the topic has changed back to Julia. And I have to say that I find the Nemo project very interesting, in spite of the over-aggressive publicity it is receiving here. You don't often get to see a new piece of sof

[sage-devel] Function for subposet search

2014-08-22 Thread Jori Mantysalo
Does Sage has a function to check if poset A contains a subposet isomorphic to subposet B? If not, is it because there is no good algorithm for it, or because it is not implemented? -- Jori Mäntysalo -- You received this message because you are subscribed to the Google Groups "sage-devel" g

Re: [sage-devel] Re: SageMathCloud / closed source / GPL / Spirit of Sage??

2014-08-22 Thread Nathann Cohen
Yo ! > Seems like some people forget that, you have to play the game in order to be successful. On the other hand, some people think that they need to "play some kind of game". Who is the craziest ? > The game could broadly be described as: navigating the framework of society. That framework whe

[sage-devel] Re: what is the plot3D viewer used in sagemath cloud

2014-08-22 Thread Frédéric Chapoton
Hello, thanks for the pointer. I had a look, but cannot clearly see (looking at 3d.coffee) what is the intermediate file format used between sage and the cloud server. I would guess from the code that maybe it is .obj as given by the .obj_repr method (of indexed face sets for example). Unfortun