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
1
vote
0answers
39 views

Small language, compiles to register VM bytecode

I am trying to implement a small programming language, in Nim, as a way of improving my (close to non-existent) programming skills. The programming language is intended to have IF-GOTO, variables, and ...
2
votes
1answer
41 views

Tiny attempt at a register machine in Nim

I am attempting to learn the Nim language by making a small and simplistic register machine. It is intended to interpret some basic instructions. The entire parsing lexing process consists of ...
6
votes
0answers
41 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
126 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
159 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
84 views

Wrapper for Nimrod

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