GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Alexandre Oliva (lxo@gnusocial.net)'s status on Thursday, 12-Jan-2023 03:52:17 JST Alexandre Oliva Alexandre Oliva
    in reply to
    • 🇺🇦 haxadecimal
    signed integer overflow invokes undefined behavior in both C and C++
    but it's true that there are plenty of unwarranted assumptions in programs. so many would be surprised when int is not 32-bits wide, or when long isn't 64-bits wide...
    In conversation Thursday, 12-Jan-2023 03:52:17 JST from gnusocial.net permalink
    • Embed this notice
      🇺🇦 haxadecimal (brouhaha@mastodon.social)'s status on Thursday, 12-Jan-2023 03:52:19 JST 🇺🇦 haxadecimal 🇺🇦 haxadecimal

      It's unfortunate that the world standardized on integer overflow not giving an error. Error on integer overflow should have been the default behavior, with programmers having to explicitly choose wrapping without overflow when that was desired.
      Of course, that would also have required explicit signed and unsigned arithmetic operations, because overflow (and underflow) differ for signed vs. unsigned.
      Now the no-overflow-error behavior is entrenched in C and C++.

      In conversation Thursday, 12-Jan-2023 03:52:19 JST permalink
      翠星石 repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.