Re: [sage-combinat-devel] Re: a problem with cartesian product of directed graphs ?
Le mercredi 28 mars 2012 23:14:33 UTC+2, Nicolas M. Thiery a écrit : On Wed, Mar 28, 2012 at 05:03:37AM -0700, Fr�d�ric Chapoton wrote: If somebody can cross-post to sage-devel, it would be great, yes. Done. Should I create another ticket for products of posets ? Please! This is now ticket #12831. I will make a patch with a working procedure. -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/HyiqYfjeghwJ. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-devel] Re: OS X 10.7 testing again
On 2012-04-11 05:33, Bruce Cohen wrote: I believe that I am running the latest Xcode 4.3.2 Are you sure? I have only seen this error with *older* XCode versions. -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Sage-5.0 release plan
The current plan is to release sage-5.0.beta14 merging most or all of the tickets which are currently positively reviewed. After that, no more patches adding new features, only bugfixes. So I guess there might be one additional beta (beta15), and then release candidates. The new notebook will not be included in sage-5.0. Open blockers are: #11616: Upgrade MPIR to a more recent upstream release. This also fixes lots of issues in the spkg-install file. *needs_review* #12825: Fine-tune auto-detection of whether to install GCC. Based on the comments in the sage-5.0.beta13 thread, I changed the part of the installation which determines whether or not to install GCC. *needs_review* #12751: Sage fails to build with GCC-4.7.0. This is sort-of fixed by the GCC spkg, but we still need to fix MPFR on Itanium (which is a prerequisite of GCC). #11881: Metaticket: build Sage on OS X 10.7 Lion. Maybe this can be closed now? I would prefer Sage to also build with older release of XCode 4, the main issue seems to be the assembler which doesn't understand AVX instructions. -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Sage-5.0 release plan
Hi Jeroen, On Wed, Apr 11, 2012 at 08:51:35AM +0200, Jeroen Demeyer wrote: The current plan is to release sage-5.0.beta14 merging most or all of the tickets which are currently positively reviewed. After that, no more patches adding new features, only bugfixes. So I guess there might be one additional beta (beta15), and then release candidates. The new notebook will not be included in sage-5.0. Open blockers are: #11616: Upgrade MPIR to a more recent upstream release. This also fixes lots of issues in the spkg-install file. *needs_review* #12825: Fine-tune auto-detection of whether to install GCC. Based on the comments in the sage-5.0.beta13 thread, I changed the part of the installation which determines whether or not to install GCC. *needs_review* #12751: Sage fails to build with GCC-4.7.0. This is sort-of fixed by the GCC spkg, but we still need to fix MPFR on Itanium (which is a prerequisite of GCC). #11881: Metaticket: build Sage on OS X 10.7 Lion. Maybe this can be closed now? I would prefer Sage to also build with older release of XCode 4, the main issue seems to be the assembler which doesn't understand AVX instructions. I'd like to add the following (if confirmed) I wrote I a previous e-mail here: == I just discovered that since a few beta release the html documentation of extension methods/function is (again) broken. For example in Expression.find_root the documentation doesn't shows any argument, while there are plenty. sage: sage.misc.sageinspect.sage_getargspec(Expression.find_root) ArgSpec(args=['self', 'a', 'b', 'var', 'xtol', 'rtol', 'maxiter', 'full_output'], +varargs=None, keywords=None, defaults=(None, 1e-12, 4.5e-16, 100, False)) I haven't yet bissected the problem. I'd like to make it a blocker for the next release. Is there any problem with that ? == Cheers, Florent -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: inferior sage in emacs, bug?
On Tue, Apr 10, 2012 at 06:10:50PM -0500, Jason Grout wrote: On 4/10/12 5:56 PM, Florent Hivert wrote: Hum ! As I said, I'm not the maintainer of the package and this is going quickly out of my expertise range... Is there a maintainer? You might be the closest thing we have to a maintainer. The original author has not been active in Sage development for quite some time. I had an e-mail exchange with Nick Alexander last December and he was quite responsive. He integrated a patch I wrote within a few days. He created the bitbucket repository at the occasion. He also accepted a pull request from Ivan Andrus less than one month ago. So I won't say he's gone. Cheers, Florent -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Sage-5.0 release plan
On 2012-04-11 09:08, Florent Hivert wrote: I haven't yet bissected the problem. I'd like to make it a blocker for the next release. Go ahead. I can always lower the priority again :-) -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] inferior sage in emacs, bug?
On Apr 11, 2012, at 12:28 AM, Benjamin Jones wrote: I cloned the hg repo and produced an spkg from that directory. I see the problem now. I've got the correct spkg file now, and emacs doesn't complain on loading a .py file, but now I get another error after `M-x sage`: Unknown button type `help-xref' Do you mean that you downloaded a pre-made spkg, or that you rebuilt the spkg from mercurial? The reason I ask is that there is a commit since the latest stable version [1] which seems to be related. OTOH, if making it from mercurial doesn't give a correct spkg, then I'll have to fix that. -Ivan [1] https://bitbucket.org/ncalexan/sage-mode/changeset/4e9e72fc639f -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: zeromq and @parallel for clusters
On Wednesday, April 11, 2012 12:13:50 AM UTC+1, jason wrote: The Sage cell server spkg includes both zmq and pyzmq since we use these to communicate. Just to be clear, you haven't written spkgs for zeromq/pyzmq but just have them as dependencies? Because I couldn't find any spkgs except some really old ones that William once made. -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: inferior sage in emacs, bug?
On Apr 11, 2012, at 8:43 AM, Florent Hivert wrote: On Tue, Apr 10, 2012 at 06:10:50PM -0500, Jason Grout wrote: On 4/10/12 5:56 PM, Florent Hivert wrote: Hum ! As I said, I'm not the maintainer of the package and this is going quickly out of my expertise range... Is there a maintainer? You might be the closest thing we have to a maintainer. The original author has not been active in Sage development for quite some time. I had an e-mail exchange with Nick Alexander last December and he was quite responsive. He integrated a patch I wrote within a few days. He created the bitbucket repository at the occasion. He also accepted a pull request from Ivan Andrus less than one month ago. So I won't say he's gone. When I sent him the pull request he said he wasn't really active and asked if I wanted to be the maintainer. I could certainly be *a* maintainer, though I'm not too familiar with the code. Luckily emacs-lisp is really easy to debug. I'll see if I can reproduce this. FWIW, I've been meaning to make an spkg with my changes (adding AUCTeX support for SageTeX). It would also include customization of the preamble and possibly a fix for this problem. I've also been considering adding it to one of the package.el repositories (probably MELPA). Do emacs users think this would be a better/easier way to get sage-mode? For me I think it would be easier since I wouldn't have to run `sage -i sage-mode` whenever I install a new version of sage. OTOH, I also have to install gap-packages, so perhaps I should just add a feature to sage that installs a list of packages (if they aren't already) upon startup or installation. Or hopefully it's already there and someone will point it out to me. :-) -Ivan -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Sage-5.0 release plan
On Wed, Apr 11, 2012 at 10:10:28AM +0200, Jeroen Demeyer wrote: On 2012-04-11 09:08, Florent Hivert wrote: I haven't yet bissected the problem. I'd like to make it a blocker for the next release. Go ahead. I can always lower the priority again :-) First of all, can you confirm the problem ? EG: in the html doc for expression.pyx, the argspec of N and find_root are empty and shouldn't. On my machine, it occurred between beta2 and beta7. I tried a few ticket which seems related but didn't find the culprit. I'll investigate more. Cheers, Florent -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Any Portuguese reader around? Translations need review
Hi Paulo, Thanks for the feedback. I will look at you suggestions, and then I will post a reply later. Eventually I could post a reviewed patch in the trac server (and also link to this discussion). In fact, there should be no terrible mistakes. I wrote the translation as close as possible to the original, what makes it easier to do, but sometimes leads to slightly clumsly expressions in Portuguese. But my goal was just achieve a decent translation (without going to deep into optimization... :-)). Some expressions are clearly not as fluent as they would be if they were designed in Portuguese. My main difficulty was with technical terms. This is what I did. When I was not able to find a good (not weird sounding) translation, I left the term in english under quote marks. Sometimes I translated a term, but then I left the original term in english on the side under parenthesis (to avoid misunderstandings). More on this later... -- Gustavo On Tuesday, April 10, 2012 10:34:07 PM UTC+2, Paulo César Pereira de Andrade wrote: Em 10 de abril de 2012 13:50, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andr...@gmail.com escreveu: Em 10 de abril de 2012 05:05, Gustavo de Oliveira goliveir...@gmail.com escreveu: I have recently uploaded to the trac server a Portuguese translation of A Tour of Sage and Tutorial: http://trac.sagemath.org/sage_trac/ticket/12502 http://trac.sagemath.org/sage_trac/ticket/12822 If you read Portuguese, please review the above tickets. If you know someone who could do that, please let him know. Otherwise I will look for reviewers. It just happens that I don't have any Portuguese reader near me at the moment... After further reading, I notice that you did put significant work on it, as the quality is actually very good and there are no (aparent) spelling errors. A few long phrases translations could be better, but that is the job of someone from Linguistics, not Mathematics, as it is very easy to miss the context :-) And you did the right thing of not translating literal output of programs, comments, etc, what is a bane of several translations not done by, or not properly reviewed by people from the specific area. Quoting of overhead in doc/pt/tutorial/interactive_shell.rst could be better done with something like Devido ao processamento extra da interface pexect I am a bit unsure about the usage of the word salvado where salvo looks more natural, but I am probably wrong, and read almost only english text... In doc/pt/tutorial/interfaces.rst the first quote of ``'znprimroot(10007)'`` may cause issues in documentation generation, as it is a utf8 quote, not a single quote. Spelling error poliômios (and variáveis without accent in the same line) in doc/pt/tutorial/interfaces.rst In no place the word navegador is used, so should be ok, as at least does not mix with the english word browser. Debugador probably should be translated to depurador. In doc/pt/tutorial/introduction.rst, probably should translate O arquivo de instalação ... instead of O arquivo para donwload ... Some people prefer shift+clique instaed of shift-click, so, but optional, may be better to use + instead of - and translate click (but not shift). (escaped) in parenthesis (in latex.rst) may need a better translation. Maybe rephrase, to remove contradictory information, somewhat like: ... uma barra adicional para prevenir a interpretação pelo Python ... é necessário interver na decisão should be intervir ou decidir? Too bad there isn't a proper word for string as used in computer science, so, it should be better to use it instead of something like texto quotado or cadeia de caracteres. mas define environments adicionais should be ok to translate to ambientes or interfaces? Now in doc/pt/tutorial/programming.rst... Esse preparsing ..., should translate to Essa preparação ... Nenhum pré-processador (preparsing), just write Nenhum pré-processamento mapeamento de objetos hashable em objetos arbitrários probably better to s/hashable/(hash table)/. Or call it somewhat like lista associativa. O Python possui um tipo set (conjuntos) nativo. should not mix quoting or parenthesis from/to english :-) Better to use O Python possui um tipo de conjuntos (set) nativo. Or even be more verbose as in (set em inglês) as pattern done later in tour_advanced.rst but in same place a mispelling :-) (singla em inglês) instead of (sigla em inglês). laços (loops) just use interações? Profiling is another word without proper translation as used in computer sciences, could use somewhat like análise de desempenho, but probably just to clarify what the term profiling stands for. As macros utilizadas ... environment. Macro in portuguese, is the antonym of micro, so, a non programmer will not understand. The non translated environment could be campo (instead of the
Re: [sage-devel] Re: inferior sage in emacs, bug?
On Apr 11, 2012, at 10:34 AM, Ivan Andrus wrote: FWIW, I've been meaning to make an spkg with my changes (adding AUCTeX support for SageTeX). It would also include customization of the preamble and possibly a fix for this problem. I made spkg that you can try [1]. I can confirm the Unknown button type `help-xref' error if I revert Nick's fix [2], but not otherwise. The new spkg contains the latest from my repository [3] including this fix. If desired I can open a trac ticket and get this to be the new official spkg, though I would like to add a make-spkg script first so that it's easier (create sage-load.el and rename directory) in the future. -Ivan [1] http://boxen.math.washington.edu/home/iandrus/sage_mode-0.8.spkg [2] https://bitbucket.org/ncalexan/sage-mode/changeset/4e9e72fc639f [3] https://bitbucket.org/gvol/sage-mode/overview -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] OS X 10.7 testing again
On Tue, Apr 10, 2012 at 6:44 PM, David Joyner wdjoy...@gmail.com wrote: I accidentally downloaded sage 5.0b13 instead of sage 5.0b13-lion. However, the build just finished without errors (after over 12 hours!) on an ibook running 10.7. I tested sage 5.0b13 by starting it and typing the command 2+3. It started and returned 5 as expected. I just exited sage so I could start sage -testall. I'll report when it finishes. All tests passed. new-host-7:sage-5.0.beta13 davidjoyner$ clang --version Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix On Tue, Apr 10, 2012 at 5:11 AM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: Please build the following source tarball from source on OS X 10.7: http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta13-lion/sage-5.0.beta13-lion.tar I have included a few fixes, now *hopefully* it should work for everybody. Report success and failure, include the output of $ clang --version -- 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/sage-devel URL: http://www.sagemath.org -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: inferior sage in emacs, bug?
Is there a maintainer? You might be the closest thing we have to a maintainer. The original author has not been active in Sage development for quite some time. I had an e-mail exchange with Nick Alexander last December and he was quite responsive. He integrated a patch I wrote within a few days. He created the bitbucket repository at the occasion. He also accepted a pull request from Ivan Andrus less than one month ago. So I won't say he's gone. When I sent him the pull request he said he wasn't really active and asked if I wanted to be the maintainer. I could certainly be *a* maintainer, though I'm not too familiar with the code. Luckily emacs-lisp is really easy to debug. I'll see if I can reproduce this. Same for me. I'm a very regular user but far from being familiar with emacs internal. Also, my time devoted to non-mathematical stuff in Sage is limited and quite occupied by tuning Sphinx. So I can help a little but I don't want to commit any promises. FWIW, I've been meaning to make an spkg with my changes (adding AUCTeX support for SageTeX). It would also include customization of the preamble and possibly a fix for this problem. I'm not sure what you mean by include customization of the preamble but the patch I submitted was exactly for that purpose. So the LaTeX preamble should now be fully customizable in emacs customization menus. What I would like to have is to include Sage's latex.extra_preamble() to emacs preamble. Unfortunately I don't know how to get this from emacs. I've also been considering adding it to one of the package.el repositories (probably MELPA). Do emacs users think this would be a better/easier way to get sage-mode? For me I think it would be easier since I wouldn't have to run `sage -i sage-mode` whenever I install a new version of sage. OTOH, I also have to install gap-packages, so perhaps I should just add a feature to sage that installs a list of packages (if they aren't already) upon startup or installation. Or hopefully it's already there and someone will point it out to me. :-) When I install a new Sage, I've a checklist of optional package I wan't to have, sage-mode is among them. So the current situation is fine with me. Cheers, Florent -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: zeromq and @parallel for clusters
On 4/11/12 3:29 AM, Volker Braun wrote: On Wednesday, April 11, 2012 12:13:50 AM UTC+1, jason wrote: The Sage cell server spkg includes both zmq and pyzmq since we use these to communicate. Just to be clear, you haven't written spkgs for zeromq/pyzmq but just have them as dependencies? Because I couldn't find any spkgs except some really old ones that William once made. pyzmq and zmq are both included inside the sage cell spkg, and will be installed when you install the sage cell spkg. It would be good to see them as separate spkgs, but I have not done that. I was just pointing out that someone could install them by installing the sage cell spkg I posted a while ago. Thanks, Jason -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: DeprecationWarning in doctesting
Rummaging through the plot code, I've come across DOCTEST_MODE a couple of times. I can't find it documented anywhere, but it seems to be used as a flag for a function to tell whether it's being run for doctesting or not. Probably you can copy some of the examples to produce a doctest which only shows the deprecation warning when *not* in doctest mode. Here are the places DOCTEST_MODE is used in the sage library; good luck (and please let us know if you figure out how to use it :) -Niles sage: search_src('DOCTEST_MODE') misc/functional.py:1504:if sage.plot.plot.DOCTEST_MODE: misc/hg.py:339:from sage.plot.plot import DOCTEST_MODE misc/hg.py:340:if not os.path.exists(os.path.join(os.environ['HOME' ], '.hgrc')) and not DOCTEST_MODE: plot/animate.py:619:if plot.DOCTEST_MODE: plot/plot.py:334:DOCTEST_MODE = False plot/plot.py:337:DOCTEST_MODE_FILE = os.path.join(sage.misc.misc.SAGE_TMP, 'test.png') plot/plot.py:1767:if DOCTEST_MODE: plot/plot.py:1769:self.save(DOCTEST_MODE_FILE, **kwds) plot/plot.py:3860:if DOCTEST_MODE: plot/plot.py:3861:self.save(DOCTEST_MODE_FILE, plot/plot3d/base.pyx:1078:from sage.plot.plot import EMBEDDED_MODE,DOCTEST_MODE plot/plot3d/base.pyx:1082:if DOCTEST_MODE: plot/plot3d/base.pyx:1091:if DOCTEST_MODE or viewer=='tachyon' or ( viewer=='java3d' and EMBEDDED_MODE): plot/plot3d/base.pyx:1098:if DOCTEST_MODE or viewer=='java3d': plot/plot3d/base.pyx:1109:if DOCTEST_MODE or viewer=='jmol': plot/plot3d/base.pyx:1144:if not DOCTEST_MODE and not EMBEDDED_MODE: plot/plot3d/tachyon.py:314:if sage.plot.plot.DOCTEST_MODE: -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: OS X 10.7 testing again
On Apr 10, 11:36 pm, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2012-04-11 05:33, Bruce Cohen wrote: I believe that I am running the latest Xcode 4.3.2 Are you sure? I have only seen this error with *older* XCode versions. I ran the make again last night using clang, get the same error, and the clang version is newer than David's. That said, this machine probably has remnants of Xcode's from earlier versions of OSX. Any ideas on how to clean my machine? Thanks. -Bruce bash-3.2$ export CC=clang make[1]: *** [installed/ecm-6.3.p4] Error 1 real98m29.674s user82m6.097s sys 11m35.524s Error building Sage. make: *** [build] Error 1 bash-3.2$ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: inferior sage in emacs, bug?
On Apr 11, 2012, at 1:22 PM, Florent Hivert wrote: Is there a maintainer? You might be the closest thing we have to a maintainer. The original author has not been active in Sage development for quite some time. I had an e-mail exchange with Nick Alexander last December and he was quite responsive. He integrated a patch I wrote within a few days. He created the bitbucket repository at the occasion. He also accepted a pull request from Ivan Andrus less than one month ago. So I won't say he's gone. When I sent him the pull request he said he wasn't really active and asked if I wanted to be the maintainer. I could certainly be *a* maintainer, though I'm not too familiar with the code. Luckily emacs-lisp is really easy to debug. I'll see if I can reproduce this. Same for me. I'm a very regular user but far from being familiar with emacs internal. Also, my time devoted to non-mathematical stuff in Sage is limited and quite occupied by tuning Sphinx. So I can help a little but I don't want to commit any promises. Perhaps we should make my fork the official sage-mode repository so that Nick no longer has to be involved. FWIW, I've been meaning to make an spkg with my changes (adding AUCTeX support for SageTeX). It would also include customization of the preamble and possibly a fix for this problem. I'm not sure what you mean by include customization of the preamble but the patch I submitted was exactly for that purpose. So the LaTeX preamble should now be fully customizable in emacs customization menus. What I would like to have is to include Sage's latex.extra_preamble() to emacs preamble. Unfortunately I don't know how to get this from emacs. Sorry, I meant that it includes your changes in this area. If you want you can open a ticket (either on trac or on my repositories bug tracker), and I'll see what I can do. Would it need to get latex.extra_preamble() every time, or only when sage-mode is started? I've also been considering adding it to one of the package.el repositories (probably MELPA). Do emacs users think this would be a better/easier way to get sage-mode? For me I think it would be easier since I wouldn't have to run `sage -i sage-mode` whenever I install a new version of sage. OTOH, I also have to install gap-packages, so perhaps I should just add a feature to sage that installs a list of packages (if they aren't already) upon startup or installation. Or hopefully it's already there and someone will point it out to me. :-) When I install a new Sage, I've a checklist of optional package I wan't to have, sage-mode is among them. So the current situation is fine with me. But you have to install them manually, right? Just checking in case I've been missing a feature of Sage (it wouldn't be the first time). -Ivan -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: OS X 10.7 testing again
I have the exactly the same error as Bruce on a brand new MacBook Pro that came out of the box last Friday and has a fresh install of the newest XCode, without having migrated any remnants of old XCodes from any other computer. MacOS 10.7.3, XCode 4.3.2 $ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix My ecm-6.3.p4.log is practically identical to his. On Apr 11, 8:28 am, Bruce Cohen math.co...@gmail.com wrote: On Apr 10, 11:36 pm, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2012-04-11 05:33, Bruce Cohen wrote: I believe that I am running the latest Xcode 4.3.2 Are you sure? I have only seen this error with *older* XCode versions. I ran the make again last night using clang, get the same error, and the clang version is newer than David's. That said, this machine probably has remnants of Xcode's from earlier versions of OSX. Any ideas on how to clean my machine? Thanks. -Bruce bash-3.2$ export CC=clang make[1]: *** [installed/ecm-6.3.p4] Error 1 real 98m29.674s user 82m6.097s sys 11m35.524s Error building Sage. make: *** [build] Error 1 bash-3.2$ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: DeprecationWarning in doctesting
On Wed, Apr 11, 2012 at 5:13 AM, Niles Johnson nil...@gmail.com wrote: Rummaging through the plot code, I've come across DOCTEST_MODE a couple of times. I can't find it documented anywhere, but it seems to be used as a flag for a function to tell whether it's being run for doctesting or not. That's correct. I wrote that. I thought the name was somewhat suggestive of what the variable means. Probably you can copy some of the examples to produce a doctest which only shows the deprecation warning when *not* in doctest mode. Here are the places DOCTEST_MODE is used in the sage library; good luck (and please let us know if you figure out how to use it :) -Niles sage: search_src('DOCTEST_MODE') misc/functional.py:1504: if sage.plot.plot.DOCTEST_MODE: misc/hg.py:339: from sage.plot.plot import DOCTEST_MODE misc/hg.py:340: if not os.path.exists(os.path.join(os.environ['HOME'], '.hgrc')) and not DOCTEST_MODE: plot/animate.py:619: if plot.DOCTEST_MODE: plot/plot.py:334:DOCTEST_MODE = False plot/plot.py:337:DOCTEST_MODE_FILE = os.path.join(sage.misc.misc.SAGE_TMP, 'test.png') plot/plot.py:1767: if DOCTEST_MODE: plot/plot.py:1769: self.save(DOCTEST_MODE_FILE, **kwds) plot/plot.py:3860: if DOCTEST_MODE: plot/plot.py:3861: self.save(DOCTEST_MODE_FILE, plot/plot3d/base.pyx:1078: from sage.plot.plot import EMBEDDED_MODE, DOCTEST_MODE plot/plot3d/base.pyx:1082: if DOCTEST_MODE: plot/plot3d/base.pyx:1091: if DOCTEST_MODE or viewer=='tachyon' or (viewer=='java3d' and EMBEDDED_MODE): plot/plot3d/base.pyx:1098: if DOCTEST_MODE or viewer=='java3d': plot/plot3d/base.pyx:1109: if DOCTEST_MODE or viewer=='jmol': plot/plot3d/base.pyx:1144: if not DOCTEST_MODE and not EMBEDDED_MODE: plot/plot3d/tachyon.py:314: if sage.plot.plot.DOCTEST_MODE: -- 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/sage-devel URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: inferior sage in emacs, bug?
Hi, Perhaps we should make my fork the official sage-mode repository so that Nick no longer has to be involved. I've write (maybe even admin) access on Nick's repo I'm pretty sure he will agree to give your the same right. So I don't really see the point of having a new fork. It will just add some confusion, or am I missing something ? FWIW, I've been meaning to make an spkg with my changes (adding AUCTeX support for SageTeX). It would also include customization of the preamble and possibly a fix for this problem. I'm not sure what you mean by include customization of the preamble but the patch I submitted was exactly for that purpose. So the LaTeX preamble should now be fully customizable in emacs customization menus. What I would like to have is to include Sage's latex.extra_preamble() to emacs preamble. Unfortunately I don't know how to get this from emacs. Sorry, I meant that it includes your changes in this area. When did you made your fork ? Isn't your patch already there ? Florent -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: inferior sage in emacs, bug?
On Wed, Apr 11, 2012 at 4:16 AM, Ivan Andrus darthand...@gmail.com wrote: On Apr 11, 2012, at 10:34 AM, Ivan Andrus wrote: FWIW, I've been meaning to make an spkg with my changes (adding AUCTeX support for SageTeX). It would also include customization of the preamble and possibly a fix for this problem. I made spkg that you can try [1]. I can confirm the Unknown button type `help-xref' error if I revert Nick's fix [2], but not otherwise. The new spkg contains the latest from my repository [3] including this fix. If desired I can open a trac ticket and get this to be the new official spkg, though I would like to add a make-spkg script first so that it's easier (create sage-load.el and rename directory) in the future. -Ivan [1] http://boxen.math.washington.edu/home/iandrus/sage_mode-0.8.spkg [2] https://bitbucket.org/ncalexan/sage-mode/changeset/4e9e72fc639f [3] https://bitbucket.org/gvol/sage-mode/overview Thanks Ivan, your sage_mode-0.8.0.spkg works for me! By the way, should it be sage_mode or sage-mode? It looks like the 0.7 spkg was called sage-mode. If you make a ticket, please CC me on it and I'll help review. Thanks again, -- Benjamin Jones -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Julia
Apparently a new scientific computing language... http://www.r-bloggers.com/julia-i-love-you/ -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Julia
On Wed, Apr 11, 2012 at 8:15 AM, kcrisman kcris...@gmail.com wrote: Apparently a new scientific computing language... http://www.r-bloggers.com/julia-i-love-you/ Wow, that article suggests that R is *hideously slow* for recursion. I didn't know that. I tried his R example of computing fibonacci numbers on nt.sagenb.org and it takes 16 seconds in R; it takes 0.1 seconds in Python; and it takes 0.00365 seconds in Cython. Since he says Julia is 4000 times faster than R in that benchmark, it's of note that Cython is also about 4000 times faster. http://nt.sagenb.org/home/pub/155/ -- William -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Fwd: [MathFaculty] This Saturday morning Padelford will have no power
Hi, WARNING: All Sage-related services will be off from around 5:45am until 10am on Saturday morning, April 14.See below. -- William -- Forwarded message -- From: Kevin Loranger kevin...@math.washington.edu Date: Wed, Apr 11, 2012 at 8:39 AM Subject: [MathFaculty] This Saturday morning Padelford will have no power To: gradstude...@math.washington.edu, facu...@math.washington.edu, st...@math.washington.edu As you may have heard on 4/14/12 from 0600 to 0900 Padelford Hall will have no power. In preparation for this please power off (not log off) your desktop PC in your office BEFORE Saturday morning. Computing services that will not be available include; Access to your math files, math website, access to Zeno. Kevin Loranger will be on site for this event. I'm available at 206 685 2752 ___ Math Faculty mailing list facu...@math.washington.edu -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Julia
Of course adding an extra @cached_function to the python version handily beats the pants off the Cython implementation. Not exactly a fair comparison, but it illustrates the importance of making caching easy. -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Julia
On Wednesday, April 11, 2012 11:30:51 PM UTC+8, William wrote: On Wed, Apr 11, 2012 at 8:15 AM, kcrisman kcris...@gmail.com wrote: Apparently a new scientific computing language... http://www.r-bloggers.com/julia-i-love-you/ Wow, that article suggests that R is *hideously slow* for recursion. I didn't know that. I tried his R example of computing fibonacci numbers on nt.sagenb.org and it takes 16 seconds in R; it takes 0.1 seconds in Python; and it takes 0.00365 seconds in Cython. Since he says Julia is 4000 times faster than R in that benchmark, it's of note that Cython is also about 4000 times faster. http://nt.sagenb.org/home/pub/155/ -- William Actually, the claim in that post is that Julia is 500 times faster than R in the fib example. This means cython is roughly 9 times faster than Julia. :) -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Julia
On Apr 11, 11:30 am, William Stein wst...@gmail.com wrote: On Wed, Apr 11, 2012 at 8:15 AM, kcrisman kcris...@gmail.com wrote: Apparently a new scientific computing language... http://www.r-bloggers.com/julia-i-love-you/ Wow, that article suggests that R is *hideously slow* for recursion. I didn't know that. Yes, this is a very common complaint about R. So people do things like Rcpp [1]. People still love R, though, for its slowness and all. [1] http://dirk.eddelbuettel.com/code/rcpp.html -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Julia
On Wednesday, April 11, 2012 7:17:27 PM UTC+2, kcrisman wrote: Yes, this is a very common complaint about R. Rcpp is nice, yes. But more importantly this shows that a good library and big support from a strong community overcomes limitations in the programming language. I guess, nobody actually bothers that function calls and stack handling is inferior in R. (what bothers them more is that there is no clear direction for OOP) H -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: ARM port (again)
I have finally downloaded the file, and it doesn't run on my tablet. It seems that it was compiled in a different setup. I have changed to a newer version of ubuntu, and will try to compile from source. John, is your new version of eclib available as an spkg? -- 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/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: ARM port (again)
On 11 April 2012 18:51, mmarco mma...@unizar.es wrote: I have finally downloaded the file, and it doesn't run on my tablet. It seems that it was compiled in a different setup. I have changed to a newer version of ubuntu, and will try to compile from source. John, is your new version of eclib available as an spkg? Not yet, sorry. I have had other things to do but hope to get to it in the next couple of days. John -- 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/sage-devel URL: http://www.sagemath.org -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: OS X 10.7 testing again
I've borrowed a new Mac Air from and installed the following MacOS 10.7.3, XCode 4.2, ctools_february12 I get the same result: CC=clang make[1]: *** [installed/ecm-6.3.p4] Error 1 real94m44.538s user82m42.887s sys 10m53.847s Error building Sage. make: *** [build] Error 1 $ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix I will try again after installing the latest version: XCode 4.3.2 and ctools_late_march12 I'm interested in knowing exactly which versions of Xcode and command line tools actually produce a clean compile. I'll report back. Thanks. -Bruce On Apr 11, 6:21 am, Simon Wyatt simon.d.wy...@gmail.com wrote: I have the exactly the same error as Bruce on a brand new MacBook Pro that came out of the box last Friday and has a fresh install of the newest XCode, without having migrated any remnants of old XCodes from any other computer. MacOS 10.7.3, XCode 4.3.2 $ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix My ecm-6.3.p4.log is practically identical to his. On Apr 11, 8:28 am, Bruce Cohen math.co...@gmail.com wrote: On Apr 10, 11:36 pm, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2012-04-11 05:33, Bruce Cohen wrote: I believe that I am running the latest Xcode 4.3.2 Are you sure? I have only seen this error with *older* XCode versions. I ran the make again last night using clang, get the same error, and the clang version is newer than David's. That said, this machine probably has remnants of Xcode's from earlier versions of OSX. Any ideas on how to clean my machine? Thanks. -Bruce bash-3.2$ export CC=clang make[1]: *** [installed/ecm-6.3.p4] Error 1 real 98m29.674s user 82m6.097s sys 11m35.524s Error building Sage. make: *** [build] Error 1 bash-3.2$ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Julia
I would tell you how much faster (fib 25) is in lisp but I got a division by 0. It seems to be 0.00 seconds. (defun fib(n) (if ( n 2) n (+ (fib (- n 1))(fib(- n 2))) The reason people compare speed is that it is quantitatively easy. However, people value expressiveness in a programming language. Otherwise we would all be programming in assembler. RJF -- 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/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: OS X 10.7 testing again
On Tuesday, April 10, 2012 2:11:13 AM UTC-7, Jeroen Demeyer wrote: Please build the following source tarball from source on OS X 10.7: http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta13-lion/sage-5.0.beta13-lion.tar I have included a few fixes, now *hopefully* it should work for everybody. Report success and failure, include the output of $ clang --version Works for me (with SAGE_CHECK=yes) on two different machines: $ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix $ clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix Both are with the most recent Xcode. -- John -- 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/sage-devel URL: http://www.sagemath.org