Questions tagged [nim]

Nim (formerly Nimrod) is a statically typed, imperative programming language that combines Pascal semantics with a Python-like syntax and extensive support for meta-programming.

Filter by
Sorted by
Tagged with
6
votes
0answers
29 views

Drawing a line in any direction with pixels

I am doing an image drawing and rendering library, and would like some feedback on this code, it simply draws a line in any direction. The equation for that is: m = (y2 - y1) / (x2 - x1) b = y1 - m ...
4
votes
2answers
52 views

File encoder/decoder in Nim

I wrote a simple program to encode a local text file with password and decode it back. There is one text file and it is either encoded with a password or is in plain text. I had a version in Python ...
3
votes
0answers
136 views

Ring Buffer using templates/macros

I just wrote my first Nim module and was hoping someone with some experience with Nim or similar languages could take a look. In particular I was hoping someone could speak if the use of ...
2
votes
0answers
82 views

Wrapper for Nimrod

I am learning Nimrod and needed a few functions from libsndfile. I deviated slightly from libsndfile to use namespace and ...