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

Game designer of Braid and The Witness. Partner in IndieFund.

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

Tweets

  • © 2019 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • 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.

    Jonathan Blow‏ @Jonathan_Blow Jun 25
    • Report Tweet

    Who has examples they like of ways to control Deep Copy operations so that they don't go crazy and copy too much stuff by accident, and it takes you a long time to notice (or maybe you never notice)?

    9:56 PM - 25 Jun 2019
    • 1 Retweet
    • 18 Likes
    • Iptv Dmitry Minsky David Louis Kim Karlsson Sargis (70%) Bogdan Storozhuk Vm011 Gianluca Alloisio KIKI486
    13 replies 1 retweet 18 likes
      1. New conversation
      2. Nicolas‏ @uucidl Jun 26
        • Report Tweet
        Replying to @Jonathan_Blow

        This seem to me why Per Vognsen said once that system programming languages should not make copying first class and instead an explicit operation

        1 reply 0 retweets 2 likes
      3. Jonathan Blow‏ @Jonathan_Blow Jun 26
        • Report Tweet
        Replying to @uucidl

        The question is about copying as an explicit operation.

        2 replies 0 retweets 2 likes
      4. Nicolas‏ @uucidl Jun 26
        • Report Tweet
        Replying to @Jonathan_Blow

        That's fair.. My answer sometimes for similar issues is to establish a scope that allows to set an expectation (this amount of time, this amount of data) then warns/traces when the expectation gets violated.

        0 replies 0 retweets 0 likes
      5. End of conversation
      1. New conversation
      2. Bob Gardner‏ @BigBobGardner Jun 25
        • Report Tweet
        Replying to @Jonathan_Blow

        I’m fond Rusts semantics for this. Your custom types have to explicitly declare copy or clone. And you can’t do either if they aren’t declared. Copy can also only be derived for types where all internal structures are themselves copyable etc.

        1 reply 0 retweets 6 likes
      3. Bob Gardner‏ @BigBobGardner Jun 25
        • Report Tweet
        Replying to @BigBobGardner @Jonathan_Blow

        And then your functions can say “take x where x is copy” and now that strict you don’t want copying can’t be passed to a function that’s gonna try to.

        1 reply 0 retweets 0 likes
      4. Bob Gardner‏ @BigBobGardner Jun 26
        • Report Tweet
        Replying to @BigBobGardner @Jonathan_Blow

        To be more specific you then don’t implement copy for certain language intrinsics. Like say list, stack, queue, ptr etc. that way if the user wants to copy them they must explicitly implement a copy function. At that point the developer has specified intent and is let them.

        1 reply 0 retweets 0 likes
      5. Jonathan Blow‏ @Jonathan_Blow Jun 26
        • Report Tweet
        Replying to @BigBobGardner

        This is impractical and not really helpful .. basically the same as C++.

        0 replies 0 retweets 1 like
      6. End of conversation
      1. New conversation
      2. Tom Forsyth‏ @tom_forsyth Jun 25
        • Report Tweet
        Replying to @Jonathan_Blow

        If your Ctrl+V lasts more than four hours, seek medical attention.

        1 reply 1 retweet 26 likes
      3. 1 more reply
      1. A.‏ @0xAC1DBA5E Jun 25
        • Report Tweet
        Replying to @Jonathan_Blow

        Copy on write

        0 replies 0 retweets 2 likes
        Thanks. Twitter will use this to make your timeline better. Undo
        Undo
      1. f00zz‏ @f00zz_ Jun 26
        • Report Tweet
        Replying to @Jonathan_Blow

        Qt containers use reference counting and copy-on-write internally to minimize copying. a deep copy happens only when a non-const function is called (and you need to be aware of this so that you won't accidentally trigger a deep copy with e.g. a range-based for loop)

        0 replies 0 retweets 1 like
        Thanks. Twitter will use this to make your timeline better. Undo
        Undo
      1. New conversation
      2. Sammy Guergachi‏ @SGuergachi Jun 25
        • Report Tweet
        Replying to @Jonathan_Blow

        I’m sure @apankrat might have some experience with this sort of thing.

        1 reply 0 retweets 0 likes
      3. Alex Pankratov‏ @apankrat Jun 26
        • Report Tweet
        Replying to @SGuergachi @Jonathan_Blow

        I suspect Johnathan was referring to copying in-program data model objects rather than files :)

        0 replies 0 retweets 1 like
      4. End of conversation
      1. New conversation
      2. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @Jonathan_Blow

        I made custom serializer in Java so I could serialize everything. I am writing the types first (so I have read instructions for deserialization), then data. Cyclic dependencies are both in structure and data. Cyclic references are detected and identified. https://github.com/Namek/artemis-odb-entity-tracker/blob/develop/README.md …

        1 reply 1 retweet 0 likes
      3. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @NamekDev @Jonathan_Blow

        Of course, it's crazy to copy whole object with everything it references to, every frame, so I decided to display a tree like in any windowed debugger and download/refresh only the parts (levels of deepness) of object which are currently elapsed in UI. But that...

        1 reply 0 retweets 0 likes
      4. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @NamekDev @Jonathan_Blow

        ...introduces problems with performance when it comes to diffing array of objects. I have no info like "this array has changed". No IDs from Java. No immutability. Since I wanted to make a thing similar to Unity where I can see object states on live, ...

        1 reply 0 retweets 0 likes
      5. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @NamekDev @Jonathan_Blow

        ... I found that it would be less crazy in performance terms if I made my own language which would control such things. Or simply pick up a language with immutability buuut it's not so much gamedev friendly. I also didn't want to make any special annotations for types of fields..

        1 reply 0 retweets 0 likes
      6. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @NamekDev @Jonathan_Blow

        So making this performant and transparent (plug-and-play "debugger" through network, like debugging Android game on PC) for user would really not be insane with a custom language. Which is a part of reasons why I'm huge fan of Jai language and the engine made with it.

        1 reply 0 retweets 0 likes
      7. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @NamekDev @Jonathan_Blow

        Oh, let's summarize. Deep copy without any control is madness. Controlling deep copy may be much worse.

        1 reply 0 retweets 0 likes
      8. Namek‏ @NamekDev Jun 26
        • Report Tweet
        Replying to @NamekDev @Jonathan_Blow

        And oh, if anyone's interested, I had a series of blog posts on writing custom serializer: https://www.namekdev.net/tag/serializing-java/ … [disclosure] Java is absolutely not my love. libgdx was the reason, decision countering super buggy and self-destructive Unity back then. Pure (Kotlin) code.

        0 replies 0 retweets 0 likes
      9. 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

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