[#119132] Segfault using ruby C on MacOS (Intel Catalina and M2 Sonoma) — "martin.kufner--- via ruby-core" <ruby-core@...>
Hey guys,
4 messages
2024/09/12
[#119133] Re: Segfault using ruby C on MacOS (Intel Catalina and M2 Sonoma)
— "martin.kufner--- via ruby-core" <ruby-core@...>
2024/09/12
I just saw, that the #includes dont show up in the c file ...
[#119145] [Ruby master Misc#20728] Propose Eileen Uchitelle as a core committer — "kddnewton (Kevin Newton) via ruby-core" <ruby-core@...>
Issue #20728 has been reported by kddnewton (Kevin Newton).
14 messages
2024/09/12
[#119312] [Ruby master Bug#20762] `make test-basic` with -DRGENGC_FORCE_MAJOR_GC is always failure — "hsbt (Hiroshi SHIBATA) via ruby-core" <ruby-core@...>
Issue #20762 has been reported by hsbt (Hiroshi SHIBATA).
6 messages
2024/09/27
[ruby-core:119077] [Ruby master Feature#20705] Should "0.E-9" be a valid float value?
From:
"kou (Kouhei Sutou) via ruby-core" <ruby-core@...>
Date:
2024-09-06 02:48:01 UTC
List:
ruby-core #119077
Issue #20705 has been updated by kou (Kouhei Sutou).
Implementation: https://github.com/ruby/ruby/pull/11559
Should we also accept "0." as @mame showed in #2? The implementation includes "0." support.
FYI: to_f already accepts "0.". Float didn't accept "0.".
----------------------------------------
Feature #20705: Should "0.E-9" be a valid float value?
https://bugs.ruby-lang.org/issues/20705#change-109661
* Author: kou (Kouhei Sutou)
* Status: Open
----------------------------------------
Ruby doesn't accept "0.E-9" as a valid float value:
```console
$ ruby -e 'Float("0.E-9")'
<internal:kernel>:218:in 'Kernel#Float': invalid value for Float(): "0.E-9" (ArgumentError)
from -e:1:in '<main>'
```
But other systems accept "0.E-9" as a valid float value:
PostgreSQL:
```text
=> select 0.E-9;
?column?
-------------
0.000000000
(1 row)
```
MySQL:
```text
> select 0.E-9;
+-------+
| 0.E-9 |
+-------+
| 0 |
+-------+
1 row in set (0.00 sec)
```
Python:
```console
$ python3 -c 'print(0.E-9)'
0.0
```
Node.js:
```console
$ nodejs -e 'console.log(0.E-9)'
0
```
Should Ruby accept "0.E-9" as a valid float value?
FYI: I don't have an opinion of this. I just realized this by an issue from an user of a maintained library by me: https://github.com/apache/arrow/issues/43877
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/