🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #1072

Re: reassociation and undefined behaviour

#1072
From: Thomas Koenig
Date: Fri, 04 Dec 2026 17:11
15 lines
2435 bytes
EricP <ThatWouldBeTelling@thevillage.com> schrieb:
> On 2026-Dec-04 03:35, David Brown wrote:
>> On 03/12/2026 20:43, MitchAlsup wrote:
>> 
>> So it is useful in the same way that two's complement wrapping for signed arithmetic is useful - it is absolutely absurd mathematically that you can add two positive numbers and get a negative one, there is almost certainly a bug in your program if this happens in general code, but it matches the hardware, is often harmless, and it is occasionally handy.
>
> Why is signed twos's complement wrapping mathematically absurd?

If you add enough apples to a pile, the number of apples becomes
negative (to quote Dan Brown ;-)

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11eus8u$1q9ee$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cpqih$acf5$1@dont-email.me> <86o6b6kaqf.fsf@linuxsc.com> <11ejr5e$nk8$1@reader2.panix.com> <11ejtoe$eoj7$1@dont-email.me> <11el2c1$q43$1@reader2.panix.com> <11emcgn$1k681$1@dont-email.me> <jwvbj74bzm4.fsf-monnier+comp.arch@gnu.org> <11eolqn$2peg5$1@dont-email.me> <2026Dec2.132411@mips.complang.tuwien.ac.at> <11epd07$362ph$1@dont-email.me> <1796263648-5857@newsgrouper.org> <11ergn7$6utu$1@dont-email.me> <2026Dec3.122036@mips.complang.tuwien.ac.at> <1796326998-5857@newsgrouper.org> <11etu0b$1aih9$1@dont-email.me> <TlCQS.44884$7vt4.19168@fx07.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.arch
Subject: Re: reassociation and undefined behaviour
Date: Fri, 4 Dec 2026 17:11:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <11eus8u$1q9ee$1@dont-email.me>
References: <11cpqih$acf5$1@dont-email.me> <86o6b6kaqf.fsf@linuxsc.com>
 <11ejr5e$nk8$1@reader2.panix.com> <11ejtoe$eoj7$1@dont-email.me>
 <11el2c1$q43$1@reader2.panix.com> <11emcgn$1k681$1@dont-email.me>
 <jwvbj74bzm4.fsf-monnier+comp.arch@gnu.org> <11eolqn$2peg5$1@dont-email.me>
 <2026Dec2.132411@mips.complang.tuwien.ac.at>
 <11epd07$362ph$1@dont-email.me> <1796263648-5857@newsgrouper.org>
 <11ergn7$6utu$1@dont-email.me> <2026Dec3.122036@mips.complang.tuwien.ac.at>
 <1796326998-5857@newsgrouper.org> <11etu0b$1aih9$1@dont-email.me>
 <TlCQS.44884$7vt4.19168@fx07.iad>
Injection-Date: Fri, 04 Dec 2026 17:11:59 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1910222"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+GMbZ0dtG2TX8IFTHiGmjopo85dxvJoIM="; posting-host="7e42c20fc01a933000999d616bea872b"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:gERrKumIVZm6S4B5E8ounq5qA5M= sha256:2DpDnfrc7rntQ8rjqbsu2vJbDiLoApvEZ09H38ibtUg=
	sha1:369hK2P95jaZPJ3FoW62rTPajtQ= sha256:X1YvtAZYFkGwreoWaOIdWKOiBu5hkNc1UX2LGho3RlM=