News for hackers. Stuff that matters.
Re:No sane compiler would optimize atomics (2015) by chrisseaton on Sunday July 11, 2021 @07:16PM (#27805309)
> It's not insane to expect the future to bear some kind of resemblance to the past without some contract to guarantee it, is it?

Well you used the example of a car and I think it would be insane to use a component in a car when the manufacturer tells you it's not designed to do that and I can't possibly guarantee that's going to work just because you think you tested it and it seemed fine.

Re:No sane compiler would optimize atomics (2015) by dataflow on Sunday July 11, 2021 @07:20PM (#27805344)
Sigh. What about my subsequent example? About walking outside with a bodyguard despite the lack of a guarantee you'd stay safe?
Re:No sane compiler would optimize atomics (2015) by chrisseaton on Sunday July 11, 2021 @07:22PM (#27805349)
I don't get why you're sighing at me when I'm answering your questions politely. If you don't like my replies feel free to stop asking me questions.

Your example about going outside isn't covered by a technical specification with a long list of guarantees formally agreed between two parties so I don't really see how it's comparable.

Re:No sane compiler would optimize atomics (2015) by dataflow on Sunday July 11, 2021 @07:33PM (#27805410)
The question was about whether the original designer deserves any blame for making a sudden change like that. Not about whether the manufacturer is at fault vs. the user vs. a bunch of other middlemen that weren't in the story. That twist just derailed the discussion, and it's frustrating to discuss something when the other person is so keen to avoid the crux of the question. So much so that you didn't even try to address everything else I wrote.
Re:No sane compiler would optimize atomics (2015) by chrisseaton on Sunday July 11, 2021 @07:46PM (#27805485)
> The question was about whether the original designer deserves any blame for making a sudden change like that.

I don't believe so - as long as there is a version change and it's documented in the change log, which I aim to do with optimisations I write.

If you're using undocumented apparent behaviour, please check the change log when upgrading, or ask us to document the behaviour. But as already described, we may not be able to guarantee what you want while keeping other things you depend on like performance!