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 May 1

      With 64 bit address spaces, thread stacks should have GBs reserved by default, and programming with alloca should be encouraged. A lot of string and container work could be done at high performance with alloca and no frees if you don't let them escape.

      32 replies 78 retweets 572 likes
    2. Jonathan Blow‏ @Jonathan_Blow May 1
      Replying to @ID_AA_Carmack

      Having a per-thread temporary allocator that is a standard convention, so that everyone including libraries can use it, is better... you can return temporary strings / arrays / nodes from functions, etc. (I do this all the time in the language I am working on).

      2 replies 1 retweet 72 likes
    3. Jonathan Blow‏ @Jonathan_Blow May 1
      Replying to @Jonathan_Blow @ID_AA_Carmack

      You just pretend like you have a GC for all these things, and it just gets completely reset once per frame at a known point.

      5 replies 0 retweets 50 likes
    4. Eric Smolikowski‏ @esmolikowski May 1
      Replying to @Jonathan_Blow @ID_AA_Carmack

      We had this on one of the engines I worked on, a per frame linear buffer that would reset at a known time. It was shared among threads though, and it would be double buffered so GPU could access it on a different frame as well.

      1 reply 0 retweets 5 likes
    5. Jonathan Blow‏ @Jonathan_Blow May 1
      Replying to @esmolikowski @ID_AA_Carmack

      The problem with sharing across threads is that now it's a contended resource. Also the threads have to sync to reset it, but, if that is part of your design already then it is fine.

      1 reply 0 retweets 7 likes
    6. Eric Smolikowski‏ @esmolikowski May 1
      Replying to @Jonathan_Blow @ID_AA_Carmack

      It depends on how you use your threads I guess. That linear buffer was used for all the jobs and memory needed to be passed around between them. Jobs could also have their own local linear allocator. Long running threads would not use this memory.

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

      In my experience, if you are trying to make sure your cores are working all the time, you want to get rid of as many sync points as possible. Sync points around something common like allocation are death, threads will logjam there very quickly.

      2 replies 0 retweets 5 likes
    8. Jonathan Blow‏ @Jonathan_Blow May 2
      Replying to @Jonathan_Blow @esmolikowski @ID_AA_Carmack

      But one may not notice this if one is not profiling threads with an eye to maximizing performance.

      1 reply 0 retweets 4 likes
      Jonathan Blow‏ @Jonathan_Blow May 2
      Replying to @Jonathan_Blow @esmolikowski @ID_AA_Carmack

      Passing memory between threads is annoying if the originating thread has to free it. But under this model, where nobody explicitly frees the memory (except the per-frame reset), there is no problem passing it between threads.

      10:45 AM - 2 May 2021
      • 3 Likes
      • Enye of Word renerocksai Ivan Braidi
      1 reply 0 retweets 3 likes
        1. Eric Smolikowski‏ @esmolikowski May 2
          Replying to @Jonathan_Blow @ID_AA_Carmack

          That’s the whole idea. That memory is transient and only lives for one frame. Allows to break your frame in many small jobs going wide, allowing you to much better balance your thread utilization. This is the model we used back on the PS3 with all the SPUs.

          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