Skip to main content

Posts

Featured

Teaching LLMs to Write Better Nim

I have been working on a public set of Nim SKILL.md files for coding assistants: https://github.com/planetis-m/skills They are not meant to make an LLM "know Nim" in some grand sense. Each one is a small file that tells the assistant what to pay attention to for a specific kind of work: ownership hooks, API design, tests, C bindings, wrappers, docs, fuzzing, debugging, error handling, and code organization. The motivation is practical. LLMs can write useful Nim code, but they also drift. They half-remember language rules, invent API names, miss compiler-specific semantics, and produce code that compiles while still being the wrong shape. For a niche language this matters more than usual. There is less training data, fewer examples in the wild, and a lot of the important knowledge lives in compiler behavior, standard library conventions, and the habits of experienced programmers. A skill file is my attempt to write those habits down in a form an assistant can actually...

Latest Posts

Architecting Games in Nim: A Pragmatic Guide

Using NimScript for your build system

Naylib Goes Mobile: Porting to Android in Just 3 Days!

An introduction to ECS by example