Cleaning up ${GOPATH}/pkg/
Use go clean -modcache
to clean up all the old auto-downloaded Go
modules in ${GOPATH}/pkg/
. That’s all you need to know. Rest of the
post gives just the history of how I got there.
Use go clean -modcache
to clean up all the old auto-downloaded Go
modules in ${GOPATH}/pkg/
. That’s all you need to know. Rest of the
post gives just the history of how I got there.
Download and “installing” Nim using just curl
and tar
.
How to use the Nim importcpp
pragma to bind to C++ Standard Template
Libraries like std::list
.
Arbitrary SystemVerilog snippets
Deploying Nim applications as static binaries for GNU/Linux type operating systems, built using musl.
My attempt at FizzBuzz in Nim.
Nim 0.18.0+ ships with the strformat
library that provides the fmt
template which allows one to format strings using format specifiers
like in Python 3’s f-strings.
Collection of Nim snippets with brief notes as I try them out from the official Nim tutorial, Nim by Example and many other places. This also includes my own musings and hard-learned lessons.
When writing bash scripts, I often need to know if the script is receiving input from the terminal, or some piped process. I would also need to know if the script is sending output to the terminal, or to another piped process.
As I am learning Nim and trying to write new scripts using that, I need to know how to do the same in Nim.
While learning the Nim language and trying to correlate that with my Python 3 knowledge, I came across this awesome comparison table of string manipulation functions between the two languages.
My utmost gratitude goes to the developers of Nim, Python, Org,
ob-nim
and ob-python
, and of course Hugo which allowed me to
publish my notes in this presentable format.