4 ms·
> You'd imagine that flexibility is what lets you do the things you need to do to go fast, but in many cases, restrictions actually are. Aren't you mixing up f
by vanderZwan 10y ago
> You'd imagine that flexibility is what lets you do the things you need to do to go fast, but in many cases, restrictions actually are.
Aren't you mixing up flexibility for the programmer with flexibility for the compiler?
The more restrictions the programmer has, the more flexibility the compiler has to change instructions and still produce the same results.
- steveklabnik 10y agoSure. But I think a lot of people do, and it colors the way we look at programming languages.
- PeCaN 10y agoI think people tend to think that C lets you go fast because of the tricks it lets you get away with and how “close to the metal” you are. Which is partially correct, but C is also an obnoxiously hard language to optimize because of the flexibility.
- steveklabnik 10y agoExactly.