Rafi Hasan
  • Blog
  • Reading
  • Projects
  • Research
  • About
    Browse by tag
    November 12, 2025

    Word Embedding is Magic!

    Word embedding is a magic trick that allows computers to understand language.

    machine-learningword-embedding
    October 26, 2024

    Representation is All You Need

    If you can represent your problem in a differentiable way, a machine can learn it.

    neural-networkdeep-learningbackpropagation
    August 25, 2023

    Generics in Rust with Monomorphization

    Generics in Rust is not like in any other mainstream programming language except for C++ and uses something called Monomorphization. This approach is fantastic since it is basically zero cost.

    rustgenericsoptimization
    August 15, 2023

    What is "dyn" in Rust and How it Powers Polymorphism

    An exploration of the "dyn" keyword in Rust, trait objects, and how they enable polymorphism through dynamic dispatch.

    rustoptimization
    July 6, 2023

    Zero cost abstraction in Rust

    Zero cost abstraction is a fancy term that simply means that adding high-level constructs like a newtype, traits or generics does not contribute to any runtime cost.

    rustoptimization
    April 11, 2022

    Async/Await in Golang

    How to implement async/await in Golang.

    golangconcurrencyasyncawait
    December 4, 2020

    Golang Concurrency And Workerpool: Part 2

    Concurrency limiting worker pool. We deep dive into building a robust worker pool.

    golangconcurrencyworkerpool
    November 7, 2020

    Golang Concurrency And Workerpool: Part 1

    Concurrency limiting worker pool. We deep dive into building a simple workerpool solution.

    golangconcurrencyworkerpool
    March 5, 2019

    Ruby on Rails pattern: Service Objects

    Service objects are a way to encapsulate complex business logic in Ruby on Rails applications.

    rubyrailsarchitecture
    October 1, 2018

    Memory Leaks in Node.js: Part 2

    Memory leaks in Node.js. In this second part, we will discuss caching and unhandled promises.

    nodejsmemoryleaks
    September 12, 2018

    Memory Leaks in Node.js: Part 1

    Memory leaks in Node.js. We deep dive into memory leaks with the help of Clinic.js and how to prevent them.

    nodejsmemoryleaks

    © 2026 Rafi Hasan.

    GitHub