Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Releases: schneiderfelipe/unrolled

v0.1-alpha

17 Jul 16:17
Compare
Choose a tag to compare
v0.1-alpha Pre-release
Pre-release

This is the first release of unrolled, a Nim library for unrolling for-loops at compile-time. This supports Nim 1.0.0+ and can be installed using Nimble:

$ nimble install unrolled

Some notable features

  • Support for unrolling for-loops over slices:
    • Simple slices (9ae5095)
    • Slices not including the last value (e.g., 1..<10, 5b23a07)
  • Support for unrolling for-loops over arrays (a18ab5a)
  • Loop body is rewrite to some extent (7309256)
    • There is a known bug, see (#1)
  • Partial support for nested loops (86e632f)
    • There is a known bug, see (#2)

Limitations

Currently, there are two serious bugs known:

  • one regarding variable definitions in the loop body (#1)
  • one about nested loops (#2)