News for hackers. Stuff that matters.
Re:Chris Lattner on Swift and dynamic dispatch by aardvark179 on Sunday December 13, 2015 @04:54PM (#10728136)
I've seen increasing levels of unpredictability at a surface level with all languages as compilers have improved. The difference between a constant expression being folded or not can be easily of the order of 1000x (once it has been propagated through loops etc.). If you've still got the source for your tests then it's well worth looking at the IR emitted and the assembly produced from that to see where those differences are coming from.
Re:Chris Lattner on Swift and dynamic dispatch by mpweiher on Monday December 14, 2015 @12:07PM (#10732255)
Yes, with enough information, sometimes the compiler can compute the result of a loop and then discard the loop itself.

I made sure this wasn't happening.