Saturday, May 10, 2025
LBNN
  • Business
  • Markets
  • Politics
  • Crypto
  • Finance
  • Energy
  • Technology
  • Taxes
  • Creator Economy
  • Wealth Management
  • Documentaries
No Result
View All Result
LBNN

Computer scientists develop open-source tool for dramatically speeding up the programming language Python

Simon Osuji by Simon Osuji
August 29, 2023
in Artificial Intelligence
0
Computer scientists develop open-source tool for dramatically speeding up the programming language Python
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


python
Credit: Unsplash/CC0 Public Domain

A team of computer scientists at the University of Massachusetts Amherst, led by Emery Berger, recently unveiled a prize-winning Python profiler called Scalene. Programs written with Python are notoriously slow—up to 60,000 times slower than code written in other programming languages—and Scalene works to efficiently identify exactly where Python is lagging, allowing programmers to troubleshoot and streamline their code for higher performance.

Related posts

20 Best Mac Accessories (2025), Tested and Reviewed

20 Best Mac Accessories (2025), Tested and Reviewed

May 10, 2025
US Customs and Border Protection Plans to Photograph Everyone Exiting the US by Car

US Customs and Border Protection Plans to Photograph Everyone Exiting the US by Car

May 10, 2025

There are many different programming languages—C++, Fortran and Java are some of the more well-known ones—but, in recent years, one language has become nearly ubiquitous: Python.

“Python is a ‘batteries-included’ language,” says Berger, who is a professor of computer science in the Manning College of Information and Computer Sciences at UMass Amherst, “and it has become very popular in the age of data science and machine learning because it is so user-friendly.” The language comes with libraries of easy-to-use tools and has an intuitive and readable syntax, allowing users to quickly begin writing Python code.

“But Python is crazy inefficient,” says Berger. “It easily runs between 100 to 1,000 times slower than other languages, and some tasks might take 60,000 times as long in Python.”

Programmers have long known this, and to help fight Python’s inefficiency, they can use tools called “profilers.” Profilers run programs and then pinpoint which parts are slow and why.

Unfortunately, existing profilers do surprisingly little to help Python programmers. At best, they indicate that a region of code is slow, and leave it to the programmer to figure out what, if anything, can be done.

Berger’s team, which included UMass computer science graduate students Sam Stern and Juan Altmayer Pizzorno, built Scalene to be the first profiler that not only precisely identifies inefficiencies in Python code, but also uses AI to suggest how the code can be improved.

“Scalene first teases out where your program is wasting time,” Berger says. It focuses on three key areas—the CPU, GPU and memory usage—that are responsible for the majority of Python’s sluggish speed.

Once Scalene has identified where Python is having trouble keeping up, it then uses AI—leveraging the same technology underpinning ChatGPT—to suggest ways to optimize individual lines, or even groupings of code. “This is an actionable dashboard,” says Berger. “It’s not just a speedometer telling you how fast or slow your car is going, it tells you if you could be going faster, why your speed is affected and what you can do to get up to maximum speed.”

“Computers are no longer getting faster,” says Berger. “Future improvements in speed will come less from better hardware and more from faster, more efficient programming.”

Scalene is already in wide use and has been downloaded more than 750,000 times since its public unveiling on GitHub. A paper describing this work appeared at this year’s USENIX Conference on Operating System Design and Implementation, where it won a Best Paper Award.

More information:
GitHub: github.com/plasma-umass/scalene

Provided by
University of Massachusetts Amherst

Citation:
Computer scientists develop open-source tool for dramatically speeding up the programming language Python (2023, August 28)
retrieved 28 August 2023
from https://techxplore.com/news/2023-08-scientists-open-source-tool-language-python.html

This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no
part may be reproduced without the written permission. The content is provided for information purposes only.





Source link

Previous Post

5 Ways Digital Payments can Transform Ed-Tech Companies – IT News Africa

Next Post

Does GameStop Take Apple pay?

Next Post
Does GameStop Take Apple pay?

Does GameStop Take Apple pay?

Leave a Reply Cancel reply

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

RECOMMENDED NEWS

Meta says it will resume AI training with public content from European users

Meta says it will resume AI training with public content from European users

4 weeks ago
Madbouly unveils plans for trained Egyptian technical staff deployment abroad

Madbouly unveils plans for trained Egyptian technical staff deployment abroad

1 year ago
Pioneering a New Era in Sustainability: Tequila Komos Unveils First in Series of Projects Built from Tequila Byproducts

Pioneering a New Era in Sustainability: Tequila Komos Unveils First in Series of Projects Built from Tequila Byproducts

5 months ago
It’s Not Just TikTok: These Other ByteDance Apps Are Gone Too

It’s Not Just TikTok: These Other ByteDance Apps Are Gone Too

4 months ago

POPULAR NEWS

  • Ghana to build three oil refineries, five petrochemical plants in energy sector overhaul

    Ghana to build three oil refineries, five petrochemical plants in energy sector overhaul

    0 shares
    Share 0 Tweet 0
  • When Will SHIB Reach $1? Here’s What ChatGPT Says

    0 shares
    Share 0 Tweet 0
  • Matthew Slater, son of Jackson State great, happy to see HBCUs back at the forefront

    0 shares
    Share 0 Tweet 0
  • Dolly Varden Focuses on Adding Ounces the Remainder of 2023

    0 shares
    Share 0 Tweet 0
  • US Dollar Might Fall To 96-97 Range in March 2024

    0 shares
    Share 0 Tweet 0
  • Privacy Policy
  • Contact

© 2023 LBNN - All rights reserved.

No Result
View All Result
  • Home
  • Business
  • Politics
  • Markets
  • Crypto
  • Economics
    • Manufacturing
    • Real Estate
    • Infrastructure
  • Finance
  • Energy
  • Creator Economy
  • Wealth Management
  • Taxes
  • Telecoms
  • Military & Defense
  • Careers
  • Technology
  • Artificial Intelligence
  • Investigative journalism
  • Art & Culture
  • Documentaries
  • Quizzes
    • Enneagram quiz
  • Newsletters
    • LBNN Newsletter
    • Divergent Capitalist

© 2023 LBNN - All rights reserved.