Re: [sage-devel] Poll: deprecate backslash operator

2023-10-08 Thread Thierry Dumont




Le 08/10/2023 à 18:24, Emmanuel Charpentier a écrit :
BTW :the changes and  advances made in Sage since the last edition of 
this book may warrant a revision, possibly a new edition. If only for 
the installation procedures (Conda installation, WSL on Windows, Github 
replacing Trac, etc...) and the interfaces (Jupyter replacing the Sage 
notebook, emacs as an alternative to command line, etc...).


Yes, for sure... It would be great. We just need manpower, time, and so 
on :-)



Le mercredi 4 octobre 2023 à 23:43:38 UTC+2, Nils Bruin a écrit :

On Wednesday, 4 October 2023 at 10:41:36 UTC-7 Thierry Dumont wrote:

In "Computational Mathematics with SageMath" we have some
backslash...


Indeed, I found on page 43 the example:

sage: 123 + \
: 345
468

which does not work presently. The first mention of "\" as an
operator is on page 162, where it's given as a shorthand for
solve_right in a table (with "/" as a shorthand of solve_left)
It also occurs on p168 (sect. 8.2.2) [twice] , p281, p283 (with
explanation), p302 (in a summary table). Even in the sections where
it is used, `\` is used much more often as a line continuation .

As far as the book is concerned, I think certainly fixing "\" to
work as line continuation is definitely more important for its
correctness, since that's used in much more places in the book (and
also in all the chapters where `\` is used as an operator). In all
the places except the summary table on p302, I saw the alternative
solve_right spelling explicitly mentioned. So impact of deprecating
the notation is rather limited. You could just add it to an
errata/updates list.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/f507ef0e-37a9-4306-846d-73e519a96723n%40googlegroups.com .


--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b36e0100-3de6-47bf-9cb4-8f311e3f2ad4%40math.univ-lyon1.fr.


Re: [sage-devel] Poll: deprecate backslash operator

2023-10-08 Thread Emmanuel Charpentier
BTW :the changes and  advances made in Sage since the last edition of this 
book may warrant a revision, possibly a new edition. If only for the 
installation procedures (Conda installation, WSL on Windows, Github 
replacing Trac, etc...) and the interfaces (Jupyter replacing the Sage 
notebook, emacs as an alternative to command line, etc...).

Le mercredi 4 octobre 2023 à 23:43:38 UTC+2, Nils Bruin a écrit :

On Wednesday, 4 October 2023 at 10:41:36 UTC-7 Thierry Dumont wrote:

In "Computational Mathematics with SageMath" we have some backslash... 


Indeed, I found on page 43 the example:

sage: 123 + \
: 345
468

which does not work presently. The first mention of "\" as an operator is 
on page 162, where it's given as a shorthand for solve_right in a table 
(with "/" as a shorthand of solve_left)
It also occurs on p168 (sect. 8.2.2) [twice] , p281, p283 (with 
explanation), p302 (in a summary table). Even in the sections where it is 
used, `\` is used much more often as a line continuation .

As far as the book is concerned, I think certainly fixing "\" to work as 
line continuation is definitely more important for its correctness, since 
that's used in much more places in the book (and also in all the chapters 
where `\` is used as an operator). In all the places except the summary 
table on p302, I saw the alternative solve_right spelling explicitly 
mentioned. So impact of deprecating the notation is rather limited. You 
could just add it to an errata/updates list.
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/f507ef0e-37a9-4306-846d-73e519a96723n%40googlegroups.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-10-04 Thread Nils Bruin
On Wednesday, 4 October 2023 at 10:41:36 UTC-7 Thierry Dumont wrote:

In "Computational Mathematics with SageMath" we have some backslash... 


Indeed, I found on page 43 the example:

sage: 123 + \
: 345
468

which does not work presently. The first mention of "\" as an operator is 
on page 162, where it's given as a shorthand for solve_right in a table 
(with "/" as a shorthand of solve_left)
It also occurs on p168 (sect. 8.2.2) [twice] , p281, p283 (with 
explanation), p302 (in a summary table). Even in the sections where it is 
used, `\` is used much more often as a line continuation .

As far as the book is concerned, I think certainly fixing "\" to work as 
line continuation is definitely more important for its correctness, since 
that's used in much more places in the book (and also in all the chapters 
where `\` is used as an operator). In all the places except the summary 
table on p302, I saw the alternative solve_right spelling explicitly 
mentioned. So impact of deprecating the notation is rather limited. You 
could just add it to an errata/updates list.
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5f938913-7a14-4ac0-b44f-5fea4aa53b5bn%40googlegroups.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-10-04 Thread John H Palmieri
Right. According to the Sage Developer's Guide, "Deprecated code can only 
be removed one year after the first stable release in which it appeared," 
so it will work for at least a year, and then someone would have to take 
further action to remove it completely.

On Wednesday, October 4, 2023 at 12:26:01 PM UTC-7 John Cremona wrote:

> I assume that deprecation means that for a year or so people can still use 
> the backslash but will see a deprecation warning. This could last for quite 
> a long time, so existing code would not immediately break.
>
> On Wed, 4 Oct 2023, 18:41 Thierry Dumont,  
> wrote:
>
>> In "Computational Mathematics with SageMath" we have some backslash...
>>
>> So, if we deprecate it, we will have problems with the doctests 
>> asociated,... and with the book.
>>
>> I don't like the backslash for solving linear systems, but even Julia 
>> has adopted it, probably for Matlab users...
>>
>> t.d.
>>
>> Le 01/10/2023 à 05:17, Nils Bruin a écrit :
>> > Deprecate please.
>> > 
>> > -- 
>> > 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+...@googlegroups.com 
>> > .
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com
>>  
>> <
>> https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com?utm_medium=email_source=footer
>> >.
>>
>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/90aec6f5-e47d-4981-941b-a7e909bcf518%40math.univ-lyon1.fr
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/e1253d39-8856-4dae-b631-9e0c406293edn%40googlegroups.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-10-04 Thread John Cremona
I assume that deprecation means that for a year or so people can still use
the backslash but will see a deprecation warning. This could last for quite
a long time, so existing code would not immediately break.

On Wed, 4 Oct 2023, 18:41 Thierry Dumont, 
wrote:

> In "Computational Mathematics with SageMath" we have some backslash...
>
> So, if we deprecate it, we will have problems with the doctests
> asociated,... and with the book.
>
> I don't like the backslash for solving linear systems, but even Julia
> has adopted it, probably for Matlab users...
>
> t.d.
>
> Le 01/10/2023 à 05:17, Nils Bruin a écrit :
> > Deprecate please.
> >
> > --
> > 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 view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com
> <
> https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com?utm_medium=email_source=footer
> >.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/90aec6f5-e47d-4981-941b-a7e909bcf518%40math.univ-lyon1.fr
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAD0p0K7Gq5Uia0zz8DbXSRVAeKiM%2B8dDZHer7JNTgrjzwCt52A%40mail.gmail.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-10-04 Thread Thierry Dumont

In "Computational Mathematics with SageMath" we have some backslash...

So, if we deprecate it, we will have problems with the doctests 
asociated,... and with the book.


I don't like the backslash for solving linear systems, but even Julia 
has adopted it, probably for Matlab users...


t.d.

Le 01/10/2023 à 05:17, Nils Bruin a écrit :

Deprecate please.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com .


--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/90aec6f5-e47d-4981-941b-a7e909bcf518%40math.univ-lyon1.fr.


Re: [sage-devel] Poll: deprecate backslash operator

2023-10-01 Thread John Cremona
Deprecate

On Sun, 1 Oct 2023, 04:17 Nils Bruin,  wrote:

> Deprecate please.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAD0p0K7-z0OW26asFf6_tx3vuCBJ6tLympn_4-6GG9AyDOx%2B-g%40mail.gmail.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-09-30 Thread Nils Bruin
Deprecate please.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/699f7d70-4222-4f64-8ce4-e606478377a9n%40googlegroups.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-09-30 Thread William Stein
Again, as the person who added it to Sage in the first place:  deprecate.

William

On Sat, Sep 30, 2023 at 4:02 PM Dima Pasechnik  wrote:
>
> deprecate!
>
> On Sat, Sep 30, 2023 at 10:47 PM John H Palmieri  
> wrote:
> >
> > I asked this already but with a different subject heading, so people may 
> > have missed it.
> >
> > BackslashOperator is defined in "sage/misc/misc.py", and the preparser 
> > converts "A \ b" to the appropriate Python code. The docstring for 
> > BackslashOperator says "Implements Matlab-style backslash operator for 
> > solving systems A \ b".
> >
> > This is not used much: for matrices, matroids, and a tiny bit (at least in 
> > the Sage library) for binary trees. Should we deprecate it?
> >
> > Arguments for deprecation: the less we rely on the preparser, the better 
> > (at least as far as easing a transition between Python and Sage, for 
> > instance). The backslash operator is not in wide use in Sage. Currently its 
> > implementation breaks the standard Python use of "\" as a line-continuation 
> > marker.
> >
> > Arguments against deprecation: it provides a convenient shorthand, and 
> > people may be familiar with it from Matlab or other systems.
> >
> > --
> > 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 view this discussion on the web visit 
> > https://groups.google.com/d/msgid/sage-devel/a0659b81-f50f-4b59-91ed-42650409435an%40googlegroups.com.
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq2-TSvMc8CC%2BeTrRK7YZXiCs9xxpxVKzZTa7MhVNwe9pg%40mail.gmail.com.



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CACLE5GDOnYuT5i75kXfGz%2BjgG0xOnfvEngrHis3EtWHvE5JUXg%40mail.gmail.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-09-30 Thread Dima Pasechnik
deprecate!

On Sat, Sep 30, 2023 at 10:47 PM John H Palmieri  wrote:
>
> I asked this already but with a different subject heading, so people may have 
> missed it.
>
> BackslashOperator is defined in "sage/misc/misc.py", and the preparser 
> converts "A \ b" to the appropriate Python code. The docstring for 
> BackslashOperator says "Implements Matlab-style backslash operator for 
> solving systems A \ b".
>
> This is not used much: for matrices, matroids, and a tiny bit (at least in 
> the Sage library) for binary trees. Should we deprecate it?
>
> Arguments for deprecation: the less we rely on the preparser, the better (at 
> least as far as easing a transition between Python and Sage, for instance). 
> The backslash operator is not in wide use in Sage. Currently its 
> implementation breaks the standard Python use of "\" as a line-continuation 
> marker.
>
> Arguments against deprecation: it provides a convenient shorthand, and people 
> may be familiar with it from Matlab or other systems.
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/a0659b81-f50f-4b59-91ed-42650409435an%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq2-TSvMc8CC%2BeTrRK7YZXiCs9xxpxVKzZTa7MhVNwe9pg%40mail.gmail.com.


Re: [sage-devel] Poll: deprecate backslash operator

2023-09-30 Thread Michael Orlitzky
On Sat, 2023-09-30 at 14:47 -0700, John H Palmieri wrote:
> 
> This is not used much: for matrices, matroids, and a tiny bit (at least in 
> the Sage library) for binary trees. Should we deprecate it?

Deprecate it, it's a big WTF for most people.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/1f8eb23d9c89b6debe62ebd2d9faec3965008236.camel%40orlitzky.com.


[sage-devel] Poll: deprecate backslash operator

2023-09-30 Thread John H Palmieri
I asked this already but with a different subject heading, so people may 
have missed it. 

BackslashOperator is defined in "sage/misc/misc.py", and the preparser 
converts "A \ b" to the appropriate Python code. The docstring for 
BackslashOperator says "Implements Matlab-style backslash operator for 
solving systems A \ b". 

This is not used much: for matrices, matroids, and a tiny bit (at least in 
the Sage library) for binary trees. Should we deprecate it?

Arguments for deprecation: the less we rely on the preparser, the better 
(at least as far as easing a transition between Python and Sage, for 
instance). The backslash operator is not in wide use in Sage. Currently its 
implementation breaks the standard Python use of "\" as a line-continuation 
marker.

Arguments against deprecation: it provides a convenient shorthand, and 
people may be familiar with it from Matlab or other systems.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a0659b81-f50f-4b59-91ed-42650409435an%40googlegroups.com.