Hi
I have started learning nim and so far I am liking it a lot and thinking about porting a medium sized project to nim. I expect it to be around 50k lines of code without counting in dependencies that could double that.
I want to know how long does it take to compile such a project on a not beefy laptop. knowing from previous experience how I tend to test my project very so often every time I make small changes. I am afraid my development time would be many times higher than if done using python or php just because of compilation time.
I have read that nim transpiler to c re-transcribes the whole project every time I compile it and doesn't support incremental build. It can even be too taxing on the hard drive.
so my question is. should I expect higher re-compilation times than 2s ?
cloc deps/znak
537 text files.
516 unique files.
28 files ignored.
github.com/AlDanial/cloc v 2.08 T=0.35 s (1463.8 files/s, 457619.5 lines/s)
-----------------------------------------------------------------------------------
Language files blank comment code
-----------------------------------------------------------------------------------
C 178 7987 10536 65281
C/C++ Header 174 4749 10224 38900
Nim 66 1143 539 7674
C++ 17 495 276 3227
Markdown 19 887 0 2349
CMake 5 225 224 1469
JavaScript 12 20 42 942
make 13 137 33 750
m4 1 83 45 697
Bourne Shell 4 69 90 482
Gradle 3 21 12 482
Windows Resource File 5 15 0 190
Python 1 33 45 167
HTML 2 22 2 166
Java 1 30 3 123
Starlark 1 20 2 122
GLSL 4 12 0 83
DOS Batch 1 24 2 74
XML 1 0 0 21
Properties 3 3 26 19
JSON 5 0 0 16
-----------------------------------------------------------------------------------
SUM: 516 15975 22101 123234
-----------------------------------------------------------------------------------
first run with empty nimcache:
nim r deps/znak/znak build web 27,89s user 4,00s system 631% cpu 5,050 total second run without changes:
nim r deps/znak/znak build web 1,66s user 0,15s system 103% cpu 1,753 total
Target is emscripten wasm build.