3 comments

  • vlovich1237 minutes ago
    I suspect 3.14.4 could have been tweaked slightly to address the issue without a revert - they could have prioritized checking the liveliness of objects sorted by size. I’m pretty sure that would fix the max RSS issue without needing a revert and the people unhappy with 3.14 could keep using 3.13 or switch to 3.14 and simply inject explicit calls to gc.gc().<p>Figuring out how to measure the size of an object can be tricky of course, but I suspect there’s all sorts of things you could try including figuring out how much memory got deallocated after you gc a cycle and attributing it to where the object got allocated as a heuristic to measure the mean allocation size.
  • functionmouse1 day ago
    &gt; Python 3.14.0 introduced a new incremental garbage collector. But reports of higher memory usage caused the Python team to revert the garbage collector changes in 3.14.5.<p>If they didn&#x27;t have very good objective reasons the new GC is better, they never should have shipped it. If they do, they should not have reverted the change.
    • ameliaquining29 minutes ago
      It&#x27;s better in some ways (order-of-magnitude reductions in pause times were cited) but worse in other ways (higher peak memory usage). That the higher peak memory usage was catastrophic for some users only became apparent through post-release feedback.
    • hmry7 minutes ago
      Really? You&#x27;ve never reverted a positive change because it contained a regression only discovered after release?
    • moron4hire42 minutes ago
      It&#x27;s this sort of stuff that leaves me scratching my head why people like Python so much. I hear them say they prefer the syntax and personally I feel like that&#x27;s such a small part of the holistic experience of working with any particular language. It&#x27;s one of the reasons why I gave up on C++ years ago for .NET, the whole system of tooling in .NET has never left me feeling like I was pigeonholed into doing things in stupid, self-flagelating ways. Why should I use a language like C++ that doesn&#x27;t provide a standard set of package management and build tools? Why should I use a language like Python that feels like it&#x27;s being designed by amateurs?<p>I felt like the tooling in Racket, CLisp, and Java were similarly pragmatic and not either religiously devoted to some concept of &quot;backwards compatibility&quot; that I seriously doubt most people actually need, or &quot;ease of use&quot; that actually proves itself to be easy when you consider the not-happy-path of the beginner tutorials. Racket, I didn&#x27;t continue just because the library ecosystem isn&#x27;t mature enough to keep up with the latest in databases and other 3rd party services. Java I quit largely because of Oracle and some 2010s problems with stagnation. CLisp mostly because it was too hard to socialize. But never because I thought the core language and tooling were holding me back.
      • hankbond5 minutes ago
        It&#x27;s easy to start learning on, or prototype with, and then sometimes momentum just keeps it going. Also it may not really be the best at anything, but it&#x27;s &quot;pretty good&quot; at just about everything. It&#x27;s kind of like vanilla ice cream.<p>Packaging can be irritating although uv takes the sting out a bit.<p>You are right that outside of verbosity, once you get used to the syntax of a language, the value of one over the other kind of fades.
      • petre0 minutes ago
        &gt; It&#x27;s this sort of stuff that leaves me scratching my head why people like Python so much<p>Because of the libraries, not necessarily the language. For example we found a niche library that speaks the ISO-TP protocol in Python, which allows us to communicate with vehicle ECUs.
      • SJC_Hacker24 minutes ago
        Python is mostly about the “batteries included” standard library and what’s becoming nearly standard third party libs, being able to play around in the REPL,
  • irishcoffee41 minutes ago
    The folks running the show as it relates to python remind me a lot about the folks running the show at mozilla.<p>That is not a compliment.