[sage-devel] Re: Products of permutations use nonstandard order of operation

2013-07-13 Thread Darij Grinberg
Hello again, thanks for the reactions! Good to see that I'm not the only one who is having headaches with the current system. On Saturday, 13 July 2013 05:21:58 UTC+2, Rob Beezer wrote: >Breaking doctests is one thing, breaking user code is another. >I've written some rather extensi

Re: [sage-devel] Re: Products of permutations use nonstandard order of operation

2013-07-13 Thread Darij Grinberg
Hi Dima, On Sat, Jul 13, 2013 at 1:26 PM, Dima Pasechnik wrote: > IMHO it's a not as obsolete convention as you seem to imply; isn't e.g. Magma > using the same convention as GAP? > Not mentioning a lot of group theory literature... I don't know anything about Magma, but what group theory litera

Re: [sage-devel] Re: Products of permutations use nonstandard order of operation

2013-07-13 Thread Darij Grinberg
TypeError: unsupported operand parent(s) for '-': 'Symmetric group algebra of order 5 over Rational Field' and 'Symmetric group algebra of order 5 over Integer Ring' I am disappoint... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscrib

Re: [sage-devel] Re: Products of permutations use nonstandard order of operation

2013-07-13 Thread Darij Grinberg
Hi Nicolas, and hi all, > - +1 on a parent option: > > sage: PermutationGroup(..., action='left') > > Note that this is consistent with what we do for finite set maps: > > sage: M = FiniteSetMaps([1, 2, 3], action = 'right') > > Maybe PermutationGroupElement will need to take a

Re: [sage-devel] Re: Products of permutations use nonstandard order of operation

2013-07-14 Thread Darij Grinberg
Hi all, On Sun, Jul 14, 2013 at 5:54 AM, Travis Scrimshaw wrote: > Hey everyone who's following #14772, >I don't want to change the patch, which has the multiplication in a > GlobalOptions class, since it's just lifts the previous options up (a > standard dict). Thus any change should depend

Re: [sage-devel] Re: Is the glass half-full or half-empty ? Pick a standard.

2013-08-22 Thread Darij Grinberg
Hi, On Tuesday, 20 August 2013 23:21:43 UTC+2, Andrew Gainer-Dewar wrote: > > How about extending the input signature of Graph.is_connected() to > include an option > > empty_graph_is_connected = False > > ? > The problem with such a global variable is that is_connected() is used not just

[sage-devel] Can we have the .patch viewer back?

2013-08-23 Thread Darij Grinberg
Hi guys, sorry for a stupid request, but it seems to me that patches on trac having size larger than 250KB can no longer be viewed easily since the server change. (I can still download them and view them locally, but it is far less comfortable; gedit has colorcoding for .patch files, but none of t

[sage-devel] Re: Products of permutations use nonstandard order of operation

2013-09-07 Thread Darij Grinberg
Hi everyone, Two updates on the topic of the multiplication order for permutations: 1) In trac #15174, I have implemented global-option-independent multiplication methods for elements of symmetric group algebras. (Such methods already existed for permutations -- I have now exposed them and add

[sage-devel] Re: Fp algebraic closure and eigenvalues of matrices

2013-11-07 Thread Darij Grinberg
Hi Vincent, trac ticket #14990 has just been updated this week. Not reviewed, though. Best regards, Darij (from sage days 54) -- 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, s

[sage-devel] Sage install aborts: error building ppl

2013-11-14 Thread Darij Grinberg
Hi, trying to install sage-5.11beta3 on a Ubuntu virtualbox inside a Windows 7 host (64bit). Here is what goes wrong: https://dl.dropboxusercontent.com/u/83265276/ppl-1.1pre9.p0.log The main error seems to be "virtual memory exhausted: Cannot allocate memory" I don't know enough about virtual m

[sage-devel] Re: Sage install aborts: error building ppl

2013-11-14 Thread Darij Grinberg
Hi Volker, Good point -- looking at the virtualbox settings, I see I deceived it about having 6 cores (the machine has 8, but the VM is allowed only 1). It compiles well now without that parameter. Thanks for the good question! What RAM, CPU, etc. settings would you recommend for a virtual mac

Re: [sage-devel] Re: Sage install aborts: error building ppl

2013-11-15 Thread Darij Grinberg
day, November 14, 2013 10:31:44 PM UTC-5, Darij Grinberg wrote: >> >> Thanks for the good question! What RAM, CPU, etc. settings would you >> recommend for a virtual machine running sage? >> > -- > You received this message because you are subscribed to a topic in the

[sage-devel] Benchmarking: best practices, tutorial?

2013-11-22 Thread Darij Grinberg
Hi, I'm wondering if anyone could make a tutorial about benchmarking Sage methods. I am personally not much of a speed fanatic, but when I am refactoring other people's code I'm trying to make sure it doesn't slow down as the result and this does require me to run timings. I'm aware of the basics

[sage-devel] How do I run the doctests twice?

2013-11-30 Thread Darij Grinberg
Hi, after experiencing at least two cache-corruption-like issues within the last two days (one was reported here by Travis https://groups.google.com/forum/#!topic/sage-devel/LapvScfoBuI , and the other one appears on trac #15473), but also recalling bugs like #15248, I am interested in doctesting

[sage-devel] Re: How do I run the doctests twice?

2013-11-30 Thread Darij Grinberg
Hi John, thank you! I'll check this out. Best regards, Darij -- 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

[sage-devel] Re: Strange (coercion) errors

2013-11-30 Thread Darij Grinberg
Hi, whatever this was, it seems to be fixed by the current #10963 branch! We *really* need to get that thing merged... Best regards, Darij -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving ema

[sage-devel] Should Ring.sum([...]) behave well if the ...'s are not in Ring?

2013-12-02 Thread Darij Grinberg
Hi, Is the following a case of refused bequest? (If you don't know much about symmetric functions, it should be enough to know that p and s are two free modules with coercions between them.) sage: Sym = SymmetricFunctions(QQ) sage: p = Sym.p() sage: s = Sym.s() sage: sum([s[2,1]]) s[2, 1] sage: p

[sage-devel] Merge leftovers polluting installation folder?

2013-12-16 Thread Darij Grinberg
Hi, this is probably not an actual issue, but it seems that "make build" trips over some .BACKUP files from a merge (with meld): https://dl.dropboxusercontent.com/u/83265276/merge-woes.txt Unfortunately I don't fully remember what I have done that caused these files. I don't think I ever merged

[sage-devel] 404 on Sage Developer Conventions

2013-12-25 Thread Darij Grinberg
Hi guys, this site is now 404: http://www.sagemath.org/doc/developer/conventions.html Where has it moved? Best regards, Darij -- 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, s

Re: [sage-devel] Re: Reviewing without dependencies

2014-01-03 Thread Darij Grinberg
Hi, maybe going slightly off the tangent, I'm wondering how to reasonably review merge commits. It seems to me that merge commits, even if they are manual and involve significant editing, are shown on trac (and in gitk) as if nothing has been done. How do I spot a merge gone wrong? Best rega

[sage-devel] Could view handle missing TeX styles more gracefully?

2014-03-06 Thread Darij Grinberg
Hi, this is a question from a user perspective, and this isn't that much fake because I'm far from understanding the LaTeX infrastructure of Sage. Here is an example of how I would try to look at a poset: {{{ sage: P = Poset({1: [2]}) sage: view(P) Warning: `tkz-graph.sty` is not part of this

Re: [sage-devel] Re: Could view handle missing TeX styles more gracefully?

2014-03-07 Thread Darij Grinberg
On Fri, Mar 7, 2014 at 6:34 AM, Volker Braun wrote: > I think the real answer is going to be distro integration so that the > necessary latex packages are installed with Sage. Its non-trivial to parse > the TeX output to extract the relevant errors. I'd prefer this too, but is it workable? (Discl

Re: [sage-devel] Re: Could view handle missing TeX styles more gracefully?

2014-03-07 Thread Darij Grinberg
Yes, but does it currently install any styles? Could it do so? On Fri, Mar 7, 2014 at 12:04 PM, Volker Braun wrote: > Sage doesn't provide its own TeX installation, so it always relies on the > system (pdf)latex and packages. > > > On Friday, March 7, 2014 4:43:53 PM UTC,

Re: [sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-13 Thread Darij Grinberg
FWIW, I also tend to use the PDF version of the reference manual to hunt for LaTeX errors in the doc (not only those which break the compilation, but also semantic ones). In my experience, they are much easier to spot in the PDF than in the HTML (which also displays badly on older browsers -- I

Re: [sage-devel] Re: Posets: interval/closed_interval

2014-11-13 Thread Darij Grinberg
Hi, I have used method aliasing (such as "frobenius = frobenius_endomorphism") a lot. What should I be doing instead, and what is the problem? (I have to admit this thread was TL;DR to me.) Best regards, Darij -- You received this message because you are subscribed to the Google Groups "

Re: [sage-devel] Re: Posets: interval/closed_interval

2014-11-13 Thread Darij Grinberg
Hi Nathan, On Thu, Nov 13, 2014 at 11:07 PM, Nathann Cohen wrote: > 1) Build a class with a method named A, aliased by B > 2) Extend this class and redefine A > > B still points toward the old A. OK, I see. Well, good enough that the classes I am talking about are not usually extended. Best r

[sage-devel] build fails due to giac-1.2.2.103

2017-03-08 Thread Darij Grinberg
Hi, I'm failing to build ("make build") 7.6.beta6 on my university computer: [giac-1.2.2.103] /home/dgrinber/sage-7.5.1/local/lib/libntl.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf, std::allocator >@GLIBCXX_3.4.21' [giac-1.2.2.103] collect2: error: ld returned 1 exit sta

Re: [sage-devel] build fails due to giac-1.2.2.103

2017-03-09 Thread Darij Grinberg
t; compile giac with gcc 5.x. > > Isuru Fernando > > On Wed, Mar 8, 2017 at 8:37 PM, Darij Grinberg > wrote: > >> Hi, >> >> I'm failing to build ("make build") 7.6.beta6 on my university computer: >> >> [giac-1.2.2.103] /home/d

Re: [sage-devel] build fails due to giac-1.2.2.103

2017-03-09 Thread Darij Grinberg
Hi, On Thu, Mar 9, 2017 at 2:16 PM, Isuru Fernando wrote: > Can you also attach the ntl log? Here it goes: https://dl.dropboxusercontent.com/u/83265276/ntl-10.1.0.log Best regards, Darij -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To u

Re: [sage-devel] build fails due to giac-1.2.2.103

2017-03-09 Thread Darij Grinberg
wrote: > On 10/03/17 09:18, Darij Grinberg wrote: >> Hi, >> >> On Thu, Mar 9, 2017 at 2:16 PM, Isuru Fernando wrote: >>> Can you also attach the ntl log? >> >> Here it goes: https://dl.dropboxusercontent.com/u/83265276/ntl-10.1.0.log >> >> Best re

Re: [sage-devel] build fails due to giac-1.2.2.103

2017-03-10 Thread Darij Grinberg
Yes, it works! Thanks again, Francois and Isuru. Best regards, Darij On Thu, Mar 9, 2017 at 2:28 PM, Darij Grinberg wrote: > Hi Francois, > > Ah! I see now. I started compiling in my office, then it failed > and I tried fixing it via ssh. But I ran ssh on a different server

Re: [sage-devel] Re: What are we unable to do right now ?

2014-12-06 Thread Darij Grinberg
Hi, I don't know which of the following is better in the "three M"'s as I have close to no experience with them, but I suspect at least the documentation part is... - Dima Pasechnik mentioned representation theory of associative algebras, but even linear algebra over fields is not implemented

[sage-devel] Re: [sage-combinat-devel] Re: Order of Partitions()

2015-03-18 Thread Darij Grinberg
Hi, please don't make a distinction based on the n being less than 15! That would make a really bad pitfall. Best regards, Darij On Wed, Mar 18, 2015 at 6:28 AM, Viviane Pons wrote: > > > 2015-03-18 12:40 GMT+01:00 Mike Zabrocki : > >> That would make sense. My preference is that (at leas

[sage-devel] trac errors out on some tickets

2015-04-15 Thread Darij Grinberg
Hi, trac is broken again... but only for some tickets: ​http://trac.sagemath.org/ticket/11529 ​http://trac.sagemath.org/ticket/16820 http://trac.sagemath.org/ticket/18001 http://trac.sagemath.org/ticket/18000 It's always this kind of bug: Trac detected an internal error: OSError: [Errno 2] No su

Re: [sage-devel] Re: doctest failure in dyck_word.py

2015-04-17 Thread Darij Grinberg
This stuff is spooky... I've always been treating int and Integer as interchangeable when coding for Sage. Maybe I've introduced several such bugs. Can anyone explain in a noob-friendly way how an implementer should decide between returning ints and Integers, when it is OK to treat them as equ

Re: [sage-devel] Re: doctest failure in dyck_word.py

2015-04-18 Thread Darij Grinberg
On Sat, Apr 18, 2015 at 7:15 PM, Volker Braun wrote: > On Friday, April 17, 2015 at 11:54:29 PM UTC-4, Darij Grinberg wrote: >> >> Can anyone explain in a noob-friendly way how an implementer should >> decide between returning ints and Integers >> > > Sage fu

Re: [sage-devel] Re: doctest failure in dyck_word.py

2015-04-18 Thread Darij Grinberg
On Sat, Apr 18, 2015 at 7:44 PM, Volker Braun wrote: > x.cardinality().factor() should always work (unless it is inifinite). > Or zero. :) If we mention one pitfall, let's not forget about the other. def add_two_numbers(x,y): > return x+y # no need to convert explicitly to ZZ > Ah, becau

[sage-devel] Re: [sage-combinat-devel] Sage Days 65 mini report

2015-06-12 Thread Darij Grinberg
On Sat, Jun 13, 2015 at 1:26 AM, William Stein wrote: > This is a bummer. It gives me even more motivation to make > SageMathCloud Sage-developer friendly.I'm also curious if anybody > has any -- possibly *radical* -- suggestions about how to address this > problem using new ideas. +1 for a

[sage-devel] Copying installations on SMC (was: [sage-combinat-devel] Sage Days 65 mini report)

2015-06-13 Thread Darij Grinberg
Hi Anne, On Sat, Jun 13, 2015 at 3:13 AM, Anne Schilling wrote: > The SageMathCloud was great for those who had trouble installing Sage on > their own computer. Sometimes we had connection issues to the SMC (the wheel > was just spinning). Franco gave a nice talk on how to copy the latest versi

[sage-devel] Re: Copying installations on SMC (was: [sage-combinat-devel] Sage Days 65 mini report)

2015-06-13 Thread Darij Grinberg
egards, Darij On Sat, Jun 13, 2015 at 4:33 PM, Franco Saliola wrote: > > > On Saturday, June 13, 2015 at 6:15:44 AM UTC-5, Darij Grinberg wrote: >> >> Hi Anne, >> >> On Sat, Jun 13, 2015 at 3:13 AM, Anne Schilling >> wrote: >> > The SageMathCloud wa

[sage-devel] Re: [sage-combinat-devel] Re: Copying installations on SMC

2015-06-13 Thread Darij Grinberg
Hi Anne, ah, this got updated while I wasn't looking :) Thanks for the reminder! Best regards, Darij On Sat, Jun 13, 2015 at 5:58 PM, Anne Schilling wrote: > Hi Darij, > >> Step 3: maybe explain how to tell when the copying is complete? I >> think it took more than 3min for me (I used "du -

[sage-devel] Re: [sage-combinat-devel] Re: Copying installations on SMC

2015-06-13 Thread Darij Grinberg
Hi, thanks to both of you for your help on step 3, but I've got another problem on step 4 now: ~/sage-dev-images/sage-6.8.beta3$ git trac config --user darij --pass [redacted] Saved trac username. Saved trac password. Trac xmlrpc URL: http://trac.sagemath.org/xmlrpc (anonymous) http://tra

[sage-devel] Re: [sage-combinat-devel] Re: Copying installations on SMC

2015-06-13 Thread Darij Grinberg
On Sat, Jun 13, 2015 at 8:08 PM, Volker Braun wrote: > The last public key is invalid, there is no space to set off the comment > from the b64'ed key. Ah, thank you! I was overzealous in deleting whitespaces that came from the copypasting. -- You received this message because you are subscribed

[sage-devel] Re: matrix constructor signature clash

2015-06-17 Thread Darij Grinberg
Hi, On Tuesday, 16 June 2015 20:10:05 UTC+2, Nils Bruin wrote: > > Tiebreaker needed: > > We have a whole bunch of ways in which a matrix can be constructed. Some > of the possible signatures we support according to the documentation: > > A) > > matrix(n,m, ) > > which constructs the n x m matrix

Re: [sage-devel] Re: matrix constructor signature clash

2015-06-17 Thread Darij Grinberg
Hi Nils, On Wed, Jun 17, 2015 at 4:37 PM, Nils Bruin wrote: > On Wednesday, June 17, 2015 at 5:52:20 AM UTC-7, Darij Grinberg wrote: > Here is that response then. For the most part, matrix does work nicely and I > really appreciate the typing it saves. > > I think a good interface

Re: [sage-devel] Re: matrix constructor signature clash

2015-06-19 Thread Darij Grinberg
On Fri, Jun 19, 2015 at 5:45 PM, Nils Bruin wrote: > On Wednesday, June 17, 2015 at 7:48:15 AM UTC-7, Darij Grinberg wrote: >> >> Unfortunately, currently the ducktyping is not just in the matrix >> constructor; it is split across the three stations I mentioned (matrix &

[sage-devel] Re: [sage-combinat-devel] Re: CombinatorialFreeModule relies on implementation details of elements

2015-08-26 Thread Darij Grinberg
Hi, just wanted to mention that Travis has started a ticket on this a while ago: http://trac.sagemath.org/ticket/18066 IMHO we really need to do some proper OOP here, with contracts and abstract methods, if we want people to keep adding combinatorial Hopf algebras and the likes to Sage without hav

[sage-devel] Building sage-9.0 fails on Cygwin64 with fflas-ffpack errors

2020-01-03 Thread Darij Grinberg
>From the end of install.log: build/temp.cygwin-3.0.7-x86_64-3.7/build/cythonized/sage/matrix/matrix_modn_sparse.o: In function `FFPACK::rns_double::reduce(unsigned long, double*, unsigned long, bool) const': [sagelib-9.0] /home/skraeling/sage/local/include/fflas-ffpack/field/rns-double.inl:53

Re: [sage-devel] Building sage-9.0 fails on Cygwin64 with fflas-ffpack errors

2020-01-05 Thread Darij Grinberg
st of the build goes smoothly... --Darij On Fri, Jan 3, 2020 at 5:13 PM Darij Grinberg wrote: > > From the end of install.log: > > build/temp.cygwin-3.0.7-x86_64-3.7/build/cythonized/sage/matrix/matrix_modn_sparse.o: > In function `FFPACK::rns_double::reduce(unsigned long, doubl

Re: [sage-devel] Building sage-9.0 fails on Cygwin64 with fflas-ffpack errors

2020-01-06 Thread Darij Grinberg
On Mon, Jan 6, 2020 at 3:06 PM E. Madison Bray wrote: > Yep. You can also get around it without modifying *any* files by > building Sage with: > > FFLAS_FFPACK_CONFIGURE=--disable-openmp Thanks; this removes the need to mess with the repository. > I do think someone should look into this more.

[sage-devel] gmp clash when building sage 9.1.rc0 on Cygwin

2020-04-13 Thread Darij Grinberg
Trying to build sage 9.1.rc0 on a freshly updated cygwin, I'm getting this: [ecm-7.0.4.p1] checking whether we can link against GMP... yes [ecm-7.0.4.p1] checking if gmp.h version and libgmp version are the same... (6.1.2/6.2.0) no [ecm-7.0.4.p1] configure: error: 'gmp.h' and 'libgmp' have differ

Re: [sage-devel] gmp clash when building sage 9.1.rc0 on Cygwin

2020-04-13 Thread Darij Grinberg
On Mon, Apr 13, 2020 at 2:31 PM Dima Pasechnik wrote: > > On Mon, Apr 13, 2020 at 7:40 PM Darij Grinberg > wrote: > > > > Trying to build sage 9.1.rc0 on a freshly updated cygwin, I'm getting this: > > after a Cygwin update one has to > > make distclean