Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.26 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.26 KB

Learning Nim

This repo contains odd bits and pieces as I'm trying to learn Nim. The code is probably not well optimized or written in a "Nim" way, but it's a start!

The tutorial/ folder contains some bits and pieces that I've pulled from various tutorials and played with.

The maze-solver/ folder contains code for Trémaux's Algorithm, used to solve mazes. It's been ported from my previous JavaScript implementation just to start writing some Nim code.

TODO: I'd like to use Nim's js build target to generate a file that draws the maze and its solution on a canvas.

The jester/ folder contains a super basic CRUD API (currently, all in memory) written using, you guessed it, jester, as well as norm. Also includes my thoughts on the framework. The prologue/ folder is the same API but using the prologue library.

Running the code

Different bits of code use different libraries, including:

  • jester
  • norm
  • prologue

Just run nimble install [pkg] for the packages you may need.

For all of the .nim files you see, just run:

❯ nim c -r [filename].nim