Generative AI and D: comparison with other language projects
Indraj Gandham
newsgroups at indraj.net
Mon Jul 6 23:27:58 UTC 2026
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.
More information about the Digitalmars-d
mailing list