Rafi Hasan
  • Blog
  • Projects
  • About
    <- BACKAll tags
    Tag

    optimization

    3 posts

    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, type class or generics do not contribute to any runtime cost.

    rustoptimization

    All tags

    concurrency(2)future(1)generics(1)golang(2)optimization(3)personal(1)reflection(1)rust(3)workerpool(2)

    © 2026 Rafi Hasan.

    GitHub