We should deprecate -release

Walter Bright newshound2 at digitalmars.com
Sat Jul 13 05:35:53 UTC 2024


Why -release is the way it is:

I got sick of journalists running benchmarks using compilers they weren't 
familiar with. They never spent any effort learning what the switches were.

The big vendors would wine and dine them and show them exactly how to run their 
compilers. With mine, they never talked to me. I wouldn't even know they did a 
review until it hit the news stand.

They'd use the wrong switches, the code would run slow, and I'd get a bad review.

The -release switch means "make the fastest code". Make it easy for the 
journalists to do the right thing.

Nobody new to D will know to use -O -boundscheck-safeonly -inline. They'll just 
get a "D is slow" result and move on.


More information about the Digitalmars-d mailing list