News for hackers. Stuff that matters.
Re:Swift Static Linux SDK by coldtea on Tuesday June 11, 2024 @05:19PM (#40651629)
Why, would you care if it's a full second or even 5 seconds?

Go hyped their compilation speed a lot in its early years, but unless it's C++ templates level slugginess it's not like it's that big of deal.

Re:Swift Static Linux SDK by square_usual on Tuesday June 11, 2024 @05:27PM (#40651720)
Compiling fast has ripple effects throughout your workflow. Having your iteration time go from 1s to 5s is a massive difference: it can mean you break out of the flow state when you restart your server to test your code.
Re:Swift Static Linux SDK by manmal on Tuesday June 11, 2024 @06:17PM (#40652274)
As someone dealing with Swift everyday (and, before that, faster langs like Elixir and Typescript), I can only agree. Sometimes my incremental builds take 20-30 seconds and it feels like a huge toll. Waiting on the CI (which is a weak machine) is up to 25 minutes until the test suite has passed - a large chunk of that being compilation time. Releases take 5-10 minutes.

I really like Swift, but I’d highly appreciate faster compilation times.

Re:Swift Static Linux SDK by plorkyeran on Tuesday June 11, 2024 @07:36PM (#40652909)
Swift compilation is slower than C++.
Re:Swift Static Linux SDK by coldtea on Tuesday June 11, 2024 @08:21PM (#40653172)
C++ with heavy template use or C++ as glorified C-with-classes?
Re:Swift Static Linux SDK by plorkyeran on Tuesday June 11, 2024 @10:12PM (#40653797)
C++ with heavy template use.
Re:Swift Static Linux SDK by iainmerrick on Tuesday June 11, 2024 @07:03PM (#40652670)
Once you use a language where compile times are essentially invisible, it’s hard to go back.