Nim Tutorial
Nim features
- Nim can be compiled to C, C++, and even JavaScript;
- Nim has macros. It’s very useful for machine learning;
- It has generics, templates, and the macros;
- Nim has strong data types, verified at compilation;
- It is also multi-paradigm: OOP, Functional and Imperative;
- Nim has a foreign function interface (FFI);
- Nim has a garbage collector,
- Provides smooth async support that comes built-in;
What's wrong?
Nim has potential but is not a popular language. Is something wrong? My oppinion is that Nin has design issues that hold developers back. First of all the author do not work full time to this language. These are some other issues I have read from internet about Nim
- People say the community is not active;
- People say that it has many bugs;
- People say there are no jobs for Nim;
I don't like!
I don't know the language yet, I study and take notes but I have found from start things that I don't like and demotivate my study. However I want to learn this language, eventual I can contribute to improve it. So this is a hobby project actually.
- Not having end of block is bad idea;
- Compilation to C/C++ makes no sens for a system language;
- Compilation to JavaScript is unnecessary for a system language;
Learning Nim
Next tutorial will describe Nim language in details. We organize pages in logical order from basic to advanced concepts. Don't forget to take a break after reading each page. If you are first time here, ignore the index, and continue reading.
Nim Index
Nim Quiz
External References
Our tutorial is introductory so there may be some information missing. For deep learning please use these external resources. We have selected only resources that have no ads and are safe to use. We use these resources ourselves to make this tutorial.
Read next: Syntax