Hacker News new | ask | show | jobs
by smashface 1159 days ago
Where do you get that 50% number? Do you mean 50% of all new code in the industry? That seems beyond extremely unlikely.
4 comments

The number is 40%, and it's 40% of code written by Copilot users. It's also just for Python:

> In files where it’s enabled, nearly 40% of code is being written by GitHub Copilot in popular coding languages, like Python—and we expect that to increase.

https://github.blog/2022-06-21-github-copilot-is-generally-a...

I wonder if this properly counts cases where copilot writes a bunch of code and then I delete it all and rewrite it manually.
From what I remember they check in at a few intervals after the suggestion is made and use string matching to check how much of the Copilot-written code remains.
It's all about the denominator!
There was some discussion by the copilot team that x% of new code in enabled IDEs was generated by copilot.

It varies, but here's one post with x=46 from last month. So, very close to half.

https://github.blog/2023-02-14-github-copilot-for-business-i...

Measuring output by LOC is not a very useful metric. The sort of code that’s most suited to ai is closer to data than code.
(I read it as 50% of their code)