No description
Find a file
2019-06-25 17:00:30 +02:00
.gitignore update README 2019-06-21 17:28:58 +02:00
LICENSE Initial commit 2019-06-21 16:52:11 +02:00
lolcat.nim Fix #1 2019-06-23 15:19:20 +02:00
lolcat.nimble Publish on nimble 2019-06-24 13:03:01 +02:00
lolcat.png update README 2019-06-21 17:28:58 +02:00
README.md Update README.md 2019-06-25 17:00:30 +02:00

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.