WSL2 hogs memory and doesn't release it even when all consoles are closed. Do wsl --shutdown to free up memory.
I have seen the Future, and it is Not Claude
Unparalleledly deep systems knowledge exclusively licensed to the Win Joe Software Foundation (WSF) under one or more contributor license agreements
Friday, 24 April 2026
Why does TypeScript feel a bit C-Sharpy?
TypeScript was created by Anders Hejlsberg, a Danish software engineer, in 2012. He formerly created C# around the year 2000. He is also known for Turbo Pascal and Delphi, both extraordinary products in their time. Deservedly he is a Microsoft Technical Fellow (a list of whom appear here).
Types in TypeScript
- boolean
- number (which represents integers and floating points)
- string
- BigInt (ES2020+) to represent whole numbers larger than 2^53 -1, and
- symbol to create unique identifiers
Node Version Manager - Strongly Recommended
The Node version manager, nvm, is strongly recommended to manage your version of Node.js and npm.
It also allows switching between various versions of Node (Nodejs and npm) for testing purposes.
As per official docs, nvm is designed to be installed per-user and invoked per-shell. It works on "any POSIX compliant shell" - including on Unix, macOS and WSL.
Once you install nvm (by wget'ing the installation shell script and piping it to bash) you can restart WSL and start using nvm.
Some nvm commands to know:
nvm install node # install latest version
nvm install --lts # install latest LTS version
nvm use node # switches to latest version
nvm use <version> #switch to a specific version
To see all Node versions, do nvm ls. Node uses semantic versioning, following the pattern MAJOR.MINOR.PATCH.
nvm ls shows the version active in shell in blue, and installed versions in green. Yellow are versions referenced by aliases but not installed.
Installing a Transpiler
Dawn of the Transpiler
The term "transpiler" (referring to a source-to-source translation tool, or "translating compiler") gained popularity around 2013 with the proliferation of translators from TypeScript and other abstractions (CoffeeScript, Dart) into JavaScript.
JavaScript at the time was becoming a "universal runtime".
Babel is a popular transpiler. tsc is the official transpiler. It can be installed via npm.