Skip to content
View had2020's full-sized avatar
🦾
Coding and Learning
🦾
Coding and Learning

Block or report had2020

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.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

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

Report abuse
had2020/README.md

[C/C++ and Rust]: Hadrian Lazic (a.k.a. Had2020)

"Avoid the heap, live on the stack & L1 cache!"


My Rust Crates
Crates.io

My goal is Mechanical Sympathy in low-level programming. I build to learn by doing;

trying to eke out the most from every cycle possible, seeing the hardware not as an abstraction, but as a key in execution.


To do this I focus on:

  • Memory Hierarchy: Designing for L1/L2 cache residency. I utilize Data-Oriented Design (DOD) and strict 64-byte cache-line alignment to eliminate misses and false sharing.

  • CPU Pipeline: Optimizing for the Hardware Prefetcher via linear access patterns. I minimize pipeline stalls through branchless programming, bit-manipulation, and std::intrinsics to keep the Branch Predictor saturated.

  • Execution concurrency: Maximizing ILP (Instruction Level Parallelism) and Out-of-Order execution by breaking data dependencies. I leverage Double Buffers, DoD structures, and inline assembly when the compiler reaches its limit.

  • Zero-Cost Resource Management: Eliminating pointer indirection by prioritizing stack allocation and pre-allocated arenas over a heap of objects.

"I only care if it is possible to improve, no matter the difficulty. Code is an Art! And at my very best, my goal is to write code that honors the most complex human invention ever, the microprocessor."


My Focus Points C/C++ 🦀 Rust ⚡ Performance Engineering The stack Ofc! Branchless logic! ⚙️ Risc-V Embedded systems 🧬 Fuzzing-Code Parallelism even though it hurts

Pinned Loading

  1. Last-Straw Last-Straw Public

    A lightweight GUI Rust framework for quick desktop applications.

    Rust 10 1

  2. TerimalRtdm TerimalRtdm Public

    Lightweight, simple, easy-to-read, idiomatic Rust terminal interface library for CUIs, and a minifb feature for full-on apps via a shell wrapper.

    Rust 4

  3. Texas-Holdem-Up-Poker-Bitwise-AI Texas-Holdem-Up-Poker-Bitwise-AI Public

    Bitwise Texas Hold'em Poker AI built for the SDSU AI Club: a 77 KiB 4 layer bit-packed BNN (320→512→512→256→64) with 1,344 neurons and 573,440 binary weights, executing 8,960 branchless u64 XNOR-PO…

    Rust 1

  4. MSR-Fuzzer MSR-Fuzzer Public

    A minimal, high-throughput brute-force engine that searches MISC opcode sequences to find instructions yielding a specific target register state.

    C

  5. Morse-Code-Code-Plus Morse-Code-Code-Plus Public

    Turing-complete and hyper-minimalist esoteric esolang language.

    Rust 2

  6. AsmDna AsmDna Public

    Digital Evolution framework through a interperted mirco-assembly language within a multi-threaded virtual machine cluster.

    Rust