3 ms·
I just pray that modules will one day let developers speed up compile times. Toolchain complexity, size and slowness are the only things that make me use pytho
by jokoon 6y ago
I just pray that modules will one day let developers speed up compile times.
Toolchain complexity, size and slowness are the only things that make me use python.
- lionkor 6y agoclang and MSVC both already (partially) support modules! other than that, gcc is the most c++20-feature-complete compiler
- pjmlp 6y agoMy C++ coding on Windows with VC++ is usually faster than Rust coding, because of incremental compiler, incremental linking and using binary libraries for 3rd party dependencies (DLL/COM). I think when modules mature, it can eventually reach Delphi/.NET like compile speeds.
- jcelerier 6y ago> I just pray that modules will one day let developers speed up compile times. Compiles times are not a problem if you use adequate tools. I have a codebase that heavily uses some large libs such as boost and Qt, here's a video of the edit-compile-run cycle: https://streamable.com/o2g765 https://streamable.com/o2g765 compilation when editing a file takes one-two seconds (measured it at 101 frames in the video in this case, so a bit less than 2 seconds). If anyone's wondering how it's done: - Clang & lld instead of GCC & bfd/gold - Ninja instead of Make (or anything else really) - CMake target_precompile_headers - Code split in dynamic libraries for dev builds There aren't even advanced tricks such as incremental linking mentioned by other comments.