• Home
  • About

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
  • 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
By using Twitter’s services you agree to our Cookie Use and Data Transfer outside the EU. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
brentsimmons's profile
Brent Simmons
Brent Simmons
Brent Simmons
@brentsimmons

Brent Simmons

@brentsimmons

Omni. The Record. Secret projects.

Joined January 2007
  • © 2016 Twitter
  • About
  • Help
  • Terms
  • Privacy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @

Retweet this to your followers?

Optional comment for Retweet
 
 

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
140

Are you sure you want to delete this Tweet?

Promote this Tweet

Block

  • Add a location to your Tweets

    When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always have the option to delete your location history. Learn more

    Profile summary

    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.

    Preview

    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

     

    Buy Now

    Hmm... Something went wrong. Please try again.

    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.

    Previous Tweet
    1. Brent Simmons ‏@brentsimmons 2 Aug 2015

      @eridius It just has to check once that EmailMessage is a NodeRepresentedObject. It shouldn't have to check for each item.

      0 replies 0 retweets 0 likes
    2. Kevin Ballard ‏@eridius 2 Aug 2015

      @brentsimmons It’s not a type-check. The in-memory representation is different. It has to allocate a new array with the new values.

      0 replies 1 retweet 8 likes
    3. Brent Simmons ‏@brentsimmons 2 Aug 2015

      @eridius There may be plenty of benefits to that — but it makes app-writing a little more difficult.

      0 replies 0 retweets 1 like
    4. Kevin Ballard ‏@eridius 2 Aug 2015

      @brentsimmons It seems to me the occasional `foo.map({$0})` is a small price to pay for avoiding hidden performance gotchas.

      0 replies 0 retweets 1 like
    5. Brent Simmons ‏@brentsimmons 2 Aug 2015

      @eridius I’d argue that, instead, there shouldn’t be a hidden performance gotcha.

      0 replies 0 retweets 4 likes
    6. Kevin Ballard ‏@eridius 2 Aug 2015

      @brentsimmons That would be nice, but the only way to solve this without a new array basically requires all protocols to use message-passing

      0 replies 0 retweets 1 like
    7. Brent Simmons ‏@brentsimmons 2 Aug 2015

      @eridius Works for me!

      0 replies 0 retweets 2 likes
    8. Kevin Ballard ‏@eridius 2 Aug 2015

      @brentsimmons Message passing is a performance gotcha :P

      0 replies 0 retweets 1 like
    9. Brent Simmons ‏@brentsimmons 2 Aug 2015

      @eridius But barely. We can write fast apps in Objective-C.

      0 replies 0 retweets 2 likes
    10. Kevin Ballard ‏@eridius 2 Aug 2015

      @brentsimmons Yeah, but you should be able to write faster ones in Swift.

      0 replies 0 retweets 0 likes
      Brent Simmons ‏@brentsimmons 2 Aug 2015

      @eridius Except for when I have to make an exact copy of an array to satisfy the type system.

      • Likes 6
      • Mindaugas iKyle Michael Tsai Guy English Randy Luecke David Owens II
      6:51 PM - 2 Aug 2015
      0 replies 0 retweets 6 likes
        1. Pierre Lebeaupin  ✏ ‏@PierreLebeaupin 3 Aug 2015

          @brentsimmons @eridius Swift arrays are value types, right? So you would be creating a copy even if you returned the same one.

          0 replies 0 retweets 0 likes
        2. View other replies
        3. Brent Simmons ‏@brentsimmons 3 Aug 2015

          @PierreLebeaupin @eridius Fine with me. So it should have known how to handle this itself, without the weird map.

          0 replies 0 retweets 0 likes
        4. View other replies
        5. Kevin Ballard ‏@eridius 3 Aug 2015

          @brentsimmons @PierreLebeaupin `foo as bar` should never be expensive. More importantly, silent coercions should never be expensive either.

          0 replies 0 retweets 1 like
        1. Kyle S. ‏@optshiftk 3 Aug 2015

          @brentsimmons @eridius Think of it this way: in C, `int foo() { int i = 12; return i; }` creates a copy of i and returns it.

          0 replies 0 retweets 0 likes
        2. Kyle S. ‏@optshiftk 3 Aug 2015

          @brentsimmons @eridius (Perhaps a struct-returning function would be a better example.)

          0 replies 0 retweets 0 likes
        1. Callionica ‏@Callionica 2 Aug 2015

          @brentsimmons The elements in the array are the same, but the array is not. Some types storable in [NRO] can't be put in [EM] @eridius

          0 replies 0 retweets 0 likes
        2. View other replies
        3. Kevin Ballard ‏@eridius 2 Aug 2015

          @Callionica @brentsimmons That's irrelevant. Arrays in Swift are value types, not reference types, so mutation doesn't affect it.

          0 replies 0 retweets 0 likes
        4. Callionica ‏@Callionica 2 Aug 2015

          @eridius Swift array has state-changing members so type-checker complains, no? @brentsimmons

          0 replies 0 retweets 0 likes
        5. Kevin Ballard ‏@eridius 3 Aug 2015

          @Callionica @brentsimmons Array is a value type so mutations to a `[Foo]` can't possibly be visible in a `[Bar]` as they are distinct values

          0 replies 0 retweets 0 likes

      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

        • © 2016 Twitter
        • About
        • Help
        • Terms
        • Privacy
        • Cookies
        • Ads info