Technology

Amazon debuts CodeWhisperer, its ML-powered “coding companion”


Amazon on Thursday unveiled CodeWhisperer, a new tool for developers that denerates code recommendations. The machine learning-powered tool is currently available in preview.

CodeWhiperer provides recommendations based on contextual information, such as the cursor location in the source code, code that precedes the cursor, and code in other files in the same projects. It also responds to simple natural language prompts, such as “upload a file to with server side encryption.”

Unlike traditional coding assist tools, which generate one line of code at a time, CodeWhisperer generates an entire subroutine at once. It supports major programming languages, including Java, Javascript and Python, and multiple IDEs.

CodeWhisperer leverages the latest in large language models and is trained on huge datasets — open source repositories, internal Amazon repositories, API documentation and forums.

“We trained the model on the most common patterns for building cloud applications, so you can build and innovate on the cloud much faster than ever before,”  Swami Sivasubramanian, AWS VP of data and ML services, said during the Amazon re:MARS conference on Thursday. 

While it’s designed to boost coder productivity, it does so in a responsible manner, he added — mitigating risks like bias, security vulnerabilities and bugs. It comes with a built-in security scanner to help detect vulnerabilities in developers’ projects. It also has a built-in reference tracking feature to detect whether a code recommendation may be similar to particular CodeWhisperer training data.  This allows you to easily find and review that reference code and how it is used in the context of another project.

CodeWhisperer will also help coders avoid bias by removing code recommendations that may be considered biased and unfair.



Source link