TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NetBSD bans use of Copilot-generated code

69 pointsby jaypatelaniabout 1 year ago

6 comments

GrantMoyerabout 1 year ago
This policy isn't meant to be enforceable; it's to signal to contributors — who may not have even considered the legal implication of using LLM codegen tools — that LLM codegen is not allowed because of the legal risk. It's an addendum to the existing guideline "Do not commit tainted code to the repository", which was already practically unenforceable, and it's intended to address a real and new phenomenon.
jartabout 1 year ago
Here&#x27;s an example of how easy it is to generate code on NetBSD using an open LLM:<p><pre><code> Last login: Fri May 17 23:58:08 2024 from 10.10.10.129 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 Welcome to NetBSD! We recommend that you create a non-root account and use su(1) for root access. $ .&#x2F;curl -L -o tinyllama https:&#x2F;&#x2F;huggingface.co&#x2F;Mozilla&#x2F;TinyLlama-1.1B-Chat-v1.0-llamafile&#x2F;resolve&#x2F;main&#x2F;TinyLlama-1.1B-Chat-v1.0.Q5_K_M.llamafile $ chmod +x tinyllama $ .&#x2F;tinyllama -e -p &#x27;```c\nvoid *memcpy(void *dst,&#x27; -r &#x27;```\n&#x27; --temp 0 --log-disable &lt;s&gt; ```c void *memcpy(void *dst, const void *src, size_t n) { char *d = (char *)dst; const char *s = (const char *)src; while (n--) { *d++ = *s++; } return dst; } ``` $ </code></pre> I think tinyllama and llamafile are much more culturally compatible with NetBSD&#x27;s values than something like Microsoft Copilot.
评论 #40397605 未加载
firebazeabout 1 year ago
See also <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40375029">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40375029</a>: 99 points | LeoPanthera | 10 hours ago | 80 comments
elromulousabout 1 year ago
This seems basically unenforceable. It very quickly becomes the war that schools are now waging on plagiarism.
评论 #40396641 未加载
评论 #40396798 未加载
评论 #40396978 未加载
评论 #40378198 未加载
评论 #40378094 未加载
评论 #40396620 未加载
oefrhaabout 1 year ago
This is like outlawing sneezing at home. Unless you’re sneezing so loudly that your neighbor decides to call the police (equivalent would be reproducing large blocks of existing code verbatim, but Copilot already has warnings for that kind of thing), good luck enforcing it.
评论 #40396935 未加载
electrogravabout 1 year ago
Do they think Copilot&#x2F;ChatGPT are usernames of contributor accounts which can be banned from a project&#x2F;repo?<p>It seems the underlying issue here is bad code submitted ultimately by human contributors. Consistently thorough code review and testing will always be necessary.
评论 #40397031 未加载