/* ---- Google Analytics Code Below */
Showing posts with label Coding Assistant. Show all posts
Showing posts with label Coding Assistant. Show all posts

Thursday, July 08, 2021

Will AI Rewrite Coding?

Inclined to think so. Increase efficiency, prevent errors and better ensure secure practices. Below intro describes the current progress and direction.  Starting with assistant approaches and code checking.  Note the mention of a number of companies and projects involved.   More at the link.

Will AI Rewrite Coding?   By Samuel Greengard, Commissioned by CACM Staff,   July 6, 2021

Computer code now touches almost every aspect of our lives. Worldwide, 27 million developers churn out billions of lines of code every day. Yet, despite an abundance of open source libraries and increasingly sophisticated development tools, the task is time-consuming and prone to errors.

As a result, researchers are studying ways to introduce artificial intelligence (AI) into coding processes. While much of the effort centers on automating coding tasks, spotting bugs, fixing vulnerabilities, and producing more elegant code, there's also an emerging effort to tap AI to write code based on short text descriptions of what the code should do.

"There's interest in improving current coding practices and generating code through machine learning and AI models," says Brendan Dolan-Gavitt, an assistant professor of computer science and engineering at New York University (NYU) Tandon School.

Adds Furkan Bektes, founder and CEO of SourceAI, which has developed a tool to write code based on short natural language input, "The use of AI will allow developers to code faster, and allow non-developers to pursue their ideas."

Code of Conduct

The complexities of today's coding processes are not lost on anyone. A Boeing 787 Dreamliner has approximately 20 million lines of code. Major software programs and games have upwards of 50 million lines of code. Somewhere between functionality and chaos lies the real-world task of producing code rapidly and as bug-free as possible.

AI is taking direct aim at the challenge. "Ideally, AI could intervene, examine patterns and provide feedback about coding errors," says Shashank Srikant, a Ph.D. student in the Department of Electrical Engineering and Computer Science at the Massachusetts Institute of Technology (MIT). "This could help coders avoid traps that others have fallen into."

Google, Microsoft, and others have already begun experimenting with AI for assisted coding. For instance, in 2018, Microsoft introduced AI-assisted coding for Java, Python, C++, and other languages through Visual Studio IntelliCode. It offers developers relevant coding suggestions based on thousands of the most popular open source projects at GitHub. Through machine learning, it analyzes common usage patterns and practices, and delivers suggestions tailored to a specific project.

However, in May 2020, the field took a giant leap forward. OpenAI introduced a next-generation AI-based neural network and programming model called GPT-3, which is already used to build apps—including buttons, colors and input fields—using AI. When researchers and coding experts began testing the language, they realized that it could also write its own code.

Bektes, among the first to gain access to the platform, fed high-quality code samples into GPT-3 and built an application that generates code in any programming language—using input in English and most other major languages. For example, a user might say, "Calculate factorial of number given by user," and Source AI spits out the code.

Other tools incorporating AI are also popping up. For instance, Tabnine can autofill lines and functions as developers type.

Machine-generated coding could be a game changer, although it's unlikely to supplant the need for developers anytime soon. "It will open new horizons," Bektes explains. "There are many non-developers who have ideas but don't know how to code, and there are also developers who are experts in one language but not in others. AI can help them learn to code in other languages."      ...... ' 

Thursday, July 01, 2021

Copilot Assistant Coding

 Actually did this in the early days, with human co-pilots, but it never took off.  Now with secure code more of a necessity, could be useful.  This could drive closer to Lo-Code too.   How well can this work today?  Even flagging security dangers in patterns of code could be useful.  But how well can we recognize such patterns?  Following. 

OpenAI and GitHub Unveil New Copilot AI Assistant for Coding

ERIC HAL SCHWARTZ in Voicebot.AI

A new virtual assistant created by OpenAI and GitHub will suggest code to software developers as they work. The new GitHub Copilot tool leverages an improved version of OpenAI’s popular GPT-3 language model called Codex to teach the AI how to collaborate in a coding project like a human partner.

AI COPILOT

Github Copilot takes the concept of natural language processing and applies it to programming languages. The idea is to imitate a “pair programmer,” when two developers simultaneously work on a coding project and comment and annotate each other’s work along the way. The AI theoretically takes the junior partner role in the endeavor, making its name entirely apropos. Copilot relies on OpenAI’s Codex model to understand what the programmer is doing and come up with suggestions. Like GPT-3, Codex is built on an enormous collection of data to teach an AI how to suggest a line or more of code. The AI learns from what suggestions the human user accepts or rejects, honing its understanding and ideally leading to better code ideas.  ... '