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
Joined October 2009

Tweets

You blocked @shafikyaghmour

Are you sure you want to view these Tweets? Viewing Tweets won't unblock @shafikyaghmour

  1. Pinned Tweet
    9 Jul 2018

    I added a new answer to the "What is the strict aliasing rule?" Stackoverflow question since I felt like the existing ones left a lot of be desired: It is based on my Strict Aliasing write-up:

    Undo
  2. Retweeted
    Feb 1

    Jag tror jag håller mig till C, thank you very much.

    Undo
  3. Retweeted

    If you’re in America and scared about the Wuhan coronavirus, but you haven’t gotten a flu shot and don’t know if your MMR vaccine is up to date, you might just be taking part in a racist social panic. Also go get your shots.

    Show this thread
    Undo
  4. Retweeted
    20 hours ago

    Vaccines are particularly important for measles. Contracting measles weakens immunity to other viruses for years. (This is not common knowledge.) Also, measles really sucks. Had them twice. Do not recommend. 0 out of 10 stars.

    Undo
  5. Retweeted
    Feb 1

    Hey twitter: anyone have good experiences with a more modern TUI library than ncurses?

    Undo
  6. Retweeted
    Feb 1

    Time for a new WAT?! Talk, this opens new possibilities ;)

    Undo
  7. Retweeted
    Undo
  8. Feb 1
    Show this thread
    Undo
  9. Retweeted
    Jan 30

    First of all big h/t to whom I learned this devious example from 🤯 The answer is D, this is undefined behavior but how you might protest, unsigned number don’t have undefined behavior on overflow, do they?

    Show this thread
    Undo
  10. Jan 30

    Okay enough cursed knowledge for the day.

    Undo
  11. Jan 30

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

    Show this thread
    Undo
  12. Jan 30

    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 😭

    Show this thread
    Undo
  13. Retweeted
    Jan 30

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

    Undo
  14. Jan 30

    I provided the C++ specific answer here: The answer here is C the result is int and the the multiplication invokes undefined behavior. The major difference in the answer will be the standard being referred to but the conversions and promotions are close.

    Show this thread
    Undo
  15. Jan 30
    Show this thread
    Undo
  16. Undo
  17. Undo
  18. Undo
  19. Jan 30

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

    Show this thread
    Undo
  20. Jan 30

    If we used constexpr in a context that required a constant expression this would have generated a compile-time diagnostic: Also see “Exploring undefined behavior via constexpr”:

    Show this thread
    Undo
  21. Jan 30

    We could have caught this using a couple of methods. First if we were using UBSan this would have generated a runtime failure:

    Show this thread
    Undo

Loading seems to be taking a while.

Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

    You may also like

    ·