Supports v1.0

Chapter 1 Explains what Nim is, compares it to other programming languages, and discusses its strengths and weaknesses. Download

Chapter 2 Teaches the basics, such as the syntax and fundamental features of the language. This includes a demonstration of procedure definitions and exception handling.

Chapter 3 This is where you’ll develop your first nontrivial Nim application. The primary purpose of this application is communication: it allows messages to be sent through a network. You’ll learn, among other things, how to create command- line interfaces, parse JSON, and transfer data over a network in Nim.

Chapter 4 Gives an overview of the standard library, particularly the parts of it that aren’t covered in other chapters but are useful.

Chapter 5 Discusses package management in Nim and teaches you how to create your own packages and make them available to others.

Chapter 6 Explains what parallelism is and how it can be applied to different programming tasks. You’ll see a parsing example, demonstrating different ways to parse data in Nim and how parsing can be parallelized.

Chapter 7 This is where you’ll develop your second nontrivial Nim application: a web application based on Twitter. You’ll learn how to store data in a SQL database and generate HTML.

Chapter 8 Looks at the foreign function interface and shows how it can be used to make use of C and JavaScript libraries. You’ll develop a simple application that draws the letter N on the screen, first using a C library and then using JavaScript’s Canvas API. Download