From the D Blog: Building a Local LLM Agent in D

user1234 user1234 at 12.de
Mon Jun 8 13:50:36 UTC 2026


On Monday, 8 June 2026 at 08:45:50 UTC, Mike Parker wrote:
> We've got a handful of talks about LLMs lined up for DConf this 
> year. As a sort of primer, you can read this new blog post by 
> Danny Arends, ['Teaching an AI to Know Itself: Building a Local 
> LLM Agent in 
> D'](https://blog.dlang.org/2026/06/07/teaching-an-ai-to-know-itself-building-a-local-llm-agent-in-d/), in which he talks about [the local agentic LLM project he built in D](https://github.com/DannyArends/DLLM) called DLLM.

Nice but I saw problems with the use of `mixin`.

1. it supports severals arguemnts since a few years
2. it can be a rhs.

so for point 1

```d
mixin("alias ThisModule = " ~ __MODULE__ ~ ";");
```

can be rewritten nowadays, without concat,

```d
mixin("alias ThisModule = ",  __MODULE__, ";");
```

and for point 2

```d
alias ThisModule2 = mixin(__MODULE__);
```

otherwise I enjoy seeing a new generation hatching.


More information about the Digitalmars-d-announce mailing list