News: 1656023644

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Now Amazon debuts an AI programming assistant – CodeWhisperer

(2022/06/24)


Amazon at its re:Mars conference in Las Vegas on Thursday announced a preview of an automated programming assistance tool called CodeWhisperer.

Available to those who have obtained [1]an invitation through the [2]AWS IDE Toolkit , a plugin for code editors to assist with writing AWS applications, [3]CodeWhisperer is Amazon's answer to GitHub Copilot, an AI (machine learning-based) code generation extension that [4]entered general availability earlier this week.

In a [5]blog post , Jeff Barr, chief evangelist for AWS, said the goal of CodeWhisperer is to make software developers more productive.

[6]

"CodeWhisperer will continually examine your code and your comments, and present you with syntactically correct recommendations," said Barr. "The recommendations are synthesized based on your coding style and variable names, and are not simply snippets."

[7]

[8]

The service is free during the preview period, as was Microsoft's GitHub Copilot, now priced at $10 per month.

Barr said CodeWhisperer analyzes various signals to suggest appropriate bits of code, including cursor location, preceding code, comments, and code in other project files. The software, he said, is trained on billions of lines of code in open-source repositories, internal Amazon repos, API docs, and online forums.

[9]

As such, it may run into the same issues as Copilot about code quality and [10]potential licensing concerns. The academic community has already started looking at how AI coding tools like Copilot perform in terms of code quality.

So far, the answer is not all that well. For example, a 2021 research paper

[11]PDF

from NYU computer scientists found that 40 percent of 1,689 programs made with Copilot suggestions produced code with known weaknesses. But continued attention and iteration to these systems should help them improve eventually.

Another [12]recent paper, "Is GitHub Copilot a Substitute for Human Pair-programming? An Empirical Study," concludes that Copilot accelerates the production of inferior code.

[13]Microsoft promises to tighten access to AI it now deems too risky for some devs

[14]GitHub's AI code assistant Copilot takes flight. And that'll be $10 a month, please

[15]Watch out for AI models regurgitating misplaced keys that unlock crypto wallets

[16]AI chatbot trained on posts from web sewer 4chan behaved badly – just like human members

The answer may be more AI, at least to those that have bet the farm on machine smarts. Amazon already has a service called CodeGuru that has been trained via machine learning to find vulnerabilities and automate the code review process. Once you're in the business of fixing bad code, why not ensure an ample supply?

Amazon has tried to address worries that suggested code will violate someone's copyright or licensing terms by surfacing that information.

[17]

"CodeWhisperer’s reference tracker detects whether a code recommendation may be similar to particular CodeWhisperer training data, and can provide those references to you," the service's [18]FAQs explain. "This allows you to easily find and review that reference code and how it is used in the context of another project."

Amazon promises – during the preview period – not to use code written by developers to train its machine learning models, though it does measure developer metrics such as the acceptance and rejection of code suggestions to refine the service's performance. After the preview concludes, who knows, but the specificity of Amazon's exclusion suggests the company will start scanning customer code for the betterment of its ML model.

Barr provides some examples of CodeWhisperer's capabilities. He describes how he typed the Python comment line # See if a number is prime and CodeWhisperer responded with a function to make that computation.

CodeWhisperer also understands how AWS services work and so is capable of generating potentially useful suggestions for those building on the AWS platform. Presented with the comment # create S3 bucket , CodeWhisperer generated the appropriate steps.

The preview version of CodeWhisperer can deal with code in Python, Java, and JavaScript, in the context of VS Code, IntelliJ IDEA, PyCharm, WebStorm, or AWS Cloud9. Amazon is planning to add support for the AWS Lambda Console shortly. ®

Get our [19]Tech Resources



[1] https://pages.awscloud.com/codewhisperer-sign-up-form.html

[2] https://aws.amazon.com/tools/

[3] https://aws.amazon.com/codewhisperer

[4] https://www.theregister.com/2022/06/21/githubs_ai_code_assistant_copilot/

[5] https://aws.amazon.com/blogs/aws/now-in-preview-amazon-codewhisperer-ml-powered-coding-companion/

[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YrU26b4G8ABzy0JkuvAD9wAAAAE&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[7] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YrU26b4G8ABzy0JkuvAD9wAAAAE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[8] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YrU26b4G8ABzy0JkuvAD9wAAAAE&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YrU26b4G8ABzy0JkuvAD9wAAAAE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[10] https://twitter.com/ChrisGr93091552/status/1539731632931803137

[11] https://arxiv.org/pdf/2108.09293.pdf

[12] https://ieeexplore.ieee.org/abstract/document/9793778

[13] https://www.theregister.com/2022/06/21/microsoft_api_ai_algorithms/

[14] https://www.theregister.com/2022/06/21/githubs_ai_code_assistant_copilot/

[15] https://www.theregister.com/2022/05/03/openai_copilot_cryptocurrency/

[16] https://www.theregister.com/2022/06/09/ai_model_4chan/

[17] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YrU26b4G8ABzy0JkuvAD9wAAAAE&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[18] https://aws.amazon.com/codewhisperer/faqs/

[19] https://whitepapers.theregister.com/



Charms

elsergiovolador

If they called it a CodeCharmer, would that be too obvious jab at Indian IT shops?

If only

Kevin McMurtrie

# Generate correct IAM resources and references for this application

Bet that doesn't work.

A prominent broadcaster, on a big-game safari in Africa, was taken to a
watering hole where the life of the jungle could be observed. As he
looked down from his tree platform and described the scene into his
tape recorder, he saw two gnus grazing peacefully. So preoccupied were
they that they failed to observe the approach of a pride of lions led
by two magnificent specimens, obviously the leaders. The lions charged,
killed the gnus, and dragged them into the bushes where their feasting
could not be seen. A little while later the two kings of the jungle
emerged and the radioman recorded on his tape: "Well, that's the end of
the gnus and here, once again, are the head lions."