Skip to content

Atomics docs should reference the C++11 standard instead of a GCC wiki page. #22064

Closed

Description

@mahkoh

Activity

  1. steveklabnik commented on Feb 8, 2015

    @steveklabnik
    Contributor

    Why?

  2. tomjakubowski commented on Feb 8, 2015

    @tomjakubowski
    Contributor

    Some reasons include:

    • The GCC wiki's content is transient and totally out of our control. Somebody could update the wiki with wrong information and mislead Rust documentation readers.
    • The text of the C++11 standard is guaranteed to have a correct description of C++11 atomics, by definition.
    • The pertinent sections of the standard can probably be quoted directly in our docs under fair use.
  3. petrochenkov commented on Feb 8, 2015

    @petrochenkov
    Contributor

    Why 11 and not 14? With 14 our quotes will contain the latest editorial changes! :D

  4. steveklabnik commented on Feb 8, 2015

    @steveklabnik
    Contributor

    Are either of those standards the definitive documentation for what we are doing? I'm not opposed to this, just trying to gain some more context here.

  5. tomjakubowski commented on Feb 8, 2015

    @tomjakubowski
    Contributor

    I believe so. Rust uses LLVM's atomic intrinsic functions which correspond directly to C++11's atomic operations. See the LLVM language reference and a more informal description.

    If these descriptions aren’t precise enough, check [the Java and C++11] specs (see spec references in the atomics guide).

  6. mahkoh commented on Feb 8, 2015

    @mahkoh
    ContributorAuthor

    Why?

    The GCC wiki is incomplete. I read it and then ten other websites that tried to provide an informal explanation of C++11 atomic operations before I looked at the standard itself and found a whole paragraph dedicated to my question.

  7. added 4 commits that reference this issue on Feb 13, 2015
    114301f
    b61d2bb
    c242922
  8. added a commit that references this issue on Feb 15, 2015
    828a864
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions