Blog

Blog sub title

Prefer Scoped Enums Over Unscoped Enums (Notes)

Scoped vs Unscoped Enums

  • General rule: declaring a name inside curly braces is limited to that scope.
  • Exception: C++-98 style Enums

Prefer Alias Declarations to Typedefs (Notes)


NOTE

My notes on Chapter 3, Item 9 of Effective Modern C++ written by Scott Meyers.

Some (or even all) of the text can be similar to what you see in the book, as these are notes: I’ve tried not to be unnecessarily creative with my words. :)


GPU Parallel Programming: Chapter 1

Chapter 1: Introduction to CPU Parallel Programming

Installing PyTorch From Source!

Hi Everyone! In this blog post, we’ll be discussing setting up a developer environment for PyTorch. Our goal is to build PyTorch from source on any of the Linux distributions. Presently, I’m working on the Ubuntu 20.04 distribution of Linux in WSL (Windows Subsystem Linux). You can install any other Ubuntu version of your choice, the procedure will be the same because all the Ubuntu versions are Debian-based. Enjoy the installation process! Yey!!

Gentle Introduction to Valgrind!

Valgrind

Valgrind is an useful tool if you are working with C/C++. It is a suite of multipurpose tools with varied functionality. It allows you to detect memory-leak, profile your code and more. One of the thing that it shines at is helping debugging trick memory bug.

Latest Posts

Prefer Scoped Enums Over Unscoped Enums (Notes)

Scoped vs Unscoped Enums

  • General rule: declaring a name inside curly braces is limited to that scope.
  • Exception: C++-98 style Enums

Prefer Alias Declarations to Typedefs (Notes)


NOTE

My notes on Chapter 3, Item 9 of Effective Modern C++ written by Scott Meyers.

Some (or even all) of the text can be similar to what you see in the book, as these are notes: I’ve tried not to be unnecessarily creative with my words. :)


GPU Parallel Programming: Chapter 1

Chapter 1: Introduction to CPU Parallel Programming