• 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.
gregtitus's profile
Greg Titus
Greg Titus
Greg Titus
@gregtitus

Greg Titus

@gregtitus

OmniGroup old-timer. OmniPlan architect, but I've coded for all the apps at one time or another. Game player, coffee drinker, sailor, other randomness.

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
    Greg Titus ‏@gregtitus 7 Jun 2014

    First real Swift code, a better implementation of OFTrie. 600+ lines in 3 Obj-C classes to 100 lines in Swift. 

https://gist.github.com/anonymous/b76f3500c4d7a2a35401 …

    • Retweets 68
    • Likes 112
    • evanlong Jake Steve Ko Hipo Prakhar Srivastav Andy Peters Satindar Dhillon sergio t. ruiz Juliano Rossi
    12:25 AM - 7 Jun 2014
    0 replies 68 retweets 112 likes
      1. Curt Clifton ‏@curtclifton 7 Jun 2014

        @gregtitus beautiful! Can you get rid of the if statements inside the cases in insertValue() by using case…where?

        0 replies 0 retweets 0 likes
      2. View other replies
      3. Greg Titus ‏@gregtitus 7 Jun 2014

        @curtclifton Yes. Much prettier, thanks for the suggestion: https://gist.github.com/anonymous/931f4cc7fc60fc8396a6 …

        0 replies 0 retweets 1 like
      4. Curt Clifton ‏@curtclifton 7 Jun 2014

        @gregtitus sweet! Would it make sense to nest the def of TrieNode inside Trie class? Guess we don't really know the plan for encapsulation.

        0 replies 0 retweets 0 likes
      5. Greg Titus ‏@gregtitus 7 Jun 2014

        @curtclifton Maybe? I was thinking of Trie class being old way (pointer to mutable thing) and accessing TrieNode as new (immutable struct).

        0 replies 0 retweets 0 likes
      6. Greg Titus ‏@gregtitus 7 Jun 2014

        @curtclifton Seemed like different clients might like different looks, but it's hard to know yet.

        0 replies 0 retweets 0 likes
      1. Greg Titus ‏@gregtitus 7 Jun 2014

        Now I have to figure out how to make Swift code fast. Fumbling around in a dark room feeling for light switches… But when you find them!

        0 replies 0 retweets 1 like
      2. David Smith ‏@Catfish_Man 11 Jun 2014

        @gregtitus I wouldn't focus on trying to optimize right now. If you find slow things, file 'em and let the swift optimizer folks have a shot

        0 replies 0 retweets 0 likes
      3. Greg Titus ‏@gregtitus 11 Jun 2014

        @catfish_man I don't expect Swift to be fast right now, but getting a feel for what idioms are performant and what aren't is good learning.

        0 replies 0 retweets 0 likes
      4. David Smith ‏@Catfish_Man 11 Jun 2014

        @gregtitus yup, just be aware of when something is being skewed by a bug. Inner loop is 90% refcounting? Probably a bug not a slow pattern.

        0 replies 0 retweets 0 likes
      5. Greg Titus ‏@gregtitus 11 Jun 2014

        @catfish_man Yup, but who will appreciate the bug fixes without ppl like me. :) (protocol witnesses appears to be the slow bit atm, btw)

        0 replies 0 retweets 0 likes
      6. David Smith ‏@Catfish_Man 11 Jun 2014 San Bruno, CA

        @gregtitus aye :) in the same boat here. I have a couple of test cases I run every time I install a new Xcode build.

        0 replies 0 retweets 0 likes
      1. Michael Gorbach ‏@mgorbach 7 Jun 2014

        @gregtitus @siracusa that’s a property, but it’s type is an extension? How can extension be a type of an expression as different from String

        0 replies 0 retweets 0 likes
      2. View other replies
      3. Greg Titus ‏@gregtitus 7 Jun 2014

        @mgorbach @siracusa String.UnicodeScalarView is a type nested inside String. It's a string as represented by a sequence of UnicodeScalars.

        0 replies 0 retweets 0 likes
      4. Greg Titus ‏@gregtitus 7 Jun 2014

        @mgorbach @siracusa and 'tail' is a property I added to get all but the first unicode scalar. (opposed to 'head' which gets just the first)

        0 replies 0 retweets 0 likes
      1. evanlong ‏@evanlong 11 Jun 2014

        @gregtitus is there a memory and perf comparison?

        0 replies 0 retweets 0 likes
      2. Greg Titus ‏@gregtitus 11 Jun 2014

        @evanlong Mem within 10%, perf is about 2x slower in Swift (compiled fastest/unchecked). Room to improve, but I'm happy with Swift so far.

        0 replies 0 retweets 0 likes
      3. evanlong ‏@evanlong 11 Jun 2014

        @gregtitus Ahhh, good on mem. I saw the branching with dictionaries and was a red flag at first.

        0 replies 0 retweets 0 likes
      4. Greg Titus ‏@gregtitus 11 Jun 2014

        Greg Titus Retweeted Greg Titus

        @evanlong Dicts were slow, that perf was on a later version that has a couple more optimizations:https://twitter.com/gregtitus/status/476111810349641728 …

        Greg Titus added,

        Greg Titus @gregtitus
        Sample Sequence protocol conformance for iterating over subtrees. Still with the Trie I've been playing with. https://gist.github.com/anonymous/cd24f98fad9ad352a889 …
        0 replies 0 retweets 0 likes
      1. Matthew S ‏@eweu 11 Jun 2014

        @gregtitus Maybe fewer lines of code is not a goal? Swift can promote unreadable code. The language is for the human, not the computer.

        0 replies 0 retweets 0 likes
      2. Greg Titus ‏@gregtitus 11 Jun 2014

        @eweu I mostly disagree. It's possible to be too terse, certainly, but there are zero bugs in the lines of code you don't write.

        0 replies 0 retweets 0 likes
      3. Matthew S ‏@eweu 11 Jun 2014

        @gregtitus True but think about the obvious bug on one line vs. the subtle bug buried in some anonymous function on a one line zinger.

        0 replies 0 retweets 0 likes
      4. Greg Titus ‏@gregtitus 11 Jun 2014

        @eweu I don't think that applies to the code snippet you are replying to, personally. Very straightforward, nothing tricky.

        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