Skip to content
View k5602's full-sized avatar
  • /dev/
  • 11:32 (UTC +02:00)

Block or report k5602

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
k5602/README.md

Hey there I'm Khaled

CS student · Software & Systems Engineer
I write Rust, C/C++, and Python - from kernel-level primitives to backend systems.
Driven by the belief that every abstraction has a cost, and every cost can be measured.

#![allow(unused_variables, dead_code)]
use core::arch::asm;
use core::hint::{black_box, unreachable_unchecked};
use core::ptr;

// I am the bone of my Pointer.
pub struct UnlimitedOptimizationWorks;

pub trait Bone {
    type Body;   // Assembly is my body.
    type Blood;  // Thermal-Throttling is my blood.
}

impl Bone for UnlimitedOptimizationWorks {
    type Body  = asm!();
    type Blood = f32; // heat
}

impl UnlimitedOptimizationWorks {
    #[inline(always)]
    pub unsafe fn trace_circuit<T>(pointer: *const T) -> ! {
        // I have unrolled over a thousand loops.
        (0..1024u16).for_each(|i| { black_box(i); });

        // Unaware of Branch Misprediction. Nor aware of Cache Misses.
        if black_box(false)           { unreachable_unchecked(); }
        if pointer == ptr::null::<T>() { unreachable_unchecked(); }

        // Withstood Undefined Behavior to reach Zero-Latency.
        let _ = ptr::read_volatile(pointer);

        // I have no regrets. This is the only path.
        asm!(
            "/* As I Pray — Unlimited Optimization Works! */",
            options(noreturn, nostack)
        );
    }
}

Current work

"Withstood Undefined Behavior to reach Zero-Latency."

Pinned Loading

  1. Vulnera-rs/Vulnera Vulnera-rs/Vulnera Public

    High-Performance Vulnerability Analysis API

    Rust 3

  2. Vulnera-rs/advisors Vulnera-rs/advisors Public

    security advisors crate for vulnera

    Rust 1

  3. gthreads gthreads Public

    deterministic user-space threading runtime in C

    C

  4. course_pilot course_pilot Public

    A ML Augmented Modern Rust desktop application that automatically analyzes video-based courses, creates logical learning structures, and generates personalized study schedules. Built with performan…

    Rust 3

  5. ds-r1_rs ds-r1_rs Public

    A Rust implementation of DeepSeek R1-inspired reasoning model in Rust for educational and research purposes.

    Rust

  6. Freelancer_toolkit Freelancer_toolkit Public

    A tool freelancers would pay for.

    TypeScript