Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
* [Go](https://golang.org)
* [Joker](https://joker-lang.org)
* [Racket](https://racket-lang.org)
+* [Nim](https://nim-lang.org)
+
+## Binary size comparison
+
+Among the compiled languages tested, Nim produces the smallest binaries and Go
+the largest. Rust is in between.
+
+| Language | Binary size |
+| -------- | -------- |
+| Go | 4100 KB |
+| Rust | 447 KB |
+| Nim | 123 KB |
+
## Disclaimer
The implementations are written with hardly 3 hours of experience with each language and will perform poorly. Use at your own risk if you want to.
--- /dev/null
+import os
+import strutils
+
+let currentDir = splitPath(currentSourcePath).head
+let inputDir = paramStr(1)
+
+let searchDir = if inputDir.len != 0 : inputDir else: currentDir
+
+let searchTerm = "#+"
+
+for file_name in walkDirRec(searchDir):
+ let contents = readFile(file_name)
+ let lines = contents.split('\n')
+ for line in lines:
+ if line.startsWith(searchTerm):
+ echo file_name