源之原味

Facebook 正在构建 AI 工具来帮助开发者修复错误代码

 

本文来自thenextweb.com。源URL是: https://thenextweb.com/artificial-intelligence/2018/09/14/facebook-ai-tool-fixes-bugs/

以下内容由机器翻译生成。如果您觉得可读性不好, 请阅读原文或 点击这里.

facebook has built an artificial intelligence tool to help programmers patch buggy code. It’s called SapFix, and it’s currently being used internally to automatically detect anomalies in code and suggest relevant fixes to coders.

SapFixhas already helped the company with shipping more robust code for its android app. Facebook said at its Scale engineering conference that it will eventually roll out the tool to the developer community.

In the current state,SapFixworks on fixing the bugs spotted bySapienz– Facebook’s intelligent automated software testing tool. However,SapFixwill be able to work independently.

Facebook tool
SapFix

To fix a bug, it either fully or partly reverts the code that caused it. To handle more complex bugs, it either picks a template from the knowledge base of past, fixes or makes small changes until the bug is fixed. SapFix creates multiple fixes and tests them against three parameters:

  • Are there compilation errors?
  • Does the crash persist?
  • Does the fix introduce new crashes?

Once the tool picks a fix, it sends it to engineers for review and feedback process.

The company said that to its knowledge, this marks the first time that a machine-generated fix — with automated end-to-end testing and repair — has been deployed into a codebase of Facebook’s scale.

The SapFix team is currently working on training the tool to detect crashes before they happen. It said that Sapienz and SapFix both will be released as open sourced tools once the engineering work is complete.

下一篇:

Trending tools: 10 ways to take advantage of new social media functionalities

Leave A Reply

Your email address will not be published.