|
|
|
|
|
by tokenrove
3652 days ago
|
|
An underlying point to this article that is still true is that C isn't inherently fast -- you have to work together with the compiler to make sure it generates what you want. Why is this even worth pointing out? Well, in many languages communities (Common Lisp is a good example), the speed argument comes up, and it's pointed out that carefully working with the compiler (declares in all the right places and so on) makes the implementation competitive, and this is often dismissed as "too much work", ignoring the fact that even in C, there's no free lunch. When one recognizes that good performance often requires a dialogue with the compiler, one starts to recognize that a criteria for performant language implementations is not "it's just like C" but rather "it's possible to tell the compiler to make this fast". This makes many alternate languages viable choices for high-performance work (and eliminates some!), at least based on the current state of their implementations. Imagine if as much work had gone into their compilers as has gone into the production C and Fortran compilers of today. |
|