Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
mcclure111's profile
mcc
mcc
mcc
@mcclure111

Tweets

mcc

@mcclure111

glitch girl -- current avatar by @egypturnash -- also at http://mastodon.social/@mcc 

runhello.com
Joined June 2011

Tweets

  • © 2018 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    mcc‏ @mcclure111 Jan 29

    By the way I would like to take this moment to state, for the millionth time, my loathing for programming languages that have logical "and" and "or" operators but no logical "xor" And by this I mean: nearly every single programming language ever divised

    1:33 PM - 29 Jan 2018
    • 6 Retweets
    • 109 Likes
    • LunLun Steve Scaffidi Andrew Roach Alex Thompson James Josh Holland Yozora Ingram Liam Drew
    16 replies 6 retweets 109 likes
      1. New conversation
      2. Justin Falcone‏ @modernserf Jan 29
        Replying to @mcclure111

        As an operator on booleans exclusively, or as a more general control-flow thing? Can you use it in an example?

        1 reply 0 retweets 0 likes
      3. mcc‏ @mcclure111 Jan 29
        Replying to @modernserf

        Code I just wrote if xor(eye == "left", blinking(2)) then "blinking(2)" is a helper function that returns true if the current time in seconds divided by 2 is even. in other words, this does flow control for left-eye vs right-eye rendering paths, but every 2 seconds they switch

        1 reply 0 retweets 0 likes
      4. mcc‏ @mcclure111 Jan 29
        Replying to @mcclure111 @modernserf

        in general, what i want is something that has semantics as reasonably close to "or" and "and" as possible, providing exclusive-or, which i don't have to toss in as a helper function in random projects

        1 reply 0 retweets 0 likes
      5. mcc‏ @mcclure111 Jan 29
        Replying to @mcclure111 @modernserf

        i want it to either typecheck-require its inputs be of type bool, or coerce its inputs to bool, depending on whatever "and" and "or" do in the host language

        1 reply 0 retweets 0 likes
      6. mcc‏ @mcclure111 Jan 29
        Replying to @mcclure111 @modernserf

        i implemented this as local function xor(a, b) return (a and not b) or (b and not a) end but i could have done so as return toboolean(a) != toboolean(b)

        0 replies 0 retweets 1 like
      7. End of conversation
      1. New conversation
      2. hedge.o‏ @hedgeberg Jan 29
        Replying to @mcclure111

        Ok like im sure this is a stupid question but I've only used like 3 programming languages ever, is there a difference between "regular xor" and "logical xor"?

        1 reply 0 retweets 1 like
      3. mcc‏ @mcclure111 Jan 29
        Replying to @hedgeberg

        "logical xor" is what i would refer to as "regular xor" There are only two xors, "logical xor" and "bitwise xor" Most languages offer either only bitwise xor, or neither form of xor

        2 replies 0 retweets 0 likes
      4. NaN‏ @co60ca Jan 29
        Replying to @mcclure111 @hedgeberg

        isn't logical xor just !=

        1 reply 0 retweets 1 like
      5. mcc‏ @mcclure111 Jan 29
        Replying to @co60ca @hedgeberg

        logical xor is equivalent to toboolean(x) != toboolean(y) but is not equivalent to !=

        1 reply 0 retweets 0 likes
      6. NaN‏ @co60ca Jan 29
        Replying to @mcclure111 @hedgeberg

        ah okay. If you have bool types tho it should be okay to do that.

        2 replies 0 retweets 0 likes
      7. mcc‏ @mcclure111 Jan 29
        Replying to @co60ca @hedgeberg

        however, i would prefer an operator for readability, given "xor" communicates something specific and "toboolean(x) != toboolean(y)" might require a moment' sthought

        0 replies 0 retweets 3 likes
      8. End of conversation
      1. New conversation
      2. London (The Littlest Hobo)‏ @eeeeradicator Jan 29
        Replying to @mcclure111

        is this something that comes up a lot in the year of our lord 2018

        1 reply 0 retweets 0 likes
      3. mcc‏ @mcclure111 Jan 29
        Replying to @eeeeradicator

        WELL IT DOES A LOT FOR ME BUT APPARENTLY I AM THE ONLY PERSON ON EARTH WHO COMPUTES EXPRESSIONS USING LOGICAL XOR

        3 replies 0 retweets 5 likes
      4. Anna Harren‏ @garblefart Jan 29
        Replying to @mcclure111 @eeeeradicator

        to level the playing field, implement all of your logic out of NOTs and ORs

        2 replies 0 retweets 0 likes
      5. mcc‏ @mcclure111 Jan 29
        Replying to @garblefart @eeeeradicator

        NAND should be enough for anybody

        0 replies 1 retweet 2 likes
      6. End of conversation
      1. New conversation
      2. Niels De Graef‏ @NielsDeGraef Jan 29
        Replying to @mcclure111

        Normally, you can use the bitwise xor operator ^ in C and @rustlang

        1 reply 0 retweets 0 likes
      3. mcc‏ @mcclure111 Jan 29
        Replying to @NielsDeGraef @rustlang

        It does not coerce to bool, so if you want logical XOR and you say 3 ^ 8 It will not do what you expected

        1 reply 0 retweets 0 likes
      4. Niels De Graef‏ @NielsDeGraef Jan 29
        Replying to @mcclure111 @rustlang

        For C, that's certainly true. However, your example won't work in Rust, as it will result in a numerical type such as i32 (and not in a bool).

        1 reply 0 retweets 0 likes
      5. mcc‏ @mcclure111 Jan 29
        Replying to @NielsDeGraef @rustlang

        Okay. So what you are saying is that Rust has the Java behavior and ^ will perform bitwise XOR when its arguments are integers and logical XOR when its arguments are booleans?

        1 reply 0 retweets 0 likes
      6. Niels De Graef‏ @NielsDeGraef Jan 29
        Replying to @mcclure111 @rustlang

        Yes :-) You can quickly check this yourself on https://play.rust-lang.org/ 

        2 replies 0 retweets 1 like
      7. mcc‏ @mcclure111 Jan 29
        Replying to @NielsDeGraef @rustlang

        That's useful to know, thanks very much.

        1 reply 0 retweets 0 likes
      8. Niels De Graef‏ @NielsDeGraef Jan 29
        Replying to @mcclure111 @rustlang

        Always glad to help!

        0 replies 0 retweets 0 likes
      9. End of conversation

    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.

      Promoted Tweet

      false

      • © 2018 Twitter
      • About
      • Help Center
      • Terms
      • Privacy policy
      • Cookies
      • Ads info