News for hackers. Stuff that matters.
Re:The Swift compiler is slow due to how types are inferred by josephg on Wednesday June 12, 2024 @04:21PM (#40662630)
Yes, rust has an incremental compilation mode that is definitely faster than compiling the whole program from scratch. But linking is still done from scratch every time, and that gets pretty slow with big programs.

I agree that it would be a lot of work to retrofit llvm like this. But personally I think that effort would be well worth it. Maybe the place to start is the linker.

Re:The Swift compiler is slow due to how types are inferred by estebank on Wednesday June 12, 2024 @04:27PM (#40662707)
You're in good company: multiple people want to experiment with taking ownership of the linking and codegen steps to enable this kind of behavior. I would be more than happy to see that happen. I feel that the problem is a project of that magnitude requires a benefactor for a small group of people to work completely dedicated to it for maybe 2 years. Those don't come along often. The alternative is that these projects don't happen, lose steam or take a really long time.
Re:The Swift compiler is slow due to how types are inferred by pjmlp on Saturday June 15, 2024 @02:17PM (#40691574)
Given that VC++ does incremental linking, it seems to be the usual care of having someone caring enough to sort it out.