lolcat
lolcat implementation in Nim
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install lolcat
choosenim install lolcat
git clone https://github.com/OHermesJunior/lolcat.nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| lolcat | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/OHermesJunior/lolcat.nim |
|---|---|
| Homepage | https://github.com/OHermesJunior/lolcat.nim |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
lolcat.nim
lolcat implemented with nim It's a simple program I made to learn the Nim language
- Fast and with no dependencies (compiles to C)
- Handles lines with terminal width and EOL
- Always uses truecolor
- Animates text print

Comparison
Here is a comparison of lolcat versions running time dmesg | lolcat
| lolcat edition | real time | user time | sys time | correct line ending | implemented in |
|---|---|---|---|---|---|
| lolcat.nim | 0,289s | 0,152s | 0,102s | yes | Nim |
| clolcat | 0,055s | 0,019s | 0,043s | no | C |
Even with my little experience and probably not the best implementation, Nim shows an impressive speed in comparison with pure C.
The original Ruby version wasn't tested, but in other comparisons it's 10x slower than the C version, while my Nim version is just 5x.
Of course, that's all in my computer, the times may vary.