4 ms·
And it would be actually a sensible thing to write a C compiler in Python. C is not a very nice language to write complicated programs in --- and compilers don
by eru 17y ago
And it would be actually a sensible thing to write a C compiler in Python. C is not a very nice language to write complicated programs in --- and compilers don't need C's speed. They just need to produce (correct and) fast code, but they do not need to run bleedingly fast.
- smallblacksun 17y agoUm, what? You want your compilers to be very fast, otherwise you end up wasting a lot of developer time (and thus money) waiting for compilation.
- j_baker 17y agoEspecially for C. It just takes too long to compile.
- silentbicycle 17y agoC++ is far, far worse.
- barrkel 17y agoYou got that backwards. For most development, you want a fast compiler but you don't care so much about the runtime speed, so long as its correct. Also, the more optimizing the compiler, the higher the probability that you'll hit bugs, affecting correctness.
- eru 17y agoThen use a C-interpreter for development.