Stroustrup objects to adding Contracts to C++
Walter Bright
newshound2 at digitalmars.com
Thu Nov 12 01:57:50 UTC 2026
Keep in mind that Rust compiles a couple orders of magnitude slower than dmd.
Also, if attribute inference is made optional (for speedy compilations), there's
a risk of different semantics result from debug vs inference builds. Template
instantiations, for example, are sensitive to attributes.
D's DFA analysis uses the most efficient algorithm known at the time. I spent
many, many hours profiling and optimizing it. But still, the compute time goes
up exponentially with the cyclomatic complexity of it. Extending it to the whole
program would make dmd a slug.
Faster computers hasn't helped, because the complexity of code has risen to
match it.
More information about the Digitalmars-d
mailing list