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:13PM (#40662542)
I tried to fix a bug in Signal a few years ago. One part of the code took so long to do type inference on my poor old Intel MacBook that the Swift compiler errored out. I suppose waiting was out of the question, and I needed a faster computer to be able to compile the program.

That was pretty horrifying. I’ve never seen a compiler that errors nondeterministically based on how fast your cpu is. Whatever design choices in the compiler team led to that moment were terrible.

Re:The Swift compiler is slow due to how types are inferred by ChrisMarshallNY on Wednesday June 12, 2024 @04:21PM (#40662632)
That sounds like Web sites, designed by designers with massive monitors.

The tools team probably had ultra-fast Macs, and never encountered that.

It definitely sounds like a bug in the toolset. I hope that it was reported.