Did you know nim can eval itself at runtime like a frickin scripting language?
Clone this gist and do...
nimble install compiler
nim c -r nimeval.nim
...and you should see:
| # to build this with emscripten, you need emsdk on your PATH. | |
| # first, clone https://github.com/emscripten-core/emsdk | |
| # then in that repo run: | |
| # ./emsdk install latest | |
| # ./emsdk activate latest | |
| # and then add the directories it prints out to your PATH | |
| # | |
| # then in this repo run: | |
| # nim c -d:emscripten bug.nim | |
| # |
Did you know nim can eval itself at runtime like a frickin scripting language?
Clone this gist and do...
nimble install compiler
nim c -r nimeval.nim
...and you should see:
| ██╗██████╗ ███████╗ █████╗ ███████╗ ███████╗ ██████╗ ██████╗ █████╗ | |
| ██║██╔══██╗██╔════╝██╔══██╗██╔════╝ ██╔════╝██╔═══██╗██╔══██╗ ██╔══██╗ | |
| ██║██║ ██║█████╗ ███████║███████╗ █████╗ ██║ ██║██████╔╝ ███████║ | |
| ██║██║ ██║██╔══╝ ██╔══██║╚════██║ ██╔══╝ ██║ ██║██╔══██╗ ██╔══██║ | |
| ██║██████╔╝███████╗██║ ██║███████║ ██║ ╚██████╔╝██║ ██║ ██║ ██║ | |
| ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ | |
| _______________________________________ | |
| |,---"-----------------------------"---,| | |
| ||___ ............................ || |