Comment by grenran
19 hours ago
> Our Swift server codebase has around 30,000 lines of code. It produces a binary of 60 MB, and builds in ten minutes.
Sounds quite slow
19 hours ago
> Our Swift server codebase has around 30,000 lines of code. It produces a binary of 60 MB, and builds in ten minutes.
Sounds quite slow
My guess is 30k is their code, but their dependencies are much larger and 10 mins includes a clean build.
I also wonder if that's developer machine time, or CI build job duration.
Hopefully developer incremental builds are much faster.
Yea, sounds painful. That’s only 50 lines of code per second.
Swift is the slowest on the compilation benchmarks at https://github.com/nordlow/compiler-benchmark.
It is a slow to compile language, and that's my primary complaint about it. If you have basic errors they come back very fast, and code that compiles often works the first time, but still. If not for this quality it would be my clear favorite language.
They should re-write that in Go and get a <10s compile time. And a binary size less than half of that.
And lose the type system, same language as their client apps, the ability to write nice abstractions, etc.
Go is a set of trade offs like every language, and clearly the wrong set for this team.
The trade off for build time here is horrendous and meme worthy. It just shows Swift is not ready for server side. 10m for 30,000 lines of code just causes health issues like high BP for developers.
2 replies →