Skip to main content [aditude-amp id="stickyleaderboard" targeting='{"env":"staging","page_type":"article","post_id":1796866,"post_type":"story","post_chan":"none","tags":null,"ai":false,"category":"none","all_categories":"business,dev,social,","session":"C"}']

Twitter open-sources Diffy, a tool for automatically spotting bugs in code

Twitter-branded coffee mugs at Twitter headquarters in San Francisco.

Image Credit: Jordan Novet/VentureBeat

Twitter is today announcing the availability of Diffy, a new piece of open-source software that developers can use to spot bugs when they’re making updates to certain parts of code.

Twitter uses the code internally. Now the social networking company is releasing it to the rest of the world.

[aditude-amp id="flyingcarpet" targeting='{"env":"staging","page_type":"article","post_id":1796866,"post_type":"story","post_chan":"none","tags":null,"ai":false,"category":"none","all_categories":"business,dev,social,","session":"C"}']

The tool should come in handy for those who frequently push new versions of code for specific parts of applications. Developers can run unit tests, but they take time.

“As the complexity of a system grows, it very quickly becomes impossible to get adequate coverage using hand-written tests, and there’s a need for more advanced automated techniques that require minimal effort from developers. Diffy is one such approach we use,” Puneet Khanduri, a member of Twitter’s tools and frameworks team, explained in a blog post.

AI Weekly

The must-read newsletter for AI and Big Data industry written by Khari Johnson, Kyle Wiggers, and Seth Colaner.

Included with VentureBeat Insider and VentureBeat VIP memberships.

This is just the latest piece of software Twitter is providing for others to use. Other open-source tools from Twitter include Scalding and Summingbird. Facebook and LinkedIn, among others, also regularly release open-source software for others to use.

Primarily written in Scala, Diffy “acts as a proxy which accepts requests drawn from any source you provide and multicasts each of these requests to three different service instances: a candidate instance running your new code, a primary instance running your last known-good code, [and] a secondary instance running the same known-good code as the primary instance,” Khanduri wrote.

Above: Twitter’s Diffy tool.

Image Credit: Twitter

Diffy is now available on GitHub here. Learn more about it in Khanduri’s blog post.

VentureBeat's mission is to be a digital town square for technical decision-makers to gain knowledge about transformative enterprise technology and transact. Learn More