• [$] Deep immutability for Python

    From LWN.net@1337:1/100 to All on Wed Jul 23 14:45:07 2025
    [$] Deep immutability for Python

    Date:
    Wed, 23 Jul 2025 13:31:39 +0000

    Description:
    Python has recently seen a number of experiments to improve its parallel performance, including exposing subinterpreters as part of the standard library. These allow
    separate threads within the same Python process to run simultaneously, as long as any data sent between them is copied, rather than shared. PEP795 ("Deep Immutability in Python")
    seeks to make efficient sharing of data between subinterpreters possible by allowing Python objects to be "frozen", so that they can be accessed from multiple subinterpreters without copying or synchronization.
    That task is more difficult than it
    seems, and the PEP prompted a good deal of skepticism from the Python community.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/1030291/


    --- Mystic BBS v1.12 A47 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)