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
MorlockP's profile
ⓘ Dogs don't have thumbs
ⓘ Dogs don't have thumbs
ⓘ Dogs don't have thumbs
@MorlockP

Tweets

ⓘ Dogs don't have thumbs

@MorlockP

Two-time Prometheus award-winning hard science fiction author. https://www.amazon.com/dp/B005JPPMS6  Learn how to homestead https://www.amazon.com/dp/B093BC3K1T 

Aristillus Crater, Luna
amazon.com/dp/B005JPPMS6
Joined June 2012

Tweets

  • © 2022 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. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      5/ when it sees such an item it can remove it from the linked list and also do thing C with it.

      1 reply 0 retweets 3 likes
      Show this thread
    2. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      6/ thing A is a compute engine, written by others. thing B is a backend persistence engine, written by yours truly.

      1 reply 0 retweets 3 likes
      Show this thread
    3. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      7/ the persistence engine used to be "write it to a log file". I replaced that with a modular "write it to db Q or db R", and made the API between the core processing loop and the persistence engine a bunch of function pointers (C). Common pre- and post-processing shared

      2 replies 0 retweets 3 likes
      Show this thread
    4. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      8/ One of the db APIs is asynchronous: we hand something off, we get a callback later, and we're done (the callback I wrote is simple: marks the underlying linked list item as "yes, fully written).

      1 reply 0 retweets 3 likes
      Show this thread
    5. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      9/ The other is synchronous, which is not acceptable. This code needs to boogie. So I used pthreads to MAKE IT asynchronous: we call into my wrapper, my wrapper spawns a new thread, and then returns immediately. (New thread does DB call then write state bit in linked list).

      1 reply 0 retweets 3 likes
      Show this thread
    6. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      10/ The asynchronous one - no such magic needed. So easier, right? WRONG ! First off, C API is undocumented "for expert use only". Vendors employees use it to write APIs in other languages. Not for normies!

      1 reply 0 retweets 3 likes
      Show this thread
    7. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      11/ First problem I run into is that I inject stuff into it, API says "we good", but then ... we not. Turns out that if, in the callback, I check the status code AGAIN, only then do I learn "input too wide". So now I have to build a fragmenting / sharding layer!

      1 reply 1 retweet 2 likes
      Show this thread
    8. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      12/ This is not my first goat rodeo, so I do that in a day or so. But then, since I'm checking the status code in the callback, I learn that "we probably wrote it, but we can't be ABSOLUTELY sure" is also a status code. ...so now I have to add a retry loop in. >>>

      1 reply 0 retweets 3 likes
      Show this thread
    9. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      13/ And note that this retry loop is INSIDE the callback. So stack looks like * application * libuv_run_loop * ... * my libuv callback, which injects into DB * ... * ... * db callback (uncertain status code) * inject into DB * ... * ... * db callback * inject into DB * ...

      1 reply 0 retweets 2 likes
      Show this thread
    10. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      14/ The angles do not add up to 360°, and the walls seem to breathe. Is that a tentacle?

      1 reply 0 retweets 6 likes
      Show this thread
      ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

      15/ also, since I might have to reinject into the db, I need to carry along a data structure of all the info that I might need to inject, which means rearchitecting things. Then I have to clean it up at the end!

      9:05 AM - 28 Oct 2018
      • 2 Likes
      • Kevin Xu
      1 reply 0 retweets 2 likes
        1. New conversation
        2. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

          16/ Also, bc I'm doing sharding, I can no longer do a simple cleanup of the original data - shard 0 might write to db OK, but shard 3 might take 4 retries, so cleanup is VERY TRICKY.

          2 replies 0 retweets 2 likes
          Show this thread
        3. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

          17/ Also, some cleanup can't be done automatically. Sometimes we do a DB query, and get a char * to data ... but that lives inside a short lived handle, so we can't clean up the handle ourselves. Have to hide it behind a void * and give it back to app, which can call cleanup

          1 reply 0 retweets 2 likes
          Show this thread
        4. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

          18/ But note that I am not bitching - this is actually the most fun I've had coding in 2-3 years! onward!

          1 reply 0 retweets 5 likes
          Show this thread
        5. ⓘ Dogs don't have thumbs‏ @MorlockP 28 Oct 2018

          19/ tangentially, sometimes I wonder "am I really bringing that much value?" when I'm changing the background color of a webpage. ...because any 14 year old fresh out of a coding bootcamp could do this. ...but when I'm spinning up threads, working state machines, etc: yeah

          0 replies 0 retweets 3 likes
          Show this thread
        6. 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

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