News: 0175782371

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Python in 2024: Faster, More Powerful, and More Popular Than Ever (infoworld.com)

(Sunday December 29, 2024 @03:34AM (EditorDavid) from the get-with-the-programming dept.)


"Over the course of 2024, Python has proven again and again why it's one of the most popular, useful, and promising programming languages out there," [1]writes InfoWorld :

> The latest version of the language pushes the envelope further [2]for speed and power, sheds many of Python's most decrepit elements, and broadens its appeal with developers worldwide. Here's a look back at the year in Python.

>

> In the biggest news of the year, the core Python development team took a major step toward overcoming one of Python's longstanding drawbacks: the [3]Global Interpreter Lock or "GIL," a mechanism for managing interpreter state. The GIL prevents data corruption across threads in Python programs, but it comes at the cost of making threads nearly useless for CPU-bound work. Over the years, various attempts to remove the GIL ended in tears, as they made single-threaded Python programs drastically slower. But the [4]most recent no-GIL project goes a long way toward fixing that issue — enough that it's been [5]made available for regular users to try out .

>

> The no-GIL or "free-threaded" builds are still considered experimental, so they shouldn't be deployed in production yet. The Python team wants to alleviate as much of the single-threaded performance impact as possible, along with any other concerns, before giving the no-GIL builds the full green light. It's also entirely possible these builds may never make it to full-blown production-ready status, but the early signs are encouraging.

>

> Another forward-looking feature introduced in Python 3.13 is the [6]experimental just-in-time compiler or JIT. It expands on previous efforts to speed up the interpreter by [7]generating machine code for certain operations at runtime. Right now, the speedup doesn't amount to much (maybe 5% for most programs), but future versions of Python will expand the JIT's functionality where it yields real-world payoffs.

Python is now [8]more widely used than JavaScript on GitHub (thanks partly to its role in AI and data science code).



[1] https://www.infoworld.com/article/3615556/python-in-2024-faster-more-powerful-and-more-popular-than-ever.html

[2] https://www.infoworld.com/article/2337441/the-best-new-features-and-fixes-in-python-313.html

[3] https://www.infoworld.com/article/2337804/is-it-finally-time-to-remove-the-python-gil.html

[4] https://www.infoworld.com/article/2338862/python-moves-to-remove-the-gil-and-boost-concurrency.html

[5] https://www.infoworld.com/article/3552750/get-started-with-the-free-threaded-build-of-python-3-13.html

[6] https://www.infoworld.com/article/2337441/the-best-new-features-and-fixes-in-python-313.html

[7] https://peps.python.org/pep-0744/

[8] https://www.infoworld.com/article/3594587/python-has-overtaken-javascript-on-github.html



Pushes the envelope for speed * (Score:2)

by 93 Escort Wagon ( 326346 )

* Compared only to previous versions of python.

Re: (Score:2)

by serviscope_minor ( 664417 )

Yes? They aren't claiming it's a speed demon compared to anything else.

It's not news to anyone in the python community that python is quite slow.

I'm glad they are really working on the speed of it. The GIL is good. Speeding up python with multiple cores is currently not much fun. Also the jit.

Re: Pushes the envelope for speed * (Score:2)

by fluffernutter ( 1411889 )

Speed is only a requirement for maybe 5% of low level computing. In most real life cases, IO transfer speeds and latency is going to be your bottleneck anyway.

Microsoft Open Source Solitaire

REDMOND, WA -- In a first attempt at "embrace-and-extend" of open source
software, Microsoft will release its popular Solitaire and FreeCell games as
open source under the MILA (Microsoft Innovative License Agreement).
According to a Microsoft press release, the Visual C++ source code for the
two games will be available from the Microsoft website "in the first quarter"
(no year was specified).

Industry pundits hail the move as revolutionary. "Microsoft's release of its
most popular Windows feature as open source software demonstrates just how
innovative the company really is. The DoJ is clearly barking up the wrong
tree," wrote one Ziff-Davis flunkie. One executive at a large company said,
"Freely available source code is the best idea Microsoft has ever invented."

One Linux developer told Humorix, "Let's just hope some fool doesn't try to
port this thing to Linux. Imagine the havoc that could ensue if a bunch of
core Linux contributors downloaded Solitaire and became addicted to it. It
would be a disaster! Linux and open source development would grind to a halt
while the hackers wasted their time playing Solitaire or FreeCell. 'Just one
more game...' they would say."