D mentioned on Rust discussions site

NaN divide at by.zero
Sat May 23 09:03:38 UTC 2020


On Saturday, 23 May 2020 at 02:37:23 UTC, Walter Bright wrote:
> On 5/22/2020 2:22 AM, Henrik wrote:
>> do you find the ideas of the restrict keyword and VLA bad, or 
>> only the current implementation in C99?
>
> I've done some experiments with restrict in gcc, examined the 
> generated code, and found the optimizations it does and does 
> not do baffling. I wonder if perhaps it is used so little that 
> nobody really bothered to get the semantics right.

There's a video on YouTube Chandler Caruth about how LLVM 
optimises C++, one of the interesting points he made was that 
const is literately zero help to the compiler for optimisation.

He also said that inlining is the single most important 
optimisation.


More information about the Digitalmars-d mailing list