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
Jonathan_Blow's profile
Jonathan Blow
Jonathan Blow
Jonathan Blow
@Jonathan_Blow

Tweets

Jonathan Blow

@Jonathan_Blow

Designer/Programmer of Braid and The Witness. President, Thekla, Inc. Partner in IndieFund. Currently working on good new things.

San Francisco
the-witness.net/news
Joined January 2010

Tweets

  • © 2021 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. John Carmack‏Verified account @ID_AA_Carmack Mar 2

      There is value in a simple integer error code return from public C APIs, but it would be nice to have an easy way to get the full statement that forced the return, assert-style. INVALID_VALUE is not as helpful as it could be.

      31 replies 8 retweets 224 likes
    2. Jonathan Blow‏ @Jonathan_Blow Mar 2
      Replying to @ID_AA_Carmack

      In the stuff I am working on there is a context-global logging function that anyone can call, defined by the application, can be disabled in release builds etc. It is very easy to just write log_error("Not enough foobazzes in the fiblinx"), much more annoying to have to build out

      6 replies 0 retweets 52 likes
    3. Jonathan Blow‏ @Jonathan_Blow Mar 2
      Replying to @Jonathan_Blow @ID_AA_Carmack

      some structure where there is a string for every error code, a function that maps one to the other or whatever, for every little thing that can go wrong. (This of course leads to the thing that happened on both Unix and Windows where the same set of error codes gets mashed

      1 reply 0 retweets 17 likes
    4. Jonathan Blow‏ @Jonathan_Blow Mar 2
      Replying to @Jonathan_Blow @ID_AA_Carmack

      together for everything, leading e.g. to everyone's favorite useless error EINVAL.) I think the improved ergonomics of just observing how bad this all went, and setting up the incentives so that better things happen naturally, are huge (and underestimated by everyone).

      2 replies 0 retweets 21 likes
    5. Jonathan Blow‏ @Jonathan_Blow Mar 2
      Replying to @Jonathan_Blow @ID_AA_Carmack

      (The important thing about this logging function being that it is an established convention that leaf-functionality library authors can use and they just expect the application to do what it wants with it, they don't have to build their own reporting system for each lib, etc).

      1 reply 0 retweets 20 likes
    6. Daniel Bokser‏ @dbokser91 Mar 2
      Replying to @Jonathan_Blow @ID_AA_Carmack

      1) log_error() only takes in a string, not an arbitrary type right? 2) By "turning it off" in release mode, do you define it to do nothing and let the optimizer handle that? Or is there some # command?

      1 reply 0 retweets 1 like
    7. Jonathan Blow‏ @Jonathan_Blow Mar 2
      Replying to @dbokser91 @ID_AA_Carmack

      A string and some optionally-provided flags and extra information. You could either have your log callback be empty, or define out the calls to log assert-style.

      1 reply 0 retweets 8 likes
      Jonathan Blow‏ @Jonathan_Blow Mar 2
      Replying to @Jonathan_Blow @dbokser91 @ID_AA_Carmack

      (It really depends on what is being logged. Like, you might want to maintain a debugger breakpoint in the logging function for errors, even if you aren't doing anything with the output, as a sanity check).

      11:34 AM - 2 Mar 2021
      • 12 Likes
      • Andrey Yankin Aaron Viviano Ricky 愛 😷 Ivan Braidi xezrunner Dan Bechard Daniel Bokser γper
      1 reply 0 retweets 12 likes
        1. Daniel Bokser‏ @dbokser91 Mar 2
          Replying to @Jonathan_Blow @ID_AA_Carmack

          Ah that's nice. Thanks!

          0 replies 0 retweets 1 like
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo

      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

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