01 / Preface

Embedded Software & Real-Time Systems Learning Log

Documenting my path through low-level architectures, automotive protocols, and rigorous algorithm analysis based on Cormen (CLRS).

Not long ago, software engineering was strictly divided between application developers and low-level programmers. Today, from the Vehicle Hardware Abstraction Layer (VHAL) in Android Automotive OS to real-time systems, that line has blurred: mastering code requires understanding everything from algorithmic mathematics down to physical memory in C++.

"Building low-level software isn't about knowing everything by heart, but mastering first principles, understanding what happens 'under the hood' of memory, and building in public with mathematical rigor."

CLRS Cap. 2.1

Technical Proof: Insertion Sort (CLRS Ch. 2)

Comparison of mathematical formalization, official pseudocode, and C++20 optimized for low-level systems:

Time Complexity Analysis (Worst-case):
T(n) = ∑i=2n Θ(i)   &implies;  T(n) ∈ O(n2)
Pseudocode (CLRS 4th Ed.)
INSERTION-SORT(A, n)
1  for i = 2 to n
2      key = A[i]
3      // Insert A[i] into sorted A[1 : i-1]
4      j = i - 1
5      while j > 0 and A[j] > key
6          A[j + 1] = A[j]
7          j = j - 1
8      A[j + 1] = key
C++20 (In-Place & Zero-Copy)
#include <span>

template <typename T>
void insertion_sort(std::span<T> arr) {
    const size_t n = arr.size();
    for (size_t i = 1; i < n; ++i) {
        T key = arr[i];
        int j = static_cast<int>(i) - 1;

        while (j >= 0 && arr[j] > key) {
            arr[j + 1] = arr[j];
            j--;
        }
        arr[j + 1] = key;
    }
}

To recruiters & technical leads

Here you will find direct evidence of my engineering depth: from modular Clean Architecture to JNI, C++20, and real-time systems prepared for challenges like Rivian or automotive platforms.

To engineers & students

Each module is designed as a self-contained technical lesson. You will find formalized mathematical proofs, C++20/Kotlin implementations, and asymptotic complexity breakdowns under memory constraints.

What are the prerequisites for exploring this site?

  • Basic familiarity with data structures (trees, heaps, graphs) and object-oriented or low-level languages (Kotlin, C++).
  • Interest in software architecture (Clean Architecture, MVI/MVVM) and design patterns focused on high performance.
  • Curiosity about manual/automatic memory management, Garbage Collection Thrashing, and real-time behavior.

How this lab was built

Engineered for maximum speed with zero client-side overhead. Built with Astro v5, TypeScript, MDX with native KaTeX/C++ rendering, Atomic Design modularity, and static content optimization.

Atomic Design Hierarchy & Modularity
⚛️ Atom

Indivisible base UI (Buttons, Badges, Tech Pills).

🧪 Molecule

Functional union of atoms (CodeBlock, MathBox, LanguageSwitch).

🧫 Organism

Decoupled complex modules (AboutPreface, Navbar, Timeline).

📐 Layout

Global wrapper structures with anti-FOUC scripts (BaseLayout).

📄 Page

Static routes compiled with i18n injection ([lang]/about.astro).

Islands Architecture & Instant Speed (Astro v7)

The server compiles everything to static HTML (0 KB JS). Only interactive 'Islands' hydrate in isolation inside the client browser for peak performance.

🖥️Servidor Astro
BaseLayout.astro
MDX & KaTeX
ThemeToggle.tsx
Red / CDN
HTML
JS
🌐Navegador (Cliente)
✓Estructura & Estilos0 KB JS

Renderizado instantáneo de todo el sitio estático.

⚡Isla Tema (ThemeToggle)client:visible

JavaScript hidratado solo al hacer interacción o scroll.

STACK PHILOSOPHY

Why these technologies?

This site is not just my portfolio; it is my engineering laboratory where I apply the highest standards of modern software development.

Highest Standards & Instant Speed

I chose Astro v7 to guarantee instant load times with zero client-side JavaScript overhead, matching the performance standards required by global-scale engineering platforms.

Mathematical Rigor via KaTeX

Formal algorithm analysis requires precise O(n log n) notation. KaTeX allows rendering LaTeX natively at build time, an essential requirement for documenting my deep dive into CLRS.

Atomic Design & Decoupled Scalability

I adopted Atomic Design after applying it in professional environments. This architecture ensures highly modular, clean, and decoupled code to scale the platform without technical debt.

Engineering Lab & Automotive 3D Vision

My personal sandbox to push web limits. The vision includes a 360° interactive 3D viewer for Automotive OS, using dynamic transparency layers to visualize real-time data flows (CAN Bus, telemetry, and VHAL) similar to high-end automotive configurators.