
18 Oct
2020
18 Oct
'20
3:24 p.m.
On Sun, 18 Oct 2020, Hécate wrote:
In conclusion, leaving things to the optimiser that could be trivially made fast every time seems needlessly risky.
`seq` is still a hack. A strict 'sum' and 'product' would still fail on a lazy accumulator type, say a lazy pair type. If at all, sum and product should be deepseq-strict. So currently, letting the optimiser make a lazy sum strict is still the smaller hack.