Skip to content

Conversation

@WalterBright
Copy link
Member

I thought it would be fun to add test cases for the arithmetic code generation using AI.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#22502"

@ibuclaw
Copy link
Member

ibuclaw commented Feb 3, 2026

@WalterBright how does the use of AI to generate code align with existing copyright assignments and code licence?

@WalterBright
Copy link
Member Author

Great question!

https://www.copyright.gov/ai/Copyright-and-Artificial-Intelligence-Part-2-Copyrightability-Report.pdf

See page 8.

The code was generated with a one line prompt. I translated the result from C to D. Based on the pdf, it is not copyrightable: "Copyright does not extend to purely AI-generated material, or material where there is insufficient human control over the expressive elements. "

@ibuclaw
Copy link
Member

ibuclaw commented Feb 3, 2026

Right, so is there any concern with dmd and AI contributions? (#22262, #22276, #22285, #22349, ...)

@WalterBright
Copy link
Member Author

Those PRs are highly unlikely to be copies of somebody else's code, so I'm not too concerned about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants