News for hackers. Stuff that matters.
Re:Gptcommit: Never write a commit message again (with the h... by dheera on Thursday January 19, 2023 @06:56PM (#34447367)
> purely functional transformation of the code, adding zero information

I mean, a human brain is arguably also a purely functional transformation adding zero information.

Re:Gptcommit: Never write a commit message again (with the h... by TeMPOraL on Thursday January 19, 2023 @07:15PM (#34447525)
It's not. The diff, which is the sole input to GPT-3 here, does not carry the causal context - that is, why the change was made. Nor does it carry the broader understanding necessary to summarize the what succinctly and accurately - things like high-level design terms that mostly exist on diagrams or in issue trackers, but not in the code itself. By adding those details in a commit message, the author can add extra information.

And yes, technically they could do it in comments, which would allow GPT-3 to process it. Except, I think it's highly unlikely for a coder using ChatGPT to write commit messages for them to actually author useful comments on their own. If they write any at all, they'll probably use ChatGPT (or Copilot) for that too.

Re:Gptcommit: Never write a commit message again (with the h... by welshwelsh on Thursday January 19, 2023 @08:06PM (#34447890)
We could give the model access to JIRA, confluence, meeting transcripts etc. so that it has all the same contextual information as the developers.
Re:Gptcommit: Never write a commit message again (with the h... by hgsgm on Thursday January 19, 2023 @09:06PM (#34448325)
Even better: let GPT write the JIRA tickets and Confluence pages, and speak for me in meetings.
Re:Gptcommit: Never write a commit message again (with the h... by TeMPOraL on Friday January 20, 2023 @07:09AM (#34451968)
You know what? You do that. I'm gonna start a SaaS business providing AI generators for code, commit messages and documentation. Models that take into account all the context to deliver more accurate, better results. All I need is a live feed from your JIRA, Confluence, Teams/Slack, Zoom, Exchange, SharePoint or whatever alternatives you use. This will guarantee you the biggest bang for your buck!

Elsewhere in this thread someone was wondering if sending a change diff to a fly-by-night third party SaaS could be leaking company IP. They were thinking too small.

But cynicism aside - giving the model access to all that contextual info would definitely increase the chances it would generate useful commit summaries. It would also increase chances it would generate much more convincing bullshit, full of just the right phrases to confuse your programmers, PMs and architects alike.

Re:Gptcommit: Never write a commit message again (with the h... by dheera on Thursday January 19, 2023 @08:31PM (#34448088)
I guess they could feed all of the team's Slack history into GPT as well and it would then have the context?
Re:Gptcommit: Never write a commit message again (with the h... by funcDropShadow on Friday January 20, 2023 @07:49AM (#34452387)
It could even continue filling Slack.
Re:Gptcommit: Never write a commit message again (with the h... by ahartmetz on Thursday January 19, 2023 @07:13PM (#34447510)
Though in this case, it has more and better quality context (i.e. input), like requirements or anything else that isn't in the model's training set.