>From <https://nim-lang.org/docs/manual.html#pragmas-global-pragma>: The global pragma can be applied to a variable within a proc to instruct the compiler to store it in a global location and initialize it once at program startup. Run
So it's just a way to have a variable initialize only once without adding a separate variable for caching.