3 ms·
Let me guess, you are a web dev? We have large C++ code base, and our build times are super slow. With beefy machines, it is tolerable. With laptops, it takes
by theamk 5y ago
Let me guess, you are a web dev?
We have large C++ code base, and our build times are super slow. With beefy machines, it is tolerable. With laptops, it takes hours.
And yes, writing this in C would decrease our compilation times.. But would make the development and debugging times much longer due to the lack of safe abstractions.
- mbrodersen 5y agoI use VSCode remote SSH to maintain a very large C++ code base running on my 20 core office PC. It works perfectly. No powerful laptop required. Highly recommended.
- theamk 4y agoA lot of people are doing the same a my org. Unfortunately, we have a number of visualization tools, and while various remote desktop technologies work, they are still not as good as running on a local PC. Not to mention that sometimes you are in the field, and there is simply no good internet around. But this happens much less now ever since COVID.
- antisthenes 5y agoSo you listed the one use case that I agreed with and...what?
- theamk 5y agoYou might want to express yourself clearer then. You pretty categorically said "You don't", and said "compiling kernels 24/7", which is something no one does. The implied message there is that the vast majority of people don't need lots of CPU, and there is some "better software" which can eliminate CPU requirement for this. Please correct me if I misunderstood your point. My reply was an anecdote that when working on C++ codebase, the beefy machines are required. The implied message was that a sizeable fraction of people _do_ need the lots of CPU, and no amount of "better software", whatever it is, can help. Given the website we are on (HN), there is a large number of people reading your message who routinely actually use languages with long compile times. Therefore, your statement of "You don't" is not correct, I really do need it, despite not encoding video or compiling kernels on my local machine. Hopefully this makes it clearer for you.
- hackerfromthefu 5y agoWell that better software in this case was called Delphi :D blistering fast compile times and equivalent runtime performance, just slightly more verbose syntax. Pretty much enough power to do what you need for anything.
- theamk 5y agoBeen there, did that, nope. I am not going to writing manual destructors again. This is not a desktop app, this is a data processing app with pretty complex algorithms. For example, we actually have to make a decision re scoped_ptr (non-refcounted) vs unique_ptr (refcounted) object, use arena allocators, and so on.
- adrianN 5y agoWhew, how big is your codebase and what kind of code is it? The biggest C++ project I worked on took about thirty minutes to compile from scratch on a 12 core Macbook. If you didn't need to recompile dependencies the build only took ten minutes or so, a good chunk of which is linking time.