Nim is a relatively new programming language which allows users to write easy-to-read high-performance code. But if you are reading this Nim tutorial, the chances are that you already know about Nim.
The tutorial is available both online and as a book in epub format.
This is a work-in-progress: if you spot any errors and/or you have an idea how to make this tutorial better, please report it to the issue tracker.
-
People with no or minimal previous programming experience
-
People with some programming experience in other programming languages
-
People who want to explore Nim for the first time, starting from scratch
-
People with lots of programming experience: other, more advanced, tutorials might suit you better. See Official Tutorial or Nim by Example.
-
People experienced in Nim (feel free to help make this tutorial better)
The aim of this tutorial is to give you the basics of programming and the Nim syntax so you can have an easier time following other tutorials and/or explore further by yourself.
Instead of just reading what is written, it would be the best if you try the stuff by yourself, modify the examples, think of some examples of your own, and be curious in general. The exercises at the end of some chapters should be non-negotiable — don’t skip them.
If you need additional help understanding some parts of the tutorial or with the exercises, you can always ask for help on the Nim forum, the Nim Gitter channel, their Discord server, or Nim’s IRC channel on freenode, #nim.
The source files are available on Github.