4 ms·
I tried using C++ and Objective C several years ago. Compilation was incredibly slow. Maybe when C++ modules finally arrive things will improve.
by melling 7y ago
I tried using C++ and Objective C several years ago.
Compilation was incredibly slow. Maybe when C++ modules finally arrive things will improve.
- saagarjha 7y agoI take it you haven't tried Swift ;)
- rsynnott 7y agoOr (shudder) Scala. The only time I ever think “oh, this computer is a bit slow” of modern high end laptops is when it comes to Scala. I like the language, but the compiler is painful.
- melling 7y agoYep. I’ve got a 9 year old Scala repo on Github: https://github.com/melling/scala https://github.com/melling/scala I actually like the language but stopped using it because it was so slow to compile. I hear that it has gotten better so I’ve been revisiting it. Worksheets seem to help with development.
- vips7L 7y agoPersonally I find the tooling and documentation around the ecosystem to be very painful. SBT itself is also incredibly slow.
- estsauver 7y agoBloop is making things quite a bit better, but totally one of the hardest parts of the language.
- sinsterizme 7y agoI recently had to use a bit of Scala for some load-testing, I've never had so much trouble doing something seemingly so trivial; in this case, sending a JSON HTTP request. It was honestly a matter of hours. Pretty humbling experience!
- melling 7y agoSure. I’ve been using Swift since 1.0. It’s a great language. I rewrote 50,000 lines of Objective C (and the C++ part) into Swift. http://appstore.com/h4labs http://appstore.com/h4labs
- PunksATawnyFill 7y agoI like it a lot. It's really too bad Android doesn't use it as a native language.
- hermitdev 7y agoI used to maintain a couple of systems that between them were around 4 million lines of C++. Initially, in 2004, it would take about 16 hours to do a clean build. By the time I left that job, due to better hardware, precompiled headers and reduced dependencies, and smaller code for same functionality, clean build was down to 45 minutes. The biggest winner, in my experience, was reducing dependencies in headers. Use forword declarations, etc. Precompiled headers helped a lot on Windows, but less so on Linux for the same code (but it still helped). Incremental builds were fairly snappy, a minute or two (pretty good for a large C++ project).