---
title: "Sufyan bin Uzayr (@sufyanism) | Hashnode"
description: "Writer; coder; educator; coffee-lover. Read the latest articles by Sufyan bin Uzayr on Hashnode."
url: "https://hashnode.com/@sufyanism"
---

@sufyanism

# Sufyan bin Uzayr

@sufyanism · Bahrain · Joined March 2026

Writer; coder; educator; coffee-lover.

[Website](https://code.zeba.academy/)

### [The Memory Layout of Rust Enums: Discriminants, Niche Optimization, and Alignment](https://sufyanism.hashnode.dev/the-memory-layout-of-rust-enums-discriminants-niche-optimization-and-alignment?utm_source=hashnode&utm_medium=feed)

The Silent Memory Inflation of Rust Enums: Cache Line Thrashing and the Mechanics of Niche Exploitation

7 min read · [sufyanism.hashnode.dev](https://sufyanism.hashnode.dev/the-memory-layout-of-rust-enums-discriminants-niche-optimization-and-alignment?utm_source=hashnode&utm_medium=feed)

[Oct 2](https://hashnode.com/posts/the-memory-layout-of-rust-enums-discriminants-niche-optimization-and-alignment/6abf6ef56e4529102988d32e)

### [What Happens to the CPU Cache During sched\_yield](https://sufyanism.hashnode.dev/what-happens-to-the-cpu-cache-during-sched-yield?utm_source=hashnode&utm_medium=feed)

The Latency Cost of sched\_yield: Cache Eviction and TLB Thrashing in Production Runtimes

7 min read · [sufyanism.hashnode.dev](https://sufyanism.hashnode.dev/what-happens-to-the-cpu-cache-during-sched-yield?utm_source=hashnode&utm_medium=feed)

[Sep 28](https://hashnode.com/posts/what-happens-to-the-cpu-cache-during-sched-yield/6abb818e492966158cab5a6d)

### [Dissecting the Rust Vtable: Dynamic Dispatch vs. Monomorphization in Assembly](https://sufyanism.hashnode.dev/rust-vtable-monomorphization-assembly?utm_source=hashnode&utm_medium=feed)

Branch Mispredictions, Cache Lines, and the Cost of Fat Pointers

6 min read · [sufyanism.hashnode.dev](https://sufyanism.hashnode.dev/rust-vtable-monomorphization-assembly?utm_source=hashnode&utm_medium=feed)

[Sep 24](https://hashnode.com/posts/rust-vtable-monomorphization-assembly/6abb9f046ec4f300fbfd4427)

### [Why fork() Doesn't Duplicate Memory: Copy-on-Write and the Page Table](https://sufyanism.hashnode.dev/why-fork-doesn-t-duplicate-memory-copy-on-write-and-the-page-table?utm_source=hashnode&utm_medium=feed)

Understanding the fork() function

8 min read · [sufyanism.hashnode.dev](https://sufyanism.hashnode.dev/why-fork-doesn-t-duplicate-memory-copy-on-write-and-the-page-table?utm_source=hashnode&utm_medium=feed)

[Sep 21](https://hashnode.com/posts/why-fork-doesn-t-duplicate-memory-copy-on-write-and-the-page-table/6abf6f34b2a8826e82d15f59)

### [What std::mem::forget Actually Does to Heap Allocations?](https://sufyanism.hashnode.dev/what-std-mem-forget-actually-does-to-heap-allocations?utm_source=hashnode&utm_medium=feed)

Understanding Heap Allocations in Rust

8 min read · [sufyanism.hashnode.dev](https://sufyanism.hashnode.dev/what-std-mem-forget-actually-does-to-heap-allocations?utm_source=hashnode&utm_medium=feed)

[Sep 17](https://hashnode.com/posts/what-std-mem-forget-actually-does-to-heap-allocations/6aabc55d43c501ca7b624ee4)
