Dejkala
No Result
View All Result
  • Home
  • Tech
  • Banking & loan
  • Games
  • Car’s & Bike’s
  • Home
  • Tech
  • Banking & loan
  • Games
  • Car’s & Bike’s
No Result
View All Result
Dejkala
No Result
View All Result
Home Latest update

Programming languages: How a team of developers at Microsoft are helping make Python faster- Dejkala

by hasibul
November 1, 2022
in Latest update
0
Programming languages: How a team of developers at Microsoft are helping make Python faster- Dejkala
0
VIEWS
Share on FacebookShare on Twitter


A Black individual works on a computer program at a desk in a dim room.

Image: Shutterstock

Python is arguably the most popular programming language in the world thanks to machine learning, but its big weakness is performance: it needs high-end hardware, often leans on graphics cards, doesn’t run in the browser, like JavaScript, and has almost no story in mobile. 

For the past few years, Microsoft has been contributing to Faster Python, a project kicked off by Python creator Guido van Rossum in 2021, shortly after Microsoft hired him as a distinguished engineer, changing his previous plan to retire. 

The Python creator wanted the language to be more nimble than the lumbering giant it is. Van Rossum wanted it to be twice as fast but Mark Shannon, one of the key contributors to CPython (or Core Python), penned an implementation plan in 2020 for speeding up CPython by five times. Core Python is the reference implementation of Python that other variants are based on, like data science-focussed Anaconda. 

Python’s popularity can be attributed to the vast ecosystem of packages, like NumPy, and frameworks, like PyTorch, that help number-crunching and data-analysis processes, but those packages, as Microsoft notes, are written mostly in C. Python is an interpreted language versus C and C++, which are compiled languages. As such, CPython relies on C to interpret Python code.       

Also: Salary freezes and a return to the office? Not for software developers

Microsoft hired a team of six engineers along with Van Rossum to deliver the performance improvements via CPython. It’s now detailed how it sees those investments translate into benefits for CPython, whose contributors are mostly volunteers — typically skilled engineers who have other jobs — but now benefit from Mictosoft’s Python hires.  

Microsoft showcases the work of staffers Eric Snow, L Pereira, Irit Katriel, Michael Droettboom, and Brandt Bucher, who all helped deliver performance improvements across Python 3.10 and 3.11, which Microsoft claims has seen speedups of between 10% to 60% in some areas of the language. 

Snow has been working on sub-interpreters, while Atrial has implemented the new Exception groups and except* features in 3.11. Bucher helped create structural pattern matching. 

Microsoft seems cautious to avoid the perception it has an agenda for Python, and is perhaps aware of skepticism among developers due to its past attitude towards Linux and open source.

“How do we make sure we’re showing up to the Python community as helpful, not driving an agenda or any of those kinds of things,” says Droettboom. 

“Because what we are doing is kind of risky. There has probably been a higher frequency of unintended consequences and bugs that have come about because we are changing how the core works. It’s really important that the team supports the community to keep quality up.”

Also: Recruiting tech workers is getting harder. But there’s another way to get the right skills

Questions still come up about Microsoft’s motivations in open source, but the company has embraced it more purposefully now that Azure and Microsoft 365 and more tightly aligned with the cloud.

Snow apparently spends 20% of his time at Microsoft working on CPython. Katriel says she has been able to focus on performance thanks to Microsoft hiring her and working with Van Rossum.

“Joining the Faster CPython team did change my focus towards performance. In that sense my focus did change, but there was continuity in that I did some work on performance of exceptions. By simplifying the interpreter’s internal representation of raised exceptions, I reduced the time it takes to raise and catch an exception by about 10%. In another project, I made the compiler emit the code of except blocks in a separate area, so that they don’t need to be jumped over in the case that no exception is raised,” she said.     

Van Rossum also likes the consistency of working as a team on a regular basis rather than dealing with big changes after the bi-annual conference. 

“All six of us meet every Monday,” says Van Rossum. “There’s always more than enough to talk about. That is very different than as a core dev community getting together for a Sprint twice a year, like one day after the conference. That is a very special event, of course, but it doesn’t feed me throughout the year.” 

Van Rossum believes that knowledge of one another and their collaborative work gives the team a “leg up” because everyone “knows what communication styles people have and what everybody’s weaknesses and strengths are.”

“As a core (Python dev) team across the whole community, we collaborate pretty well,” says Snow. He’s been a core developer for over a decade and “having a number of core devs working on the same stuff in CPython that are within the company, there’s a little better accessibility…the degree of collaboration is a bit more solid.”


ShareTweetShare

Related Posts

MediaTek partners with Nvidia to add Nvidia's GPU chiplets and software to MediaTek SoCs used in automotive infotainment systems (Joseph White/Reuters)- Dejkala
Latest update

MediaTek partners with Nvidia to add Nvidia's GPU chiplets and software to MediaTek SoCs used in automotive infotainment systems (Joseph White/Reuters)- Dejkala

May 29, 2023
MediaTek taps Nvidia GPU and AI for connected car chipsets- Dejkala
Latest update

MediaTek taps Nvidia GPU and AI for connected car chipsets- Dejkala

May 29, 2023
What I use to measure device power consumption (and what you should use instead)- Dejkala
Latest update

What I use to measure device power consumption (and what you should use instead)- Dejkala

May 29, 2023
This MSI laptop is a monster video editing machine- Dejkala
Latest update

This MSI laptop is a monster video editing machine- Dejkala

May 29, 2023
How to Make Meetings Shorter (for Real)- Dejkala
Latest update

How to Make Meetings Shorter (for Real)- Dejkala

May 29, 2023
NVIDIA’s next DGX supercomputer is all about generative AI- Dejkala
Latest update

NVIDIA’s next DGX supercomputer is all about generative AI- Dejkala

May 29, 2023
Next Post
Uber reports Q3 revenue rose 72% YoY to $8.34B, beating $8.1B estimates, as gross bookings rose 26% YoY to $29.1B, including $13.7B from Uber Eats (Jackie Davalos/Bloomberg)- Dejkala

Uber reports Q3 revenue rose 72% YoY to $8.34B, beating $8.1B estimates, as gross bookings rose 26% YoY to $29.1B, including $13.7B from Uber Eats (Jackie Davalos/Bloomberg)- Dejkala

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Earn Money Online
  • Game news and review
  • Laptops
  • Latest update
  • Smartphone Reviews & News
  • TODAY Tech News
  • Upcoming Technology
  • Wordpress plugin
  • WordPress themes
  • World Wide Bike Reviews and News
  • World Wide Car News

Recommended

NBC promises it’ll be easier to watch the Olympics in 2024 on Peacock- Dejkala

NBC promises it’ll be easier to watch the Olympics in 2024 on Peacock- Dejkala

May 11, 2023
Even Slack has a ChatGPT app now- Dejkala

Even Slack has a ChatGPT app now- Dejkala

March 7, 2023
Microsoft 365 Copilot AI tool headed to OneNote. Here’s what it can do for you- Dejkala

Microsoft 365 Copilot AI tool headed to OneNote. Here’s what it can do for you- Dejkala

April 6, 2023
‘Forspoken’ studio Luminous Productions will be folded into Square Enix- Dejkala

‘Forspoken’ studio Luminous Productions will be folded into Square Enix- Dejkala

February 28, 2023
Apple’s Mac Mini M2 is back on sale for $549- Dejkala

Apple’s Mac Mini M2 is back on sale for $549- Dejkala

April 4, 2023
Sources: the Hong Kong arms of three Chinese state banks have reached out to offer services to crypto businesses in recent months, despite a mainland crypto ban (Bloomberg)- Dejkala

Sources: the Hong Kong arms of three Chinese state banks have reached out to offer services to crypto businesses in recent months, despite a mainland crypto ban (Bloomberg)- Dejkala

March 27, 2023
MediaTek partners with Nvidia to add Nvidia's GPU chiplets and software to MediaTek SoCs used in automotive infotainment systems (Joseph White/Reuters)- Dejkala

MediaTek partners with Nvidia to add Nvidia's GPU chiplets and software to MediaTek SoCs used in automotive infotainment systems (Joseph White/Reuters)- Dejkala

May 29, 2023
MediaTek taps Nvidia GPU and AI for connected car chipsets- Dejkala

MediaTek taps Nvidia GPU and AI for connected car chipsets- Dejkala

May 29, 2023
What I use to measure device power consumption (and what you should use instead)- Dejkala

What I use to measure device power consumption (and what you should use instead)- Dejkala

May 29, 2023

Categories

  • Earn Money Online
  • Game news and review
  • Laptops
  • Latest update
  • Smartphone Reviews & News
  • TODAY Tech News
  • Upcoming Technology
  • Wordpress plugin
  • WordPress themes
  • World Wide Bike Reviews and News
  • World Wide Car News

Pages

  • About Us
  • Banking & loan
  • Car’s & Bike’s
  • Contact Us
  • Games
  • Home
  • Home 2
  • Privacy Policy
  • Tech

© 2022 Dejkala

No Result
View All Result
  • Homepages
    • Home – Layout 1
    • Home – Layout 2

© 2022 Dejkala