2 ms·
Because type safety makes a lot of optimizations sound. C and C++ have to use undefined behavior rules to achieve a lot of optimizations that type safe language
by pcwalton 9y ago
Because type safety makes a lot of optimizations sound. C and C++ have to use undefined behavior rules to achieve a lot of optimizations that type safe languages can more easily perform. In fact, the optimization that the article is complaining about is really only a problem because C is not type safe.
- Filligree 9y agoSo that's my point. If C was those few percentage points slower, and died, then we'd have better languages sooner.