Live data from Hacker News

Viewing profile — AaronBallman

AaronBallman

HN member
Joined
Tue, Apr 07, 2020, 9:50 PM UTC
HN karma
166
Public activity
45 items

About AaronBallman

No profile information was provided.

Recent public activity

  1. story
  2. story
  3. comment
    Comment #22882241

    I could imagine misguided readings of some coding standard advice that would lead to that interpretation, but it's still not an interpretation that makes sense to me. Implementatio…

  4. comment
    Comment #22876425

    Ah! No, those just predate my joining the committee and haven't really come up since they were presented. Basically, every paper that gets submitted by an author will get some amou…

  5. comment
    Comment #22876405

    I don't think it's a myth so much as a misunderstanding of terminology. If an implementation defines some undefined behavior from the standard, it stops being undefined behavior at…

  6. comment
    Comment #22871831

    I think this is correct, assuming that locale is supported by the implementation and wchar_t is wide enough, but I am by no means an expert on character encodings.

  7. comment
    Comment #22871762

    > 1. Will the Apple's Blocks extension, which allows creation of Closures and Lambda functions, be included in C2X? We haven't seen a proposal to add them to C2x, yet. However, the…

  8. comment
    Comment #22871572

    I must be remembering incorrectly then, thank you!

  9. comment
    Comment #22871370

    If that macro is defined, then wchar_t is able to represent every character from the Unicode required character set with the same value as the short code for that character. Which …

  10. comment
    Comment #22871015

    I don't think the book covers strict aliasing, at least not in detail.

  11. comment
    Comment #22870904

    Not off the top of my head, but as an example along similar lines, when talking about whether we could realistically specify twos complement integer representations for C2x, we had…

  12. comment
    Comment #22870631

    When the committee considers proposals, we do consider the implementation burden of the proposal as part of the feature. If parts of the proposal would be an undue burden for an im…

  13. comment
    Comment #22869665

    Not really -- vendors are free to ignore newer releases of the standard that do not meet their customers needs and the committee can't do much about it. However, as a user, you can…

  14. comment
    Comment #22869631

    You couldn't in that parameter order. However, you could do this: int f(size_t n, int a[n][n]) { return a[n-1][n-1]; } ( https://godbolt.org/z/DV9c-C ) Btw, that definition was obs…

  15. comment
    Comment #22869589

    If you're interested in the final TR, I would imagine we'd list it on that page you linked. If you're interested in following the drafts before it becomes published, you'd fine the…

  16. comment
    Comment #22869344

    > Alternatively, please keep it going for a few hours if you would be able to be so generous with your time! We're remaining active while there are still people asking questions, s…

  17. comment
    Comment #22869167

    I'd ask them if they really meant "impossible" or just "harder than I wish it was". I've typically found that the tradeoffs between security, performance, and implementation effort…

  18. comment
    Comment #22868844

    The MISRA committee is a separate organization from the C standards committee, but there is overlap between the two groups and an official liaison process for the committees to col…

  19. comment
    Comment #22868522

    I'd put it this way -- as someone who writes both C and C++ and has for a long while, I find that the difference between "best practice" C89 and C17 code is not as wide as the diff…

  20. comment
    Comment #22868338

    There's not an official collaboration between the committee and the kernel developers (that I'm aware of), but we do have people on the committee who need to support Linux kernel d…

  21. comment
    Comment #22867919

    The usual argument is: once you've verified some piece of code is correct, changing it (even when there should be no functional change in the semantics) carries risk. Some customer…

  22. comment
    Comment #22867854

    I think that may be inaccurate -- IIRC, in C, you can do type punning via a union but not memcpy, and in C++ you can do type punning via memcpy but not a union and this incompatibi…

  23. comment
    Comment #22867678

    We've started doing some things in this area, but I don't think the committee would abandon legacy code bases entirely. Instead, we try to make a migration path for code bases. For…

  24. comment
    Comment #22867567

    > In general, how is one supposed to approach wg14 with ideas or need for clarification on the standard's wording / interpretation? I'm currently working on an update to the commit…

  25. comment
    Comment #22867485

    > Does the committee have any plans to document the rationale for each kind of Undefined Behavior? In the C99 timeframe, we had a rationale document that was separately maintained.…