Nir
12/03/2020, 3:42 PMInt
. This seems like a pretty odd choice. Is there any way to instead have the standard library use a 64 bit integer?Chantry Cargill
12/03/2020, 3:45 PMNir
12/03/2020, 3:45 PMNir
12/03/2020, 3:46 PMephemient
12/03/2020, 3:47 PMNir
12/03/2020, 3:47 PMNir
12/03/2020, 3:47 PMNir
12/03/2020, 3:47 PMcount
?Jonathan Mew
12/03/2020, 3:47 PMNir
12/03/2020, 3:48 PMephemient
12/03/2020, 3:49 PMNir
12/03/2020, 3:50 PMephemient
12/03/2020, 3:50 PMNir
12/03/2020, 3:50 PMNir
12/03/2020, 3:50 PMNir
12/03/2020, 3:51 PMephemient
12/03/2020, 3:51 PMNir
12/03/2020, 3:52 PMLong
for the return type of count
for example, is a shameNir
12/03/2020, 3:52 PMephemient
12/03/2020, 3:53 PM.count()
return a larger value than the possible size of a collection?Chantry Cargill
12/03/2020, 3:53 PMNir
12/03/2020, 3:54 PMNir
12/03/2020, 3:54 PMNir
12/03/2020, 3:55 PMChantry Cargill
12/03/2020, 3:57 PMNir
12/03/2020, 3:57 PMChantry Cargill
12/03/2020, 3:58 PMNir
12/03/2020, 4:04 PMChantry Cargill
12/03/2020, 4:05 PMNir
12/03/2020, 4:05 PMNir
12/03/2020, 4:05 PMChantry Cargill
12/03/2020, 4:06 PMNir
12/03/2020, 4:07 PMChantry Cargill
12/03/2020, 4:08 PMNir
12/03/2020, 4:08 PMChantry Cargill
12/03/2020, 4:09 PMrocketraman
12/03/2020, 4:13 PMKirill Grouchnikov
12/03/2020, 4:15 PMNir
12/03/2020, 4:17 PMNir
12/03/2020, 4:18 PMKirill Grouchnikov
12/03/2020, 4:19 PMNir
12/03/2020, 4:19 PMephemient
12/03/2020, 4:21 PMNir
12/03/2020, 4:22 PMephemient
12/03/2020, 4:22 PMNir
12/03/2020, 4:22 PMrocketraman
12/03/2020, 4:23 PMephemient
12/03/2020, 4:23 PMNir
12/03/2020, 4:23 PMNir
12/03/2020, 4:24 PMNir
12/03/2020, 4:25 PMNir
12/03/2020, 4:27 PMKirill Grouchnikov
12/03/2020, 4:28 PMephemient
12/03/2020, 4:28 PMNir
12/03/2020, 4:29 PMNir
12/03/2020, 4:30 PMNir
12/03/2020, 4:32 PMephemient
12/03/2020, 4:35 PMNir
12/03/2020, 4:37 PMrocketraman
12/03/2020, 8:26 PMMath.addExact
already exists as a developer option for the use cases when its important. It can't hurt to try though...rocketraman
12/03/2020, 8:28 PMNir
12/03/2020, 9:28 PMNir
12/03/2020, 9:28 PMrocketraman
12/03/2020, 9:38 PMNir
12/03/2020, 9:43 PMNir
12/03/2020, 9:44 PMrocketraman
12/03/2020, 9:47 PMephemient
12/03/2020, 9:53 PM@Strictfp
... sorta. this would be a more invasive changeNir
12/03/2020, 9:53 PMNir
12/03/2020, 9:54 PMNir
12/03/2020, 9:54 PMNir
12/03/2020, 9:55 PMrocketraman
12/03/2020, 9:55 PMephemient
12/03/2020, 9:56 PM@Strictfp
just sets a flag on the method, this would involve deeper compiler changesephemient
12/03/2020, 9:56 PMephemient
12/03/2020, 9:57 PMrocketraman
12/03/2020, 9:57 PMNir
12/03/2020, 9:57 PMNir
12/03/2020, 9:59 PMephemient
12/03/2020, 9:59 PMephemient
12/03/2020, 9:59 PMNir
12/03/2020, 9:59 PMNir
12/03/2020, 9:59 PMrocketraman
12/03/2020, 9:59 PMNir
12/03/2020, 10:00 PMNir
12/03/2020, 10:00 PMNir
12/03/2020, 10:01 PMNir
12/03/2020, 10:01 PMrocketraman
12/03/2020, 10:01 PMephemient
12/03/2020, 10:02 PMoperator fun Int.plus(Int)
translate to Math.addExact()
instead of the bytecode instruction iadd
ephemient
12/03/2020, 10:03 PMUInt
etc become stable and the standard library is always compiled with the flag offNir
12/03/2020, 10:04 PMephemient
12/03/2020, 10:04 PMNir
12/03/2020, 10:05 PMrocketraman
12/03/2020, 10:06 PMephemient
12/03/2020, 10:06 PMNir
12/03/2020, 10:07 PMNir
12/03/2020, 10:08 PMephemient
12/03/2020, 10:09 PMephemient
12/03/2020, 10:10 PMNir
12/03/2020, 10:10 PMNir
12/03/2020, 10:10 PMNir
12/03/2020, 10:11 PMNir
12/03/2020, 10:11 PMNir
12/03/2020, 10:12 PMephemient
12/03/2020, 10:12 PMephemient
12/03/2020, 10:12 PMNir
12/03/2020, 10:13 PMNir
12/03/2020, 10:14 PMNir
12/03/2020, 10:14 PMephemient
12/03/2020, 10:15 PMNir
12/03/2020, 10:16 PMNir
12/03/2020, 10:16 PMNir
12/03/2020, 10:16 PM