Re: [sage-devel] Re: singular crash

2021-11-12 Thread Dima Pasechnik
I would rather suspect pexpect for being flaky, than a Singular bug.

On Sat, 13 Nov 2021, 00:14 Michael Orlitzky,  wrote:

> On Fri, 2021-11-12 at 14:59 -0800, Volker Braun wrote:
> > I'm seeing these fail regularly (and randomly)
> >
> >
>
> Are these system (i.e. non-SPKG) installs of Singular? We're accepting
> anything newer than v4.1.0, but if some particular version is buggy we
> should exclude it.
>
>
> --
> 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/64ec97dbeccda975c91925880edc17152d4d0b46.camel%40orlitzky.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/CAAWYfq1FnaE2bqDwrLDLJzEo6q9TnrGVA%3DzDU6WZE6Qb5yKhQQ%40mail.gmail.com.


Re: [sage-devel] Re: singular crash

2021-11-12 Thread Michael Orlitzky
On Fri, 2021-11-12 at 14:59 -0800, Volker Braun wrote:
> I'm seeing these fail regularly (and randomly)
> 
> 

Are these system (i.e. non-SPKG) installs of Singular? We're accepting
anything newer than v4.1.0, but if some particular version is buggy we
should exclude it.


-- 
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/64ec97dbeccda975c91925880edc17152d4d0b46.camel%40orlitzky.com.


[sage-devel] Re: singular crash

2021-11-12 Thread Volker Braun
I'm seeing these fail regularly (and randomly)

On Friday, November 12, 2021 at 6:38:44 PM UTC+1 vdelecroix wrote:

> Dear all,
>
> I just set up a patchbot but two tests related to singular fail. The
> singular it uses was compiled from source. See the patchbot report
> at https://patchbot.sagemath.org/ticket/32859/
>
> sage -t --long --warn-long 42.4 
> --random-seed=24651699140802493978117085271929917492 
> src/sage/interfaces/expect.py
> **
> File "src/sage/interfaces/expect.py", line 915, in 
> sage.interfaces.expect.Expect._eval_line
> Failed example:
> singular.interrupt()
> Expected:
> True
> Got:
> False
> **
> File "src/sage/interfaces/expect.py", line 921, in 
> sage.interfaces.expect.Expect._eval_line
> Failed example:
> singular('2+3')
> Expected:
> Singular crashed -- automatically restarting.
> 5
> Got:
> 5
> **
> 1 item had failures:
> 2 of 16 in sage.interfaces.expect.Expect._eval_line
> [102 tests, 2 failures, 18.08 s]
>
> Best
> Vincent
>

-- 
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/a29fb38a-55eb-4f3e-b5b1-cdaf5fdcc377n%40googlegroups.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Dima Pasechnik
On Fri, Nov 12, 2021 at 10:46 PM Dima Pasechnik  wrote:
>
> On Fri, Nov 12, 2021 at 10:17 PM Matthias Koeppe
>  wrote:
> >
> > No, we should revise the documentation so that it does not advertise "make 
> > test" any more.
>
> No, if we use  autotools/make to build a project, there should be
> meaningful make targets for testing too, force
> people to learn peculiarities of tox or whatever the latest Python
> testing rage is, is wrong.

Besides, in the use case we're taking about, ./configure produces
results which are
wrong for the purposes of the further use, which is not to build any
packages, but only sagelib.
Let's stop this confusion - I suppose then the ugly pip commands can
be replaces by "make build", no?

>
>
>
> >
> > On Friday, November 12, 2021 at 2:09:12 PM UTC-8 Dima Pasechnik wrote:
> >>
> >> On Friday, November 12, 2021 at 8:20:24 PM UTC Matthias Koeppe wrote:
> >>>
> >>> Yes, if one is not using the Sage distribution for build, one should also 
> >>> not use it for testing.
> >>> Use "sage -t".
> >>
> >>
> >> that's not nice. Should we have a ./configure option that just blesses all 
> >> deps as "coming from the system"?
> >>
> >>
> >>>
> >>>
> >>> On Friday, November 12, 2021 at 10:39:47 AM UTC-8 Dima Pasechnik wrote:
> 
>  On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe
>   wrote:
>  >
>  > On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote:
>  >>
>  >> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote:
>  >>>
>  >>> I have updated the instructions.
>  >>
>  >>
>  >> Thanks - are these tested?
>  >
>  >
>  > Yes, I tested them on macOS Big Sur.
> 
>  hmm, by design, or in error, "make ptest" starts building all the
>  dependencies, e.g. maxima.
>  So that's not a usual environment - perhaps it should be mentioned.
> 
> 
>  >
>  >
>  >
>  > --
>  > 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/b316b9ed-c5d9-4ac6-9717-ffb275ea267fn%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/CAAWYfq0-ZQ4%3DUX27abZTTOvt9uLX1BAUgVEer1HfzyDVda-DmQ%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Dima Pasechnik
On Fri, Nov 12, 2021 at 10:17 PM Matthias Koeppe
 wrote:
>
> No, we should revise the documentation so that it does not advertise "make 
> test" any more.

No, if we use  autotools/make to build a project, there should be
meaningful make targets for testing too, force
people to learn peculiarities of tox or whatever the latest Python
testing rage is, is wrong.



>
> On Friday, November 12, 2021 at 2:09:12 PM UTC-8 Dima Pasechnik wrote:
>>
>> On Friday, November 12, 2021 at 8:20:24 PM UTC Matthias Koeppe wrote:
>>>
>>> Yes, if one is not using the Sage distribution for build, one should also 
>>> not use it for testing.
>>> Use "sage -t".
>>
>>
>> that's not nice. Should we have a ./configure option that just blesses all 
>> deps as "coming from the system"?
>>
>>
>>>
>>>
>>> On Friday, November 12, 2021 at 10:39:47 AM UTC-8 Dima Pasechnik wrote:

 On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe
  wrote:
 >
 > On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote:
 >>
 >> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote:
 >>>
 >>> I have updated the instructions.
 >>
 >>
 >> Thanks - are these tested?
 >
 >
 > Yes, I tested them on macOS Big Sur.

 hmm, by design, or in error, "make ptest" starts building all the
 dependencies, e.g. maxima.
 So that's not a usual environment - perhaps it should be mentioned.


 >
 >
 >
 > --
 > 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/b316b9ed-c5d9-4ac6-9717-ffb275ea267fn%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/CAAWYfq2dQvjFjXN4KP1psY52qxLT5YyS4WjuTpvvi2SgWf5zAw%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Matthias Koeppe
I have added this as a task to https://trac.sagemath.org/ticket/30453

On Friday, November 12, 2021 at 2:17:05 PM UTC-8 Matthias Koeppe wrote:

> No, we should revise the documentation so that it does not advertise "make 
> test" any more.
>
> On Friday, November 12, 2021 at 2:09:12 PM UTC-8 Dima Pasechnik wrote:
>
>> On Friday, November 12, 2021 at 8:20:24 PM UTC Matthias Koeppe wrote:
>>
>>> Yes, if one is not using the Sage distribution for build, one should 
>>> also not use it for testing.
>>> Use "sage -t".
>>>
>>
>> that's not nice. Should we have a ./configure option that just blesses 
>> all deps as "coming from the system"?
>>
>>
>>
>>>
>>> On Friday, November 12, 2021 at 10:39:47 AM UTC-8 Dima Pasechnik wrote:
>>>
 On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe 
  wrote: 
 > 
 > On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik 
 wrote: 
 >> 
 >> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe 
 wrote: 
 >>> 
 >>> I have updated the instructions. 
 >> 
 >> 
 >> Thanks - are these tested? 
 > 
 > 
 > Yes, I tested them on macOS Big Sur. 

 hmm, by design, or in error, "make ptest" starts building all the 
 dependencies, e.g. maxima. 
 So that's not a usual environment - perhaps it should be mentioned. 


 > 
 > 
 > 
 > -- 
 > 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/e5edb1b7-3459-438e-b679-1a284d338950n%40googlegroups.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Matthias Koeppe
No, we should revise the documentation so that it does not advertise "make 
test" any more.

On Friday, November 12, 2021 at 2:09:12 PM UTC-8 Dima Pasechnik wrote:

> On Friday, November 12, 2021 at 8:20:24 PM UTC Matthias Koeppe wrote:
>
>> Yes, if one is not using the Sage distribution for build, one should also 
>> not use it for testing.
>> Use "sage -t".
>>
>
> that's not nice. Should we have a ./configure option that just blesses all 
> deps as "coming from the system"?
>
>
>
>>
>> On Friday, November 12, 2021 at 10:39:47 AM UTC-8 Dima Pasechnik wrote:
>>
>>> On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe 
>>>  wrote: 
>>> > 
>>> > On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote: 
>>> >> 
>>> >> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote: 
>>> >>> 
>>> >>> I have updated the instructions. 
>>> >> 
>>> >> 
>>> >> Thanks - are these tested? 
>>> > 
>>> > 
>>> > Yes, I tested them on macOS Big Sur. 
>>>
>>> hmm, by design, or in error, "make ptest" starts building all the 
>>> dependencies, e.g. maxima. 
>>> So that's not a usual environment - perhaps it should be mentioned. 
>>>
>>>
>>> > 
>>> > 
>>> > 
>>> > -- 
>>> > 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/b316b9ed-c5d9-4ac6-9717-ffb275ea267fn%40googlegroups.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Dima Pasechnik


On Friday, November 12, 2021 at 8:20:24 PM UTC Matthias Koeppe wrote:

> Yes, if one is not using the Sage distribution for build, one should also 
> not use it for testing.
> Use "sage -t".
>

that's not nice. Should we have a ./configure option that just blesses all 
deps as "coming from the system"?



>
> On Friday, November 12, 2021 at 10:39:47 AM UTC-8 Dima Pasechnik wrote:
>
>> On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe 
>>  wrote: 
>> > 
>> > On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote: 
>> >> 
>> >> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote: 
>> >>> 
>> >>> I have updated the instructions. 
>> >> 
>> >> 
>> >> Thanks - are these tested? 
>> > 
>> > 
>> > Yes, I tested them on macOS Big Sur. 
>>
>> hmm, by design, or in error, "make ptest" starts building all the 
>> dependencies, e.g. maxima. 
>> So that's not a usual environment - perhaps it should be mentioned. 
>>
>>
>> > 
>> > 
>> > 
>> > -- 
>> > 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/0974859c-088f-48f3-8157-7ef4c94cabf7n%40googlegroups.com.


[sage-devel] Re: prime_pi gives wrong output

2021-11-12 Thread dmo...@deductivepress.ca
This is a known bug. The additional example could be added as a comment on trac 
ticket #24960 .

On Friday, November 12, 2021 at 12:49:24 PM UTC-7 martin@gmail.com 
wrote:

> Hello,
>
> prime_pi(281474961965055) gives correct output 8731188419994.
>
> prime_pi(281474961965056)  gives wrong result 8731188419993.
>
> Please note that second input is greater than first, however it produces 
> smaller number of primes. The second output is obviously wrong.  
>
> It was tested on CoCalc.com free trial and the bug is easily reproducible.
>
> Should I open the ticket? Is it a known error?
>
> Thanks
>
> Martin Zeman
>

-- 
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/be4cde5f-5175-4b00-8bee-b6cac2867c77n%40googlegroups.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Matthias Koeppe
Yes, if one is not using the Sage distribution for build, one should also 
not use it for testing.
Use "sage -t".


On Friday, November 12, 2021 at 10:39:47 AM UTC-8 Dima Pasechnik wrote:

> On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe
>  wrote:
> >
> > On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote:
> >>
> >> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote:
> >>>
> >>> I have updated the instructions.
> >>
> >>
> >> Thanks - are these tested?
> >
> >
> > Yes, I tested them on macOS Big Sur.
>
> hmm, by design, or in error, "make ptest" starts building all the
> dependencies, e.g. maxima.
> So that's not a usual environment - perhaps it should be mentioned.
>
>
> >
> >
> >
> > --
> > 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/81c4d879-5125-4fd0-b228-b5a8d39d4ecfn%40googlegroups.com.


[sage-devel] prime_pi gives wrong output

2021-11-12 Thread Martin Zeman
Hello,

prime_pi(281474961965055) gives correct output 8731188419994.

prime_pi(281474961965056)  gives wrong result 8731188419993.

Please note that second input is greater than first, however it produces 
smaller number of primes. The second output is obviously wrong.  

It was tested on CoCalc.com free trial and the bug is easily reproducible.

Should I open the ticket? Is it a known error?

Thanks

Martin Zeman

-- 
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/8b0967a3-ce3b-4f32-8f9c-0afab17829afn%40googlegroups.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Dima Pasechnik
On Fri, Nov 12, 2021 at 5:01 PM Matthias Koeppe
 wrote:
>
> On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote:
>>
>> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote:
>>>
>>> I have updated the instructions.
>>
>>
>> Thanks - are these tested?
>
>
> Yes, I tested them on macOS Big Sur.

hmm, by design, or in error, "make ptest" starts building all the
dependencies, e.g. maxima.
So that's not a usual environment - perhaps it should be mentioned.


>
>
>
> --
> 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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%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/CAAWYfq0P2-pgQKVLuh3yu4Od%2BuXjg_-MU%2BfMU-PyPR7pMNDRnA%40mail.gmail.com.


[sage-devel] singular crash

2021-11-12 Thread Vincent Delecroix

Dear all,

I just set up a patchbot but two tests related to singular fail. The
singular it uses was compiled from source. See the patchbot report
at https://patchbot.sagemath.org/ticket/32859/

sage -t --long --warn-long 42.4 
--random-seed=24651699140802493978117085271929917492 
src/sage/interfaces/expect.py

**
File "src/sage/interfaces/expect.py", line 915, in 
sage.interfaces.expect.Expect._eval_line

Failed example:
singular.interrupt()
Expected:
True
Got:
False
**
File "src/sage/interfaces/expect.py", line 921, in 
sage.interfaces.expect.Expect._eval_line

Failed example:
singular('2+3')
Expected:
Singular crashed -- automatically restarting.
5
Got:
5
**
1 item had failures:
   2 of  16 in sage.interfaces.expect.Expect._eval_line
[102 tests, 2 failures, 18.08 s]

Best
Vincent

--
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/d89cabda-8573-cfb8-73a6-9da719594229%40gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Matthias Koeppe
On Friday, November 12, 2021 at 2:42:09 AM UTC-8 Dima Pasechnik wrote:

> On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote:
>
>> I have updated the instructions.
>
>
> Thanks - are these tested?
>

Yes, I tested them on macOS Big Sur.

 

-- 
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/7cffbfcd-ef4c-48a4-a2ae-126677315662n%40googlegroups.com.


Re: [sage-devel] is coersion always tried in conversion code?

2021-11-12 Thread David Roe
I'm not following the discussion on that ticket completely, but it's hard
to see a situation where there'd be a speed benefit to trying coercion
first.  Here's why:

Given two parents A and B, if you try to convert an element of A into B
Sage computes and stores a convert map.  However, in order to ensure that
this convert map is reasonable, the first thing it tries when computing it
is to compute the coerce map instead. If that succeeds, it just stores and
returns that.  So the computation of a coercion map is built in to the
computation of a conversion.

This is a one-time cost for each pair of parents.  Afterward, when you try
to convert an element, it looks that map up in a hash table and applies
it.  Depending on the implementation of the map, you can get speedups by
improving how it computes its image.  You can also get speedups if you're
doing a loop of some kind by ensuring that you call the map only once
rather than many times (e.g. setting one=RBF(1) outside the loop rather
than adding the python int 1 each time).  But I doubt that explicitly
calling coercion before conversion will help.

Of course, the coercion system is complicated and I could be wrong.
Benchmarking is the actual arbiter.
David

On Fri, Nov 12, 2021 at 9:53 AM Dima Pasechnik  wrote:

> This came up on https://trac.sagemath.org/ticket/32851
> - is there any speed benefit to explicitly try to do coersion before
> trying conversion?
>
> Thanks
> Dima
>
> --
> 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/CAAWYfq06c_nU0ESR2T0NRp%3D-893LJdj2N7_8--X9ZYpTia4%2BSw%40mail.gmail.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/CAChs6_nACZeSuJc-WAksNUqB1hYq6JyT%3D74%3D9VYFWesJX0tYvg%40mail.gmail.com.


[sage-devel] is coersion always tried in conversion code?

2021-11-12 Thread Dima Pasechnik
This came up on https://trac.sagemath.org/ticket/32851
- is there any speed benefit to explicitly try to do coersion before
trying conversion?

Thanks
Dima

-- 
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/CAAWYfq06c_nU0ESR2T0NRp%3D-893LJdj2N7_8--X9ZYpTia4%2BSw%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-12 Thread Dima Pasechnik


On Friday, November 12, 2021 at 6:36:00 AM UTC Matthias Koeppe wrote:

> I have updated the instructions.


Thanks - are these tested?

I've changed the release version at the bottom, so that it does not look 
like something untouched since Sage 9.2



>
> On Thursday, November 11, 2021 at 4:27:38 PM UTC-8 Matthias Koeppe wrote:
>
>> Invoking "setup.py install" is always wrong, it should not be used 
>> directly anymore.
>>
>> Try "pip install ." instead
>>
>> On Thursday, November 11, 2021 at 4:24:47 PM UTC-8 Dima Pasechnik wrote:
>>
>>> anyhow, Conda for Sage Developers needs updates. 
>>> Before doing 
>>>
>>> cd src/ 
>>> python setup.py install 
>>>
>>> one needs to do the same for a number of packages in 
>>> pkgs/ 
>>>
>>> cd pkgs/sage-conf 
>>> python setup.py install 
>>> cd ../sage-setup 
>>> python setup.py install 
>>>
>>> and I also did 
>>>
>>> pip install memory-allocator 
>>>
>>> because some of these was failing with an error there 
>>>
>>>
>>> Perhaps Matthias can tell us more about the precise order and need. 
>>>
>>>
>>> On Thu, Nov 11, 2021 at 11:56 PM Isuru Fernando  
>>> wrote: 
>>> > 
>>> > I suggest running `conda activate sage-build` and then doing a `make 
>>> dist-clean`. 
>>> > 
>>> > -- 
>>> > 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/CA%2B01voMXPYnm3FmYZYq-4fRWkB7ttBpABBbJ%3D6p_Yaw9mNAZKw%40mail.gmail.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/4f1adcad-deae-4c45-8fb2-28d8a71c539fn%40googlegroups.com.