AI Risk Clock
Doomsday Clock2 min to midnight
→
⚖️ Neutral edit
eu.36kr.com2026-06-01

Zig, the Open - source Programming Language, Says 'No' to AI - generated Code - eu.36kr.com

IndustrySafety

The open-source programming language Zig has officially banned the submission of code generated by artificial intelligence tools. In a recent podcast, Zig's creator Andrew Kelley described AI-assisted code contributions as 'junk', framing the decision as a matter of quality and trust in the project's codebase. The policy applies to contributions made to the Zig compiler and standard library.

The decision was made public following comments Kelley made during an interview, which were then amplified on social media. Zig's maintainers have since clarified that the ban applies to any code produced by large language models, regardless of the specific tool used. The move puts Zig among a small but growing number of open-source projects explicitly rejecting AI-generated contributions due to concerns about correctness, maintenance, and licensing ambiguity.

The policy has sparked debate within the developer community, with some praising the emphasis on human-written code and others criticizing it as short-sighted given the rapid improvement of AI coding assistants. Kelley's characterization of AI-generated code as 'junk' reflects a broader tension in software development between efficiency and quality as AI tools become more prevalent. Zig's stance may influence other open-source projects weighing similar restrictions.

Read this story in another voice
● REC · 2026