Time to move std.experimental.checkedint to std.checkedint ?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 31 04:49:52 UTC 2021


On 3/31/21 12:37 AM, tsbockman wrote:
> On Wednesday, 31 March 2021 at 04:08:02 UTC, Andrei Alexandrescu wrote:
>> Not much to write home about. The jumps scale linearly with the number 
>> of primitive operations:
>>
>> https://godbolt.org/z/r3sj1T4hc
>>
>> That's not going to be a speed demon.
> 
> Ideally, in release builds the compiler could loosen up the precision of 
> the traps a bit and combine the overflow checks for short sequences of 
> side-effect free operations.

Yah, was hoping I'd find something like that. Was disappointed. That 
makes their umbrella claim "Zig is faster than C" quite specious.


More information about the Digitalmars-d mailing list