home.social

#mutable — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mutable, aggregated by home.social.

fetched live
  1. Wenn du in Java programmierst, wirst du früher oder später auf den Begriff Immutability stoßen. Wörtlich übersetzt bedeutet das „Unveränderlichkeit“. Eine *immutable* Klasse ist also eine Klasse, deren Objekte nach ihrer Erstellung nicht mehr verändert werden können.

    magicmarcy.de/immutability-–-w

    #Immutable #Immutability #Unveränderlichkeit #thread-safe #Mutable #Synchronisierung #Stabilität #Programming #Java

  2. @davidism

    @glyph

    Interesting. Talk about hiding behind layers of abstraction.

    I also swear I picked this way up from somewhere talking about how to work around this issue in fastapi docs, but am not sure.

    #mutable

  3. @davidism

    @glyph

    Interesting. Talk about hiding behind layers of abstraction.

    I also swear I picked this way up from somewhere talking about how to work around this issue in fastapi docs, but am not sure.

    #mutable

  4. Wenn du in Java programmierst, wirst du früher oder später auf den Begriff Immutability stoßen. Wörtlich übersetzt bedeutet das „Unveränderlichkeit“. Eine *immutable* Klasse ist also eine Klasse, deren Objekte nach ihrer Erstellung nicht mehr verändert werden können.

    magicmarcy.de/immutability-–-w

    #Immutable #Immutability #Unveränderlichkeit #thread-safe #Mutable #Synchronisierung #Stabilität #Programming #Java

  5. What if mutability was part type's feature? And I don't mean that type can be mutable or immutable, I mean it can be both at different times.
    And what mutability even means for series types? Does it mean that series is fixed in size and only its values can change, or does it mean it can also expand or shrink freely?
    Well @recoil has a solution - each series type has an attribute, #immutable, #mutable and #flexible. Mutable series can change content but cannot change size,flexible series can both

  6. 🤔 Ah, the riveting world of Rust's #borrow #checker, where reading from a place is akin to unlocking the secrets of the universe, but only if you adhere to the sacred algebraic rituals. 📊 Apparently, our brave adventurer believes a table of "ideas" will save us all from the terror of #mutable borrowing—because, you know, nothing screams breakthrough like a #spreadsheet. 📈
    nadrieril.github.io/blog/2025/ #Rust #Ideas #Borrowing #HackerNews #ngated

  7. 🤔 Ah, the riveting world of Rust's #borrow #checker, where reading from a place is akin to unlocking the secrets of the universe, but only if you adhere to the sacred algebraic rituals. 📊 Apparently, our brave adventurer believes a table of "ideas" will save us all from the terror of #mutable borrowing—because, you know, nothing screams breakthrough like a #spreadsheet. 📈
    nadrieril.github.io/blog/2025/ #Rust #Ideas #Borrowing #HackerNews #ngated

  8. Wenn du in Java programmierst, wirst du früher oder später auf den Begriff Immutability stoßen. Wörtlich übersetzt bedeutet das „Unveränderlichkeit“. Eine *immutable* Klasse ist also eine Klasse, deren Objekte nach ihrer Erstellung nicht mehr verändert werden können.

    magicmarcy.de/immutability-–-w

    #Immutable #Immutability #Unveränderlichkeit #thread-safe #Mutable #Synchronisierung #Stabilität #Programming #Java

  9. Wenn du in Java programmierst, wirst du früher oder später auf den Begriff Immutability stoßen. Wörtlich übersetzt bedeutet das „Unveränderlichkeit“. Eine *immutable* Klasse ist also eine Klasse, deren Objekte nach ihrer Erstellung nicht mehr verändert werden können.

    magicmarcy.de/immutability-–-w

    #Immutable #Immutability #Unveränderlichkeit #thread-safe #Mutable #Synchronisierung #Stabilität #Programming #Java

  10. Python Mutability:
    - Changing a value of type results in an automatic copy
    - Changing a value of type causes it to mutate in place

    🧠 Understand the Python Data Model better using memory_graph: github.com/yourusername/memory

    🎥 Watch the explainer on Python Mutability: youtu.be/pvIJgHCaXhU

  11. Типы данных в Python. Что нужно о них знать?

    Всем привет! Меня зовут Дима. Я являюсь Backend Python Developer'ом. Хочу оставить здесь скомпонованную информацию, которой когда-то давно не хватало мне. А именно, расскажу Вам про основные типы данных в Python , как они устроены и в чём их отличие.

    habr.com/ru/articles/825806/

    #python #immutable #mutable #data_types #изменяемые #неизменяемые

  12. This morning I downloaded the Deluge's daily nightly firmware to try the new Mutable reverb, based on Beads. There are so many nice features in the community firmware...I have no time to play with all the additions. 🙂
    This new reverb is yet in development. They are fine tuning the details, but the hard work is already done. And its going to sound superb!
     #Synthstrom #deluge #opensource #firmware #mutable #reverb #beads

  13. @phurd

    This is a take! More often people complain about how hard it is to achieve true immutability in Python.

    list(tuple_instance) to the rescue, I guess :)

    #data #mutable #immutable

  14. @phurd

    This is a take! More often people complain about how hard it is to achieve true immutability in Python.

    list(tuple_instance) to the rescue, I guess :)

    #data #mutable #immutable

  15. @matt

    This does bite people in Python, as it applies to lists and dicts in addition to Pandas or whatever that is.

    list and dict have copy() methods, but they're shallow copies. If you have mutable objects in your list or dict, those can be changed by someone with a copy...

    Use copy.deepcopy() to ensure you get a mutable object that no one else (barring evil intent...) has a handle to fiddle with its contents.

    #python #mutable #DeepCopy

  16. @matt

    This does bite people in Python, as it applies to lists and dicts in addition to Pandas or whatever that is.

    list and dict have copy() methods, but they're shallow copies. If you have mutable objects in your list or dict, those can be changed by someone with a copy...

    Use copy.deepcopy() to ensure you get a mutable object that no one else (barring evil intent...) has a handle to fiddle with its contents.

    #python #mutable #DeepCopy

  17. Is a #mutable variable needed in this case?

    Is this code #fsharp idiomatic?

    stackoverflow.com/q/76445536/2

    Edit

    Solved 💪😄👌 by switching from using the #hot🥵 #Task in C# to utilizing the #cold🥶 #Async in F# ❣️

  18. And the same occurs with any value remembered beyond a very short lifetime, and sometimes even then. (Looking at you, #multithreading.)
    Because a file system is #mutable, our #software #application suffers the effects of the change. And if the #programmingLanguage allows for mutability, like #Java does, then it too suffers the effect of change on remembered values. Especially when we, the programmers, can't see that values were remembered. Which is what #memoization does.

  19. A problem I found when implementing this, is race conditions during #concurrency on #mutable collections.

    And that may be specific to the #java #programming #language. The proposed architecture uses #lambda function forms. And if those have to change a value that needs to live on outside their scope, then java insists that the reference to value must be effectively final, immutable.

    And that causes us to code some odd structures that are neither elegant nor simple to understand.