Time to move std.experimental.checkedint to std.checkedint ?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Mar 31 03:30:00 UTC 2021
On 3/30/21 1:09 PM, tsbockman wrote:
> On Tuesday, 30 March 2021 at 03:31:05 UTC, Walter Bright wrote:
>> On 3/29/2021 6:29 PM, tsbockman wrote:
>>> On Tuesday, 30 March 2021 at 00:33:13 UTC, Walter Bright wrote:
>>>> Having D generate overflow checks on all adds and multiples will
>>>> immediately make D uncompetitive with C, C++, Rust, Zig, Nim, etc.
>>>
>>> As someone else shared earlier in this thread, Zig already handles
>>> this in pretty much exactly the way I argue for:
>>> https://ziglang.org/documentation/master/#Integer-Overflow
>>
>> I amend my statement to "immediately make D as uncompetitive as Zig is"
>
> So you're now dismissing Zig as slow because its feature set surprised
> you? No real-world data is necessary? No need to understand any of Zig's
> relevant optimizations or options?
Instead of passing the burden of proof back and forth, some evidence
would be welcome. I know nothing about Zig so e.g. I couldn't tell how
accurate its claims are: https://news.ycombinator.com/item?id=21117669
FWIW I toyed with this but don't know what optimization flags zig takes:
https://godbolt.org/z/vKds1c8WY
More information about the Digitalmars-d
mailing list