Thanks to visit codestin.com
Credit goes to github.com

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.

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
had2020/README.md

[RUST 🦀]: Hadrian Lazic (a.k.a. Had2020)

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


Codewars


My goal is Mechanical Sympathy in Rust. I build Rust libraries to learn by doing;

trying to eke out the most from every cpu 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 SIMD 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 the heap.

"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."


Things I like:

🦀 Rust ⚡ Performance Engineering The stack Ofc! Branchless logic! ⚙️ Risc-V Embedded systems 🧬 Evolving Code Parallelism even though it hurts


Interrupt Service Routine

✉️ Email: [email protected]

💼 LinkedIn: Hadrian Lazic

Pinned Loading

  1. Last-Straw Last-Straw Public

    A lightweight GUI Rust framework for quick desktop applications.

    Rust 11 1

  2. TerimalRtdm TerimalRtdm Public

    Rust Terimal Display Manipulator

    Rust 4

  3. RCMLRS RCMLRS Public

    Machine learning framework in Rust

    Rust 4

  4. Neurocrypt-Genesis Neurocrypt-Genesis Public

    A Platform for Artificial Abiogenesis and Emergent Computation

    Rust 2

  5. Learn-Machine-Learning-with-Pusdeo-Code-without-Advanced-Math- Learn-Machine-Learning-with-Pusdeo-Code-without-Advanced-Math- Public

    Clear explanations, formulaic pseudocode, and diagrams to make machine learning math understandable for everyone.

    4

  6. Crates-of-thought Crates-of-thought Public

    My hands on journey through Rust, where I store coding problems I solved!

    Rust 4