Close Menu
    Facebook X (Twitter) Instagram
    SciTechDaily
    • Biology
    • Chemistry
    • Earth
    • Health
    • Physics
    • Science
    • Space
    • Technology
    Facebook X (Twitter) Pinterest YouTube RSS
    SciTechDaily
    Home»Technology»Turbocharged Python: AI Accelerates Computing Speed by Thousands of Times
    Technology

    Turbocharged Python: AI Accelerates Computing Speed by Thousands of Times

    By University of Massachusetts AmherstAugust 30, 20233 Comments4 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email
    Futuristic Computer Data Center Art
    Researchers from the University of Massachusetts Amherst introduced Scalene, a cutting-edge Python profiler. Unlike traditional profilers, Scalene uses AI to both identify and suggest fixes for code inefficiencies. This development gains significance as the future leans towards better programming for speed improvements.

    Their development Scalene, an open-source tool for dramatically speeding up the programming language Python, circumvents hardware issues limiting computer processing speeds.

    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.

    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.

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

    Emery Berger, who is a professor of computer science in the Manning College of Information and Computer Sciences at UMass Amherst

    Python’s Efficiency Woes

    “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.”

    Emery Berger
    UMass Amherst Professor of Computer Science Emery Berger. Credit: UMass Amherst

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

    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.”

    The Future of Programming and Scalene’s Impact

    “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. The research that led to the development of Scalene was supported by the National Science Foundation. A paper describing this work appeared at this year’s USENIX Conference on Operating System Design and Implementation, where it won a Best

    Computer Science Machine Learning University of Massachusetts Amherst
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    New Electronics Devised That Mimic the Human Brain in Efficient Learning

    Widely Used AI Machine Learning Methods Don’t Work as Claimed

    MIT Develops Machine-Learning Tool to Make Code Run Faster

    Hunting Down Cybercriminals With New Machine-Learning System

    New AI System Identifies Personality Traits from Eye Movements

    New Artificial Intelligence Device Identifies Objects at the Speed of Light

    Machine-Learning Models Capture Subtle Variations in Facial Expressions

    Machine-Learning System Replicates Human Auditory Behavior, Predicts Brain Responses

    ‘Deep Learning’ Algorithm Brings New Tools to Astronomy

    3 Comments

    1. Das Blinkendelichter on August 30, 2023 12:25 pm

      ““Computers are no longer getting faster.”— Emery Berger, computer science professor of Manning College of Information and Computer Sciences at UMass Amherst” is a brave thing to say. It’s the type of quote to frame and hang in the halls at competing universities. Moore’s Law (or observation) may arguably have slowed in the age of covid lockdowns, but the age of quantum computing or other innovations should make our computers look like vacuum-tube mainframes. But the point of the article is taken, that Moore’s law made programmers lazy.

      Reply
    2. skedge on August 31, 2023 3:46 am

      Even 100 times slower sounds ridiculous. The problem really has to be at the interpreter/ compiler level.

      Reply
    3. punny on September 3, 2023 5:29 am

      more about ai and how to learn programming python

      Reply
    Leave A Reply Cancel Reply

    • Facebook
    • Twitter
    • Pinterest
    • YouTube

    Don't Miss a Discovery

    Subscribe for the Latest in Science & Tech!

    Trending News

    Could Perseverance’s Mars Samples Hold the Secret to Ancient Life?

    Giant Fossil Discovery in Namibia Challenges Long-Held Evolutionary Theories

    Is There Anybody Out There? The Hunt for Life in Cosmic Oceans

    Paleontological Surprise: New Research Indicates That T. rex Was Much Larger Than Previously Thought

    Photosynthesis-Free: Scientists Discover Remarkable Plant That Steals Nutrients To Survive

    A Waste of Money: New Study Reveals That CBD Is Ineffective for Pain Relief

    Two Mile Long X-Ray Laser Opens New Windows Into a Mysterious State of Matter

    650 Feet High: The Megatsunami That Rocked Greenland’s East Coast

    Follow SciTechDaily
    • Facebook
    • Twitter
    • YouTube
    • Pinterest
    • Newsletter
    • RSS
    SciTech News
    • Biology News
    • Chemistry News
    • Earth News
    • Health News
    • Physics News
    • Science News
    • Space News
    • Technology News
    Recent Posts
    • How Sonic Technology Is Advancing Wind Detection on Mars
    • Harnessing Blue Energy: The Sustainable Power Source of Tomorrow
    • Mystery Solved: Scientists Discover Unique Evolutionary Branch of Snakes
    • Unlocking the Deep Past: New Study Maps the Dawn of Animal Life
    • Scientists Uncover How Cocaine Tricks the Brain Into Feeling Good – Breakthrough Could Lead to New Substance Abuse Treatments
    Copyright © 1998 - 2024 SciTechDaily. All Rights Reserved.
    • Latest News
    • Trending News
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.