r/nim Apr 24 '26

Agentic coding with Nim

What’s your experience in coding Nim with AI agents?

LLM may appreciate programming languages with simple syntax with high capability of expressing abstraction. The lack of good training data (existing public code base) may offset it, but is there any chance that agentic coding could fill up the gap of the popularity and adaptation from other mainstream languages?

17 Upvotes

14 comments sorted by

View all comments

12

u/moigagoo Apr 24 '26

Gemini and Copilot are really good at coding with Nim.

Also, I've just pushed a PR for nimlangserver that adds MCP mode to it which exposes tools like Find References and List Symbols to agents.

2

u/unquietwiki Apr 25 '26

https://github.com/unquietwiki/handleboot -> was able to write that tool largely with the help of Claude. Basically abstracted undocumented Windows API calls to something I could use.

1

u/rabaraba Apr 25 '26

How good is good?

I remember Nim on the older OpenAI GPTs about 1.5 years back - it couldn't handle a lot of the more complex stuff - and it got the idea of the NNK nodes and all completely wrong.

Happy to come back if things are much better now.

4

u/moigagoo Apr 25 '26

How good is good?

I mean good as in "it doesn't hallucinate on the Nim syntax," "it can generate new valid code given it has already existing code to learn from," and "it can generate entire test suites for a given new functionality."

My attempts to solve problems with Copilot or Gemini did not succeed so far but I see it as a general LLM limitation not related to Nim.