News for hackers. Stuff that matters.
Re:Intel Haskell Research Compiler by jl6 on Thursday April 13, 2017 @03:24PM (#14110151)
Is there any chance they might miss an opportunity for optimisation by throwing out the sugar, thereby discarding information about the prgrammer's intent?

Or does the sugar carry no such information?

Re:Intel Haskell Research Compiler by tikhonj on Thursday April 13, 2017 @08:47PM (#14111932)
There is, but it's pretty low because language extensions are designed with Core in mind and the desugaring tends to be relatively straightforward. In most cases, the semantics of the "sugar" is defined in terms of a simpler subset of the language, so there is very little the compiler could do differently.

More importantly, any modern compiler is very far from the producing the most optimal possible programs. Overall performance could be improved pretty much anywhere, and the tradeoffs involved make operating on the "whole" language a far lower priority than pretty much anything else.