D and AI

antonio antoniocabreraperez at gmail.com
Mon Feb 16 23:09:14 UTC 2026


On Sunday, 15 February 2026 at 05:41:55 UTC, Daren Scot Wilson 
wrote:
> On Wednesday, 11 February 2026 at 09:10:25 UTC, Lars Johansson 
> wrote:
>> I’m learning D, and as an experiment I asked Claude.ai to ...
>
> Impressive use of Claude!
>
> A few days ago I asked Gemini how to do something with network 
> sockets in D. Nothing tricky, just something I haven't dealt 
> with since over a decade ago, so was rusty. Gemini explained a 
> few things and gave sample code in D.
>
> I am impressed that any AI can do anything with D or with any 
> of the less widely used languages. No doubt all AIs that can 
> deal with source code have been trained on the big languages, 
> Java, Python etc. but apparently, at least Gemini and Claude 
> have seen plenty of D.
>
> This is good!

I'm using Antigravity with Gemini to experiment with "agents" 
(not AI agents... agents as small active pieces following simple 
rules) and "emergence" (how global behavior emanates from local 
interrelations) using D and raylib for visualization. In 2 
minutes I had a debuggable project... after 10 minutes of testing 
I decided not to review the code: Gemini was programming 
fluently. I was simply describing changes to the experiment and 
the code was traslating my natural language (in Spanish) in a few 
seconds... 3 hours of experimentation that in the past would have 
needed two weeks of nightly work (wasting my sleep time :-p).

Generated code is really good and Gemini solves fastly problems 
like not using COLORS definition from raylib and generating it's 
own enum (and it is it's own decision)

Other experiments:  Relastivistic (gravity "propagates") 
simulation of solar system,  Sort arlgorithms based on agents 
(Agentic Bubblesort in a circular topology?) , Economics based on 
agents, ...can rotation emerge from a not rotational system of 
isolated particles and gravity forces?

A second project

I designed a programming language (hight level one) years ago and 
I'm using claude as a compiler :-p transpiling to D... work in 
progress :-)

AI opens a lot of ways for experimentation...


More information about the Digitalmars-d mailing list