Trac #6288: %lisp mode on the command line doesn't work.  why?

{{{
> Another thing that does not work is "sage -
> lisp" which gave the clisp prompt. I found this rather convenient
> since I could just use the clisp within sage. Is there any plan/
> interest to switch the this lisp interface to ecl? Does ecl use
> readline?

For now you can at least start sage then type

sage: !ecl

to start ecl.  It appears to not make any use of ecl.  I don't know if
this is just
a compilation problem or an ecl limitation.

The Sage <--> lisp interface already works fine:

sage: lisp.eval('(+ 2 3)')
'5'

I'm not sure why %gap works but not %lisp:

sage: %lisp
ERROR: Magic function `lisp` not found.
sage: %gap
  --> Switching to Gap <--
gap:
}}}

URL: http://trac.sagemath.org/6288
Reported by: was
Ticket author(s): Mike Hansen, Frédéric Chapoton
Reviewer(s): Frédéric Chapoton, Mike Hansen
Trac #15095: Symbolic `hurwitz_zeta` function

There should be a symbolic `hurwitz_zeta` function to replace the
current one, which can only do numerical evaluation with Maxima.

URL: http://trac.sagemath.org/15095
Reported by: eviatarbach
Ticket author(s): Eviatar Bach
Reviewer(s): Frédéric Chapoton
Trac #15107: Projective Plane designs

Shortcut to another function. In order to save a stranger the time it
took me to understand it `:-P`

Nathann

URL: http://trac.sagemath.org/15107
Reported by: ncohen
Ticket author(s): Nathann Cohen
Reviewer(s): Stefan van Zwam
Trac #15662: Ihara zeta function of graphs

Let us implement the zeta function of graphs

URL: http://trac.sagemath.org/15662
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Nathann Cohen
Trac #15663: Fix wrong claim about Suter's paper

I accidentally misunderstood one of the two definitions of Suter slides
in his paper and claimed in the docstring that it would conflict with
the other. My apologies for that!

I've also modified the doc of `dominated_partitions` to reflect what the
code does. Could have done it the other way round but this sounds more
natural.

This branch merges cleanly with my other partitions.py branch (#15428).

URL: http://trac.sagemath.org/15663
Reported by: darij
Ticket author(s): Darij Grinberg
Reviewer(s): Travis Scrimshaw
Trac #15687: Overzealous compiler check when building docs

The compiler/linker check from #15580 broke because `$SAGE_LOCAL/bin`
was removed from the `$PATH`: http://build.sagemath.org/sage/builders/%2
0%20slow%20Skynet%20mark%20%28SunOS%205.10-32%29%20full/builds/0/steps/c
ompile_2/logs/stdio

URL: http://trac.sagemath.org/15687
Reported by: vbraun
Ticket author(s): Jeroen Demeyer
Reviewer(s): Volker Braun
Trac #15630: Various Cython files using mpn_popcount need to be linked to gmp

Surely since #13352, coding_theory/binary_code uses mpn_popcount and so
needs to be linked to gmp.
At least on Cygwin this needs to be done explicitely trhough
module_list.py.

Same problem for graphs/convexity_properties and a few other files.

URL: http://trac.sagemath.org/15630
Reported by: jpflori
Ticket author(s): Jean-Pierre Flori
Reviewer(s): Travis Scrimshaw
Trac #15690: Fix content for marginally large tableaux

Currently, ''-i'' boxes in the ''i''th row are contributing weight 2 in
type ''C'' to the overall content, but should only contribute 1.

URL: http://trac.sagemath.org/15690
Reported by: bsalisbury1
Ticket author(s): Ben Salisbury
Reviewer(s): Travis Scrimshaw
Trac #15689: Implement flush and seg statistics on tableaux

Implements the segment and flush statistic for semistandard Young
tableaux.  Definition of the statistics may be found in arXiv:1401.1185.

URL: http://trac.sagemath.org/15689
Reported by: bsalisbury1
Ticket author(s): Ben Salisbury
Reviewer(s): Travis Scrimshaw
Trac #15365: Let MPIR build without C++ support on Cygwin

GMP/MPIR used to include a hack to configure faster.
This makes GMP/MPIR build badly on cygwin when C++ support is disabled
and is not needed anymore anyway.
See:
* https://sourceware.org/ml/cygwin/2013-06/msg00580.html
The spkg here backports a fix from:
* https://github.com/wbhart/mpir/commit/2320c7d965e3277fddaf2390fdf7032d
34954c8c

Use git branch.

URL: http://trac.sagemath.org/15365
Reported by: jpflori
Ticket author(s): Jean-Pierre Flori
Reviewer(s): Travis Scrimshaw
Trac #14589: binary matrices, dense graphs, and faster is_strongly_regular

As the title says !!

With the patch applied
{{{
sage: g = graphs.PaleyGraph(primes_first_n(70)[-1])
sage: %time g.is_strongly_regular()
CPU times: user 0.16 s, sys: 0.00 s, total: 0.16 s
Wall time: 0.16 s
True
}}}

Without it
{{{
sage: g = graphs.PaleyGraph(primes_first_n(70)[-1])
sage: %time g.is_strongly_regular()
CPU times: user 20.43 s, sys: 0.00 s, total: 20.43 s
Wall time: 20.44 s
True
}}}

Ahhhh.. It is so nice to implement an algorithm with the right data
structure ! `:-P`

Nathann

URL: http://trac.sagemath.org/14589
Reported by: ncohen
Ticket author(s): Nathann Cohen
Reviewer(s): Jernej Azarija
Trac #15285: Bug in AffineGeometryDesign

A `List` is used instead of a `Set`, and as a result blocks are returned
several times. Example :

Before
{{{
sage: print designs.AffineGeometryDesign(2, 1, GF(2)).blocks()
[[0, 1], [0, 1], [0, 2], [0, 2], [0, 3], [0, 3], [1, 2],
 [1, 2], [1, 3], [1, 3], [2, 3], [2, 3]]
}}}

After
{{{
sage: print designs.AffineGeometryDesign(2, 1, GF(2)).blocks()
[[0, 1], [0, 2], [0, 3], [1, 2], [1, 3], [2, 3]]
}}}

URL: http://trac.sagemath.org/15285
Reported by: ncohen
Ticket author(s): Nathann Cohen
Reviewer(s): Stefan van Zwam
Trac #15290: BasisExchangeMatroid.groundset_list() should return a copy

The following will break the matroid M:

{{{
sage: M = matroids.named_matroids.Fano()
sage: len(M.dependent_r_sets(3))
7
sage: L = M.groundset_list()
sage: x = L.pop()
sage: list(M.dependent_r_sets(3))
Traceback (most recent call last)
...
IndexError: list index out of range
}}}

Solution 1: BasisExchangeMatroid.groundset_list() should return a copy
of self._E
Solution 2: BasisExchangeMatroid._E should be a tuple instead of a list.

I think Solution 2 is the preferred one, but it should be tested for
speed.

Additional suggestion: update the docstrings of groundset() and
groundset_list() in BasisExchangeMatroid so they refer to each other.

URL: http://trac.sagemath.org/15290
Reported by: Stefan
Ticket author(s): Rudi Pendavingh
Reviewer(s): Michael Welsh
Trac #15335: Do not import sagenb at startup

URL: http://trac.sagemath.org/15335
Reported by: chapoton
Ticket author(s): Jeroen Demeyer
Reviewer(s): Travis Scrimshaw
Trac #15546: Maxima build hangs on invoking emacs

line 2384 of the maxima configuration calls emacs to eval load-path.  On
my system (Fedora 19, few additional emacs packages, including ecb and
flycheck) emacs hangs.

Maxima's configuration:
{{{
  { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path
(princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-
path)))' </dev/null >conftest.out") >&5
}}}

Emacs command in command line. This does not terminate.
{{{
[martin] emacs -batch -q -eval '(while load-path (princ (concat (car
load-path) "\n")) (setq load-path (cdr load-path)))'
Loading /usr/share/emacs/site-lisp/site-start.d/auctex.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/auto-complete-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-
init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/emacs-goodies-
loaddefs.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/gnus-bonus-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/haskell-mode-init.el
(source)...
Loading haskell-site-file...
Loading /usr/share/emacs/site-lisp/site-start.d/preview-latex.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/pymacs-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/systemtap-init.el
(source)...
Loading /usr/share/emacs/site-lisp/site-start.d/vala-init.el (source)...
Invalid comphist db.
/usr/share/emacs/site-lisp/haskell-mode/
/usr/share/emacs/site-lisp/gnus-bonus/
/usr/share/emacs/site-lisp/auctex
/usr/share/emacs/24.3/site-lisp
/usr/share/emacs/site-lisp
/usr/share/emacs/site-lisp/auto-complete
/usr/share/emacs/site-lisp/desktop-file-utils
/usr/share/emacs/site-lisp/gnus-bonus
/usr/share/emacs/site-lisp/goodies
/usr/share/emacs/site-lisp/haskell-mode
/usr/share/emacs/site-lisp/site-start.d
/usr/share/emacs/site-lisp/vala
/usr/share/emacs/site-lisp/auto-complete/ac-dict
/usr/share/emacs/24.3/lisp
/usr/share/emacs/24.3/lisp/vc
/usr/share/emacs/24.3/lisp/url
/usr/share/emacs/24.3/lisp/textmodes
/usr/share/emacs/24.3/lisp/progmodes
/usr/share/emacs/24.3/lisp/play
/usr/share/emacs/24.3/lisp/org
/usr/share/emacs/24.3/lisp/nxml
/usr/share/emacs/24.3/lisp/net
/usr/share/emacs/24.3/lisp/mh-e
/usr/share/emacs/24.3/lisp/mail
/usr/share/emacs/24.3/lisp/language
/usr/share/emacs/24.3/lisp/international
/usr/share/emacs/24.3/lisp/gnus
/usr/share/emacs/24.3/lisp/eshell
/usr/share/emacs/24.3/lisp/erc
/usr/share/emacs/24.3/lisp/emulation
/usr/share/emacs/24.3/lisp/emacs-lisp
/usr/share/emacs/24.3/lisp/cedet
/usr/share/emacs/24.3/lisp/calendar
/usr/share/emacs/24.3/lisp/calc
/usr/share/emacs/24.3/lisp/obsolete
/usr/share/emacs/24.3/leim
Cannot open load file: pp
}}}

Log file (maxima hangs while
{{{
Found local metadata for maxima-5.29.1.p4
Attempting to download package maxima-5.29.1.p4
>>> Trying to download
http://www.sagemath.org/packages/upstream//maxima/maxima-5.29.1.tar.bz2
[............................................................]
Checksum: 40b01a718ddba1c8364d76a1e5d35d8f vs
40b01a718ddba1c8364d76a1e5d35d8f
maxima-5.29.1.p4
====================================================
Setting up build directory for maxima-5.29.1.p4
Finished set up
****************************************************
Host system:
Linux montauk 3.11.10-200.fc19.x86_64 #1 SMP Mon Dec 2 20:28:03 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-
wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-
bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-
shared --enable-threads=posix --enable-checking=release --with-system-
zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-
unique-object --enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-
plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-
libgcj-multifile --enable-java-maintainer-mode --with-ecj-
jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-
isl=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-x86_64-redhat-linux
/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-
x86_64-redhat-linux/cloog-install --with-tune=generic --with-
arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC)
****************************************************
Applying patches (if any)...
patching file src/hayat.lisp
patching file tests/rtest_taylor.mac
patching file src/init-cl.lisp
patching file share/contrib/integration/abs_integrate.mac
patching file share/contrib/integration/rtest_abs_integrate.mac
patching file src/maxima.system
patching file src/grind.lisp

Now configuring Maxima...
}}}

URL: http://trac.sagemath.org/15546
Reported by: mraum
Ticket author(s): Volker Braun
Reviewer(s): Martin Raum
Trac #15462: Fix phi for general tensor product of crystals

When not working with regular crystals, one gets an infinite recursion
when calling `phi`:
{{{
sage: B = CrystalOfTableaux(['A',2], shape=[2,1])
sage: La = RootSystem(['A',2]).ambient_space().fundamental_weights()
sage: T = TensorProductOfCrystals(TCrystal(['A',2], La[1]+La[2]), B)
sage: t = T.an_element()
sage: t.phi(1)
}}}

URL: http://trac.sagemath.org/15462
Reported by: tscrim
Ticket author(s): Travis Scrimshaw
Reviewer(s): Ben Salisbury
Updated Sage version to 6.1.beta6