Hi,

On Sat, Nov 6, 2021 at 4:54 PM Ralf Gommers <ralf.gomm...@gmail.com> wrote:
>
>
>
> On Tue, Oct 26, 2021 at 9:20 PM bas van beek <bas.vanb...@hotmail.com> wrote:
>>
>> Hi all,
>>
>>
>>
>> The subject of `MachAr` recently came up in 
>> https://github.com/numpy/numpy/pull/20132 and
>>
>> an earlier community meeting, more notably: it’s questionably role as public 
>> (and even private?) API.
>>
>>
>>
>> Ever since the introduction of hard-coded `finfo` parameters back in 
>> numpy/numpy#8504 there has
>>
>> been progressively less need for computing machine parameters during 
>> runtime, to the point where
>>
>> `MachAr` is effectively unused in the numpy codebase itself[1]. From a 
>> user-API point of view, the main
>>
>> difference between ` finfo` and `MachAr` these days is that the latter 
>> produces the same results roughly
>>
>> 4 orders of magnitude slower than the former…
>>
>>
>>
>> Are there any thoughts about deprecating it?
>
>
> For the record: we discussed this in the community meeting two weeks ago, and 
> everyone seemed fine with or in favor of deprecating MachAr.

I haven't looked at this code for a while - but is there any point in
keeping it somewhere outside the NumPy codebase, for use when we hit
an unusual e.g. longdouble type, and we want to infer `finfo`?   My
slight guess is no, that it's too unreliable in that case, and we'd be
better off annotating the remaining code with suggestions to get this
information.

Cheers,

Matthew
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to