3 ms·
What languages do you come from? What is fast compilation for you? The compilation phase can take hours in C++. Up to a day when compiling huge projects will a
by user5994461 9y ago
What languages do you come from? What is fast compilation for you?
The compilation phase can take hours in C++. Up to a day when compiling huge projects will all the optimization flags.
Live that for some time and it will quickly prove you that you were wrong. Compilation time matters.
- qznc 9y agoFast compilation: less than a second (feels like not waiting at all) Slow compilation: more than a minute (makes to start browsing HN, missing the end, thus losing even more time) To have fast compilation even with big projects is hard. Go, C, and D are usually fast. Scala is usually slow. I care about development builds primarily. The edit-compile-test loop must be really really fast. Optimization flags are irrelevant, because if performance matters you often must have them enabled for development as well.
- pinkythepig 9y agoThis is off topic a bit, but there is a solution for this: > Slow compilation: more than a minute (makes to start browsing HN, missing the end, thus losing even more time) See the thread here: https://askubuntu.com/questions/409611/desktop-notification-when-long-running-commands-complete https://askubuntu.com/questions/409611/desktop-notification-... TL;DR install undistract-me, add 2 lines to bashrc, and you will get a desktop popup when a command that takes longer than 10 seconds to complete is finished. Fedora does this by default on install and I have found it so handy. Kick off a compile etc, then just browse HN/reddit til I get the popup.
- qznc 9y agoYes, this helps a little. As a fish user, I had to write more than two lines [0] though. A second monitor is detrimental, because the notification is too far away sometimes. [0] https://github.com/qznc/dot/blob/master/config/fish/config.fish#L61 https://github.com/qznc/dot/blob/master/config/fish/config.f...
- todd8 9y agoI don’t think people are saying compilation doesn’t matter. Certainly, I would consider C++ to be a language that is at the high performance end of the spectrum. High performance languages, high level languages like C++, Rust, Ada, Haskell, Ocaml, And Swift have relatively long compile times but I would classify them as languages suitable for applications requiring high performance. Go is an interesting exception in that it produces pretty high performance results without long compile times. But you do have a point. Things are so much better now than when I started programming 50 years ago. Machines and languages are so much better. Programming is a dream compared to back then.