Jump to page: 1 2

Thread overview
Generative AI and D: an open letter

Jul 05

Sergey

Jul 05

monkyyy

Re: Generative AI and D: comparison with other language projects

Jul 07

Denis F

Jul 07

Denis F

Jul 07

user1234

July 05

Generative AI and D: an open letter
Gravatar of Indraj GandhamPosted by Indraj GandhamPermalinkReply
Gravatar of Indraj Gandham

https://indraj.net/open-letter-to-dlf.pdf

This letter has now been sent to DLF. I would like to thank all of the signatories for their support.

Kind regards
Indraj

July 05

Re: Generative AI and D: an open letter
Gravatar of Dejan LekicPosted by Dejan Lekic
in reply to Indraj Gandham
PermalinkReply

Dejan Lekic

Gravatar of Dejan Lekic

Posted in reply to Indraj Gandham

On Sunday, 5 July 2026 at 09:47:34 UTC, Indraj Gandham wrote:

>

This letter has now been sent to DLF. I would like to thank all of the signatories for their support.

Even though I do use LLMs in many places I would have signed this document myself (if i was asked) as I firmly believe D community has enough brains smarter than mine to maintain and improve current core D projects.

Sure I am not against core D devs using LLMs as "sidekicks" that can help them get some answers about codebase, review new changes before they are pushed to the official review, etc.

July 05

Re: Generative AI and D: an open letter
Gravatar of Indraj GandhamPosted by Indraj Gandham
in reply to Dejan Lekic
PermalinkReply

Indraj Gandham

Gravatar of Indraj Gandham

Posted in reply to Dejan Lekic

On Sunday, 5 July 2026 at 10:16:37 UTC, Dejan Lekic wrote:

>

Even though I do use LLMs in many places I would have signed this document myself (if i was asked) as I firmly believe D community has enough brains smarter than mine to maintain and improve current core D projects.

The letter is a live document, so you can still sign it and I will update it.

>

Sure I am not against core D devs using LLMs as "sidekicks" that can help them get some answers about codebase, review new changes before they are pushed to the official review, etc.

I don't want this letter to be perceived as being anti-AI. It acknowledges that LLMs can enhance productivity, but at the same time highlights a very specific risk that members of our community are concerned about.

July 05

Re: Generative AI and D: an open letter
Gravatar of SergeyPosted by Sergey
in reply to Indraj Gandham
PermalinkReply

Sergey

Gravatar of Sergey

Posted in reply to Indraj Gandham

On Sunday, 5 July 2026 at 09:47:34 UTC, Indraj Gandham wrote:

>

https://indraj.net/open-letter-to-dlf.pdf

This letter has now been sent to DLF. I would like to thank all of the signatories for their support.

Kind regards
Indraj

I think having relevant materials in one place is a good practice.
So I would ask everyone to post useful links here (other discussions inside D community or other language communities, lawyers recommendations, best practices from other companies and open source projects).

One small discussion was happened here for example: https://github.com/dlang/dmd/pull/22502

July 05

Re: Generative AI and D: an open letter
Gravatar of monkyyyPosted by monkyyy
in reply to Sergey
PermalinkReply

monkyyy

Gravatar of monkyyy

Posted in reply to Sergey

On Sunday, 5 July 2026 at 12:20:52 UTC, Sergey wrote:

>

On Sunday, 5 July 2026 at 09:47:34 UTC, Indraj Gandham wrote:

>

https://indraj.net/open-letter-to-dlf.pdf

This letter has now been sent to DLF. I would like to thank all of the signatories for their support.

Kind regards
Indraj

I think having relevant materials in one place is a good practice.
So I would ask everyone to post useful links here (other discussions inside D community or other language communities, lawyers recommendations, best practices from other companies and open source projects).

One small discussion was happened here for example: https://github.com/dlang/dmd/pull/22502

anti-ai wsj-writers: https://youtu.be/Pr6tOIjFXDs
cocaine-driven vibecoding: https://www.youtube.com/live/VNbW4wrcfSw
actual machine-learning content: https://www.youtube.com/watch?v=uQUsAndESdQ https://youtu.be/2eoOqqLvkl8

July 05

Re: Generative AI and D: an open letter
Gravatar of Guillaume PiolatPosted by Guillaume Piolat
in reply to Dejan Lekic
PermalinkReply

Guillaume Piolat

Gravatar of Guillaume Piolat

Posted in reply to Dejan Lekic

On Sunday, 5 July 2026 at 10:16:37 UTC, Dejan Lekic wrote:

>

Sure I am not against core D devs using LLMs as "sidekicks" that can help them get some answers about codebase, review new changes before they are pushed to the official review, etc.

So far it seems to be the biggest AI risks is widespread "AI psychosis", the more you talk to AI, the more it creates psychosis and weird delusions. But D being good right now is some evidence from judgement not having been clouded by delusions in the past. So it would help if we are really sure not to "give up" and embrace magical thinking and psychosis.

Using LLMs for review (not letting them create) is on the other hand rather fruitful, like super good static analysis. Going full-vibe creates a sort of agitation that feels good but stressful a bit like hypomania.

That is to say, the letter highlight the copyright risk, but underneath there is imo the much uglier problem of destroying community.

July 06

Re: Generative AI and D: comparison with other language projects
Gravatar of Walter BrightPosted by Walter Bright
in reply to Indraj Gandham
PermalinkReply

Walter Bright

Gravatar of Walter Bright

Posted in reply to Indraj Gandham

LLM policies on other projects similar to ours, for comparison:

Rust:

Code creation: You cannot use AI (like Large Language Models) to write the code you submit.The human rule: You are completely responsible for your submissions. You cannot claim AI output as your own work.Allowed AI uses: You can use AI to hunt for bugs, analyze code, or review changes.Penalties: Low-effort, AI-generated code dumps (sometimes called "slop") can get you banned from making contributions.

GNU:

GCC, and the GNU C Library) generally reject or severely restrict Artificial Intelligence (AI) and Large Language Model (LLM) generated code

LLVM:

Human Vetting: You must read and understand all AI-generated code before asking project members to review it.Labeling: You should label contributions that contain substantial amounts of AI-generated content.No Autonomous Agents: Digital bots or agents that submit code or make changes without human approval are not allowed.No AI for Beginners' Tasks: AI tools must not be used to solve issues labeled as "good first issues," as these are meant to be learning opportunities for new contributors.

Python:

The Python Software Foundation (PSF) and the core Python language place zero restrictions on how you write your code.

Java:

The OpenJDK Governing Board officially bans AI-generated code from being submitted to the project. You can use AI as an assistant to brainstorm, but you cannot submit code written by a Large Language Model (LLM) into the official Java codebase.

Zig:

Zig has a strict ban on AI-generated code.The Zig language has an official rule against submitting any LLM-generated content. This includes brainstorming, translating, debugging, or writing code.

July 06

Re: Generative AI and D: comparison with other language projects
Gravatar of Indraj GandhamPosted by Indraj Gandham
in reply to Walter Bright
PermalinkReply

Indraj Gandham

Gravatar of Indraj Gandham

Posted in reply to Walter Bright

Some of the policies you cite contain provisions related to code quality. This is not the issue highlighted in the letter.

It has become known that certain modules which contain large amounts of LLM-generated code are being considered for inclusion in Phobos v3. The signatories of the letter oppose this course of action on the grounds that such code is of questionable provenance and request that DLF seeks legal advice before doing so.

I think this is entirely reasonable since there is at least one ongoing lawsuit in the United States which specifically references model output as being potentially infringing. We probably won't know the final outcome for a while as the parties involved are likely to appeal any rulings all the way to the Supreme Court.

Phobos is in a unique position compared to other D components as portions of it are frequently included in or distributed with application executables. Since it is the official standard library, it is expected that most applications will make use of some of its functionality.

In response to a user suggestion in another thread that Phobos should segment LLM-generated code, it was made clear by one of the developers working on v3 that "all of the stdlib would end up in the LLM segment".

This is a highly complex legal matter and it requires an answer from a legal professional. Many of those projects you mentioned have large corporate sponsors and have nothing to worry about even if their policies turn out to be legally insufficient, as these sponsors will be able to allocate the resources required to rectify any mistakes.

As far as I am aware, D does not enjoy the same degree of support. It's a bit like gambling in Vegas when you're broke just because all your friends are doing it.

D is going to have to find its own path, but seeking and publishing advice from someone qualified to provide it would be a good first step towards building confidence in any policy DLF wishes to adopt.

July 07

Re: Generative AI and D: comparison with other language projects
Gravatar of Adam WilsonPosted by Adam Wilson
in reply to Indraj Gandham
PermalinkReply

Adam Wilson

Gravatar of Adam Wilson

Posted in reply to Indraj Gandham

On Monday, 6 July 2026 at 23:27:58 UTC, Indraj Gandham wrote:

>

In response to a user suggestion in another thread that Phobos should segment LLM-generated code, it was made clear by one of the developers working on v3 that "all of the stdlib would end up in the LLM segment".

You are taking my comment entirely out of context and deceptively framing it. The users suggestion was to preemptively segment ALL code that was touched by LLM's in any way. My response was that over time, as LLM's touch more and more of the code, then in short order "all of the stdlib would end up in the LLM segment". Which is objectively correct.

You are trying to make it sound like I said that we would be forcing all Pv3 code into the LLM segment specifically so that we can freely use LLMs on Phobos 3. This is false. The truth of my statement is self-evident in it's full context and is far less provocative than your framing of the quote would suggest. I was describing the end-state of the users request. It was NOT a position statement about how Phobos 3 development is to be conducted.

If you are going to make an argument using my words, please have the basic courtesy to include the full context. You are not doing your argument any favors by cherry-picking a quotes then using a deceptive framing on it to make it sound like I said something far more provocative than I did. You will not win debates by deceiving your audience.

(Link to the referenced post for any interested readers: https://forum.dlang.org/post/vekjnpgkwkspznqpceej@forum.dlang.org)

July 07

Re: Generative AI and D: comparison with other language projects
Gravatar of Indraj GandhamPosted by Indraj Gandham
in reply to Adam Wilson
PermalinkReply

Indraj Gandham

Gravatar of Indraj Gandham

Posted in reply to Adam Wilson

The author of that post did not explicitly specify the degree of LLM use. However, he did say:

>

If the upstream devs is going to start using ai, this should be preemptively segmented into a new namespace, perhaps bracca. Rather then trying to clean up a mess later, in the event copyright law suddenly declares you must back pay if you used ai trained on gnu code.

I don't think this could be a problem if the LLM was being used only for small edits. You have assumed meanings and intentions in both that post and my post here. The author also clarified in his reply to you that he was not suggesting that LLMs should be banned, as you assumed.

>

You are trying to make it sound like I said that we would be forcing all Pv3 code into the LLM segment specifically so that we can freely use LLMs on Phobos 3. This is false. The truth of my statement is self-evident in it's full context and is far less provocative than your framing of the quote would suggest. I was describing the end-state of the users request. It was NOT a position statement about how Phobos 3 development is to be conducted.

I was not insinuating this at all. I brought it up as it suggests that the segmentation approach has already been rejected.

>

If you are going to make an argument using my words, please have the basic courtesy to include the full context. You are not doing your argument any favors by cherry-picking a quotes then using a deceptive framing on it to make it sound like I said something far more provocative than I did. You will not win debates by deceiving your audience.

It would seem that you are not particularly interested in debating this issue anyway:

https://forum.dlang.org/post/adajbcujigtteasbpayk@forum.dlang.org

But I suppose I shouldn't assume.