Shafik Yaghmour

@shafikyaghmour

Compiler Dev(LLDB) interests: C++, C, compilers and undefined behavior. Stackoverflow contributor in C++, C, Martial Artist, Book Worm and Dad. Ex- he/him

Cupertino, CA
Vrijeme pridruživanja: listopad 2009.

Medijski sadržaj

  1. prije 8 sati

    So someone was saying that after seeing this C++: [[]]([]()[[]]{}={})(); from here: said that they would they “would stick to C, thank you very much”. I have to wonder have then seen IOCCC before: 🤔

  2. 31. sij
    Odgovor korisniku/ci
  3. 31. sij

    I know I am still wearing my Santa hat *sigh* What’s next ... 🤔

    Prikaži ovu nit
  4. 31. sij

    Who would have thought there were over three thousand tweeps who want: - Cursed programming tweets - awful^H^H^H^H^H truthfu^H^H^H^H^H^Hawful programming memes - and more, much more 😭

    Prikaži ovu nit
  5. 31. sij

    Also see “Why must a short be converted to an int before arithmetic operations in C and C++”

    Prikaži ovu nit
  6. 31. sij

    Alternatively casting one of the operands to a larger unsigned type would have results in both operands becoming unsigned e.g. auto z = static_cast<unsigned>(x)*y; Also see the following godbolt:

    Prikaži ovu nit
  7. 31. sij

    We also need [conv.rank]p1.3 to tell us that the rank of short int is < int Which finally tells us that both operands will be converted to int and we end up with signed integer overflow which is undefined behavior, see [expr.pre]p4

    Prikaži ovu nit
  8. 31. sij

    and [expr.arith.conv] Then we hit the integral promotions [expr.arith.conv]p1.5 and then [conv.prom]p1

    Prikaži ovu nit
  9. 31. sij

    This is an unfortunate result of the Usual Arithmetic Conversions: Before performing binary operations we need to bring the operands to a common type via the Usual Arithmetic Conversions. See [expr.mul]p2

    Prikaži ovu nit
  10. 30. sij

    tfw it is the orange site ... but their talking about your paper *sigh*:

  11. 30. sij
    Odgovor korisnicima
  12. 28. sij
    Odgovor korisniku/ci

    Wait, AFAICT this covers it: and I don't see an exception, is there a DR I am missing?

  13. 27. sij

    Rereading “The Design and Evolution of C++” ((X*)0)->f() Used to be used to simulate static member functions 😱🤯 Defect Report 315 tells us that indirection through a nullptr to access a static member function is not undefined behavior:

  14. 27. sij

    Rereading “The Design and Evolution of C++” = 0 syntax was used for pure virtual function in order to avoid having to add a new keyword such as pure or abstract because the feature was added close to the next release.

  15. 26. sij

    Rereading “The Design and Evolution of C++” Ran into this quote. “Multiple Inheritance is like a parachute. You don’t often need it, but when you do, you really need it.” - Grady Booch

  16. 26. sij

    I have been reading “Rediscovery: Science Fiction by Women (1958 to 1963)”: I am about halfway through, some stories show their age but they are mostly quite good!

  17. 26. sij

    If you like the original tweet, I will CC you when I post the answer. See this for more information on LP64:

    Prikaži ovu nit
  18. 25. sij

    Am I doing this right? life

  19. 23. sij
    Odgovor korisniku/ci

    Chitty chitty chat

  20. 23. sij

    The Anonymous Companies That Buy Up Homes: In tight markets having tons of homes sit empty can only make things worse. Reducing supply at the same time driving up prices. Potential artificial crisis if a big investor tries to pull out all at once.

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

    Možda bi vam se svidjelo i ovo:

    ·