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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    SuperDicq (superdicq@minidisc.tokyo)'s status on Thursday, 05-Oct-2023 04:51:28 JSTSuperDicqSuperDicq
    in reply to
    • pistolero :thispersondoesnotexist:
    • Dire Sock :verified:
    • Iron Bug

    @iron_bug@friendica.ironbug.org @p@freespeechextremist.com @diresock@freespeechextremist.com "compiling your code to binary" makes it sounds very simple.

    There's often a hundred different ways you can convert C code to Assembly with exactly the same result. However, we tend to want the most optimized solution.

    The hardest part of building compilers is to find the most optimized solution. So it is very understandable for compilers to simply just remove parts of the code that it deems to be unneeded considering the specifications of the language you're trying to write a compiler for.

    In the case of Clang in this example, they are technically correct that skipping the if statement is valid because according to C integer overflow is considered "undefined behavior", which means anything goes, including ignoring it.

    But is it really the correct choice that Clang made here from a user point of view? I don't think so, because they are doing things that the user might not expect. It's probably better if the compiler shows a warning and executes it anyway or something like that.

    In conversationThursday, 05-Oct-2023 04:51:28 JST from minidisc.tokyopermalink
  • 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.