News for hackers. Stuff that matters.
Re:Go 1.21 by xh-dude on Wednesday June 21, 2023 @05:52PM (#36425169)
Generally it is optimized out.

The fine details resemble the analysis of correctness - all the evidence shows people expect per-iteration semantics with considerable frequency, and don’t rely on per-loop semantics with measurable frequency. But it’s impossible to completely automate that assessment. Likewise, it’s impossible to automatically detect code that will spuriously allocate because of the semantic transition.

There are no comments on this comment yet.