New development policy: code generated by a large language model or similar technology (e.g. ChatGPT, GitHub Copilot) is presumed to be tainted (i.e. of unclear copyright, not fitting NetBSD’s licensing goals) and cannot be committed to NetBSD.

https://www.NetBSD.org/developers/commit-guidelines.html

You are viewing a single thread.
View all comments
92 points

Ok but how is anyone meant to know if you generated your docstrings using copilot?

permalink
report
reply
6 points

Because they’ll be shit?

Docstrings based on the method signature and literal contents of a method or class are completely pointless, and that’s all copilot can do. It can’t Intuit anything that docstrings are actually there for.

permalink
report
parent
reply
3 points

Definitely not my experience. With a well structured code base it can be pretty uncanny. I think it’s context is limited to files that are currently opened in the editor, so that may be your issue if you’re coding with just one file open?

permalink
report
parent
reply
4 points
*

GitHub Copilot introduced a new keyword a little while ago, “@workspace”, where it can see everything in your project. The code it generates uses all your own functions and variables in your libraries and it figures out how to use them correctly.

There was one time where I totally went “WTF”, because it spat out Python. In a C++ project. But those kind of hallucinations are getting more and more rare. The more code you write, the better it gets. It really does become sort of like a “Copilot”, sitting there coding alongside you. The mistake people make is assuming it’s going to come up with ideas and algorithms for them without spending any mental energy at all.

I’m not trying to shill. I’m not a programmer by trade. Just a hobbyist who started on QBasic in the ancient times. But I’ve been trying to learn it off and on for the past 30 years, and I’ve never learned so much and had so much fun as in the last 1.5 with AI help. I can just think of stuff to do, and shit will just flow out now.

permalink
report
parent
reply
113 points

How do they know that you wrote it yourself and didn’t just steal it?

This is a rule to protect themselves. If there is ever a case around this, they can push the blame to the person that committed the code for breaking that rule.

permalink
report
parent
reply
34 points

This is the only reason rules exist, not to stop people doing a thing but to be able to enforce or defect responsibility when they do.

permalink
report
parent
reply
7 points

I mean, generally rules at least are to strongly discourage people from doing a thing, or to lead to things that WOULD prevent people from doing a thing.

A purely conceptual rule by itself would not magically stop someone from doing a thing, but that’s kind of a weird way to think about it.

permalink
report
parent
reply
11 points

Are they long, super verbose and often incorrect?

permalink
report
parent
reply
38 points

They’ll use AI to detect it… obviously. ☺️

permalink
report
parent
reply
6 points

Magic, I guess ?

permalink
report
parent
reply
25 points

I’m saddened to use this phrase but it is literally virtue signalling. They have no way of knowing lmao

permalink
report
parent
reply
12 points

It’s actually simple to detect: if the code sucks or is written by a bad programmer, and the docstrings are perfect, it’s AI. I’ve seen this more than once and it never fails.

permalink
report
parent
reply
4 points

I’m confused, do people really use copilot to write the whole thing and ship it without re reading?

permalink
report
parent
reply
1 point
*

So your results are biased, because you’re not going to see the decent programmers who are just using it to take mundane tasks off their back (like generating boilerplate functions) while staying in control of the logic. You’re only ever going to catch the noobs trying to cheat without fully understanding what it is they’re doing.

permalink
report
parent
reply
9 points

It’s also probably to make things slightly simpler from a legal perspective.

permalink
report
parent
reply
1 point

That makes sense yes

permalink
report
parent
reply

Technology

!technology@lemmy.world

Create post

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


Community stats

  • 18K

    Monthly active users

  • 12K

    Posts

  • 553K

    Comments