Skip to content
  • Home Home Home, current page.
  • Moments Moments Moments, current page.

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
warrenm's profile
Warren Moore
Warren Moore
Warren Moore
@warrenm

Tweets

Warren Moore

@warrenm

Software engineer specializing in mobile graphics and augmented reality. Author of “Metal by Example”

San Francisco, CA
metalbyexample.com
Joined April 2008

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.

    1. Andre Weissflog‏ @FlohOfWoe Jul 3

      hrmpf, the MacOS/iOS NSString class is UTF-16, and there I was hoping that Windows is the only platform with broken unicode support 🙄

      1 reply 0 retweets 4 likes
    2. Matías N. Goldberg‏ @matiasgoldberg Jul 3
      Replying to @FlohOfWoe

      You mean internally? Because it does accept in/out utf8 interfaces to set/grab the data

      1 reply 0 retweets 0 likes
    3. Andre Weissflog‏ @FlohOfWoe Jul 3
      Replying to @matiasgoldberg

      Yes, but also the API is 'sort-of' messed up UTF-16, e.g. length is returned as number of "code units" (number of unichars) and characterAtIndex() returns a single unichar, but unichar is uint16_t, so some characters return 2 code units. Same mess as on Windows.

      2 replies 0 retweets 0 likes
    4. Andre Weissflog‏ @FlohOfWoe Jul 3
      Replying to @FlohOfWoe @matiasgoldberg

      I bet when they created NSString, they thought that a simple 16-bit-per-character encoding ought-to-be-enough-for-everybody, and later they hacked this into UTF-16. I would've preferred ASCII hacked into UTF-8 instead ;)

      1 reply 0 retweets 1 like
    5. Andre Weissflog‏ @FlohOfWoe Jul 3
      Replying to @FlohOfWoe @matiasgoldberg

      ...what I'd need is a simple way to loop over UTF-32 characters in the NSString, I'm aware that I can decode into an NSData object with any encoding, but that's a bit awkward :D

      2 replies 0 retweets 0 likes
    6. Warren Moore‏ @warrenm Jul 3
      Replying to @FlohOfWoe @matiasgoldberg

      You can read more about the history of NSString here: https://www.objc.io/issues/9-strings/unicode/ …, but generally speaking, a list of code points (≠ characters) isn’t what you want, regardless of encoding. Unless you’re writing your own shaping/layout engine, which is a Very Hard Problem.

      2 replies 0 retweets 1 like
    7. Matías N. Goldberg‏ @matiasgoldberg Jul 3
      Replying to @warrenm @FlohOfWoe

      Well, he's doing UI so very likely he actually wants code units

      1 reply 0 retweets 0 likes
    8. Warren Moore‏ @warrenm Jul 3
      Replying to @matiasgoldberg @FlohOfWoe

      What do you do with code points once you get them? If the answer is “index into an atlas or glyph array,” you’re Doing It Wrong.

      1 reply 0 retweets 1 like
    9. Matías N. Goldberg‏ @matiasgoldberg Jul 3
      Replying to @warrenm @FlohOfWoe

      You mean because of combining characters?

      1 reply 0 retweets 0 likes
      Warren Moore‏ @warrenm Jul 3
      Replying to @matiasgoldberg @FlohOfWoe

      Combining characters are but one issue in complex text layout. https://en.m.wikipedia.org/wiki/Complex_text_layout …

      9:20 PM - 3 Jul 2018
      • 1 Like
      • Tim Kane 🏳️‍🌈
      1 reply 0 retweets 1 like
        1. New conversation
        2. Matías N. Goldberg‏ @matiasgoldberg Jul 3
          Replying to @warrenm @FlohOfWoe

          Ah right, I forgot. I rely on HarfBuzz for that

          1 reply 0 retweets 0 likes
        3. Warren Moore‏ @warrenm Jul 3
          Replying to @matiasgoldberg @FlohOfWoe

          And what do you give to HarfBuzz to get a sequence of glyph shapes? It doesn’t require enumerating code points manually.

          1 reply 0 retweets 0 likes
        4. Matías N. Goldberg‏ @matiasgoldberg Jul 3
          Replying to @warrenm @FlohOfWoe

          To HarfBuzz I send the full substring (icu's ubidi separates ltr from rtl). I need code unit access for caret navigation in a basic editbox

          2 replies 0 retweets 0 likes
        5. Warren Moore‏ @warrenm Jul 3
          Replying to @matiasgoldberg @FlohOfWoe

          Admittedly that works for the most basic cases, but even if you use a sane canonicalization, you still have to contend with the fact that Codepoints Aren’t Characters, and there are many instances where you don’t want an insertion point between them.

          1 reply 0 retweets 1 like
        6. Andre Weissflog‏ @FlohOfWoe Jul 4
          Replying to @warrenm @matiasgoldberg

          At least for games, where localization is done on demand and market size you can usually get away with assuming that one UTF-32 code point is one character, and can be rendered as such. Only exception in >20 languages we had was Arabic (and that was a marketing experiment)

          0 replies 0 retweets 1 like
        7. 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