www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - An notable case of AI slop, agents use the most modern version of D

reply user1234 <user1234 12.de> writes:
An notable case of AI slop, agents use the most modern version of 
D, ignoring the constraints of self-hosting.

This just made my 
[day](https://github.com/dlang/dmd/pull/22802/files#diff-862192b33df815981dcb4a8a49bc7dc572506b444a7dc034fde3643f887e2982R2239)

```d
while (auto tsa = t.isTypeSArray())
```

So what you can see here is so funny. This is indeed a valid D 
construct but not yet available for the compiler. Agents have no 
notions of that. So very obviously errors, when trying to self 
host:

 src/dmd/dsymbolsem.d(2239): Error: expression expected, not auto
 src/dmd/dsymbolsem.d(2239): Error: found tsa when expecting )
[etc](https://buildkite.com/dlang/dmd/builds/45977/steps/canvas?sid=019d1d38-c7b0-441e-81d0-99ccf246b6f4)... What's the point ? 1. loss of time reviewing 2. if you publish what you think, the poster will eventually fix, but nonetheless you'll just have a contributor which has no interest in D Have a great D.
Mar 24
next sibling parent FeepingCreature <feepingcreature gmail.com> writes:
On Tuesday, 24 March 2026 at 14:19:37 UTC, user1234 wrote:
 An notable case of AI slop, agents use the most modern version 
 of D, ignoring the constraints of self-hosting.

 This just made my 
 [day](https://github.com/dlang/dmd/pull/22802/files#diff-862192b33df815981dcb4a8a49bc7dc572506b444a7dc034fde3643f887e2982R2239)

 ```d
 while (auto tsa = t.isTypeSArray())
 ```

 So what you can see here is so funny. This is indeed a valid D 
 construct but not yet available for the compiler. Agents have 
 no notions of that. So very obviously errors, when trying to 
 self host:

 src/dmd/dsymbolsem.d(2239): Error: expression expected, not 
 auto
 src/dmd/dsymbolsem.d(2239): Error: found tsa when expecting )
[etc](https://buildkite.com/dlang/dmd/builds/45977/steps/canvas?sid=019d1d38-c7b0-441e-81d0-99ccf246b6f4)... What's the point ? 1. loss of time reviewing 2. if you publish what you think, the poster will eventually fix, but nonetheless you'll just have a contributor which has no interest in D Have a great D.
This is a developer skill issue, not AI skill issue. Let the agent iterate. If you didn't tell me what errors my code produced, I would also look like I was very very bad at programming.
Mar 24
prev sibling parent reply Serg Gini <kornburn yandex.ru> writes:
On Tuesday, 24 March 2026 at 14:19:37 UTC, user1234 wrote:
 This just made my 
 [day](https://github.com/dlang/dmd/pull/22802/files#diff-862192b33df815981dcb4a8a49bc7dc572506b444a7dc034fde3643f887e2982R2239)
I can see 30 successful checks in GitHub runners.. They are not running or how did they pass?
Mar 24
parent user1234 <user1234 12.de> writes:
On Tuesday, 24 March 2026 at 14:32:22 UTC, Serg Gini wrote:
 On Tuesday, 24 March 2026 at 14:19:37 UTC, user1234 wrote:
 This just made my 
 [day](https://github.com/dlang/dmd/pull/22802/files#diff-862192b33df815981dcb4a8a49bc7dc572506b444a7dc034fde3643f887e2982R2239)
I can see 30 successful checks in GitHub runners.. They are not running or how did they pass?
It's about self-hosting. The host compiler does not allow the construct I pointed, hence the errors partially quoted but fully visible in the second link.
Mar 24