Close Menu
    Facebook X (Twitter) Instagram
    SciTechDaily
    • Biology
    • Chemistry
    • Earth
    • Health
    • Physics
    • Science
    • Space
    • Technology
    Facebook X (Twitter) Pinterest YouTube RSS
    SciTechDaily
    Home»Technology»MIT Develops New Programming Language for High-Performance Computers
    Technology

    MIT Develops New Programming Language for High-Performance Computers

    By Steve Nadis, MIT CSAILFebruary 14, 20225 Comments5 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn WhatsApp Email Reddit
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email Reddit
    Computer Code Processing Concept
    MIT has developed a new programming language specifically for high-performance computing. It is currently the first and only tensor language with formally verified optimizations.

    With a tensor language prototype, “speed and correctness do not have to compete … they can go together, hand-in-hand.”

    High-performance computing is required for an ever-increasing number of jobs, such as image processing or other deep learning applications on neural nets, that require sifting through massive volumes of data in a reasonable length of time. It is usually assumed that in carrying out such activities, there are inescapable trade-offs between speed and dependability. According to this viewpoint, if speed is the primary concern, reliability will suffer, and vice versa.

    Introducing a New Programming Language: ATL

    However, a team of researchers, based mainly at MIT, is calling that notion into question, claiming that one can, in fact, have it all. With the new programming language, which they’ve written specifically for high-performance computing, says Amanda Liu, a second-year PhD student at the MIT Computer Science and Artificial Intelligence Laboratory (CSAIL), “speed and correctness do not have to compete. Instead, they can go together, hand-in-hand, in the programs we write.”

    Liu — along with University of California at Berkeley postdoc Gilbert Louis Bernstein, MIT Associate Professor Adam Chlipala, and MIT Assistant Professor Jonathan Ragan-Kelley — described the potential of their recently developed creation, “A Tensor Language” (ATL), last month at the Principles of Programming Languages conference in Philadelphia.

    “Everything in our language,” Liu says, “is aimed at producing either a single number or a tensor.” Tensors, in turn, are generalizations of vectors and matrices. Whereas vectors are one-dimensional objects (often represented by individual arrows) and matrices are familiar two-dimensional arrays of numbers, tensors are n-dimensional arrays, which could take the form of a 3x3x3 array, for instance, or something of even higher (or lower) dimensions.

    Optimizing Computations for High-Performance Efficiency

    The whole point of a computer algorithm or program is to initiate a particular computation. But there can be many different ways of writing that program — “a bewildering variety of different code realizations,” as Liu and her coauthors wrote in their soon-to-be published conference paper — some considerably speedier than others. The primary rationale behind ATL is this, she explains: “Given that high-performance computing is so resource-intensive, you want to be able to modify, or rewrite, programs into an optimal form in order to speed things up. One often starts with a program that is easiest to write, but that may not be the fastest way to run it, so that further adjustments are still needed.”

    As an example, suppose an image is represented by a 100×100 array of numbers, each corresponding to a pixel, and you want to get an average value for these numbers. That could be done in a two-stage computation by first determining the average of each row and then getting the average of each column. ATL has an associated toolkit — what computer scientists call a “framework” — that might show how this two-step process could be converted into a faster one-step process.

    Ensuring Correctness Through Mathematical Proof

    “We can guarantee that this optimization is correct by using something called a proof assistant,” Liu says. Toward this end, the team’s new language builds upon an existing language, Coq, which contains a proof assistant. The proof assistant, in turn, has the inherent capacity to prove its assertions in a mathematically rigorous fashion.

    Coq had another intrinsic feature that made it attractive to the MIT-based group: programs written in it, or adaptations of it, always terminate and cannot run forever on endless loops (as can happen with programs written in Java, for example). “We run a program to get a single answer — a number or a tensor,” Liu maintains. “A program that never terminates would be useless to us, but termination is something we get for free by making use of Coq.”

    The ATL project combines two of the main research interests of Ragan-Kelley and Chlipala. Ragan-Kelley has long been concerned with the optimization of algorithms in the context of high-performance computing. Chlipala, meanwhile, has focused more on the formal (as in mathematically based) verification of algorithmic optimizations. This represents their first collaboration. Bernstein and Liu were brought into the enterprise last year, and ATL is the result.

    It now stands as the first, and so far the only, tensor language with formally verified optimizations. Liu cautions, however, that ATL is still just a prototype — albeit a promising one — that’s been tested on a number of small programs. “One of our main goals, looking ahead, is to improve the scalability of ATL, so that it can be used for the larger programs we see in the real world,” she says.

    In the past, optimizations of these programs have typically been done by hand, on a much more ad hoc basis, which often involves trial and error, and sometimes a good deal of error. With ATL, Liu adds, “people will be able to follow a much more principled approach to rewriting these programs — and do so with greater ease and greater assurance of correctness.”

    Reference: “Verified Tensor-Program Optimization Via High-Level” by Amanda Liu, Gilbert Louis Bernstein, Adam Chlipala and Jonathan Ragan-Kelley, 12 January 2022, Proceedings of the ACM on Programming Languages.
    DOI: 10.1145/3498717

    Never miss a breakthrough: Join the SciTechDaily newsletter.
    Follow us on Google and Google News.

    Computer Science CSAIL MIT Popular Supercomputing
    Share. Facebook Twitter Pinterest LinkedIn Email Reddit

    Related Articles

    MIT’s Cybersecurity Metior: A Secret Weapon Against Side-Channel Attacks

    Solving Complex Problems at the Speed of Light

    New Method to Verify That Quantum Chips Accurately Performed Complex Computations

    Using Mathematical Theory to Find the True Potential of Algorithms

    MIT Develops Machine-Learning Tool to Make Code Run Faster

    New MIT Model Recovers Valuable “Lost Dimensions” of Images and Video

    “Particle Robots” Form Large Groups to Complete Tasks

    Researchers Develop a Wireless Way to Power Human Implants

    New Debugging Method Finds 23 Undetected Security Flaws in Popular Web Applications

    5 Comments

    1. Sara on February 15, 2022 4:28 am

      Great

      Reply
    2. shell shockers on February 17, 2022 11:37 pm

      I am really happy to know this useful website. It gives me a lot of interesting knowledge about everything around especially the content of the above article.

      Reply
    3. shell shockers on February 17, 2022 11:38 pm

      This is a great site so I want to thank you for developing it. It provides a lot of useful advice for those who are really interested in the topic they love, more specifically this post.

      Reply
      • You on December 27, 2023 2:40 pm

        Fake comments

        Reply
    4. You on December 27, 2023 2:38 pm

      Fake comments

      Reply
    Leave A Reply Cancel Reply

    • Facebook
    • Twitter
    • Pinterest
    • YouTube

    Don't Miss a Discovery

    Subscribe for the Latest in Science & Tech!

    Trending News

    Why Popular Diabetes Drugs Like Ozempic Don’t Work for Everyone: The “Genetic Glitch”

    Scientists Stunned After Finding Plant Thought Extinct for 60 Years

    Scientists Discover Tiny New Spider That Hunts Prey 6x Its Size

    Natural Component From Licorice Shows Promise for Treating Inflammatory Bowel Disease

    Scientists Warn: Popular Sweetener Linked to Dangerous Metabolic Effects

    Monster Storms on Jupiter Unleash Lightning Beyond Anything on Earth

    Scientists Create “Liquid Gears” That Spin Without Touching

    The Simple Habit That Could Help Prevent Cancer

    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
    • Breakthrough Crystal Lets Scientists “Write” Nanoscale Patterns With Light
    • Pomegranate Compound Could Help Protect Against Heart Disease
    • Your Blood Test Might Already Show Alzheimer’s Risk
    • Common Pregnancy Medications Linked to Higher Autism Risk in Massive U.S. Study
    • Scientists Teach AI To Think Like a Professional Chemist
    Copyright © 1998 - 2026 SciTechDaily. All Rights Reserved.
    • Science News
    • About
    • Contact
    • Editorial Board
    • Privacy Policy
    • Terms of Use

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