SYS.00 AI / COMPILERS / SYSTEMS / TOOLS
PORTFOLIO / 2026

Build it on the CPU.

I write systems that have to be correct before they are impressive: ternary-weight model code, an AOT Python compiler, a from-scratch Windows compatibility layer, and reverse-engineering tooling that runs real binaries.

Public repos
36
Featured builds
10
Stars total
15

AI engineer and systems programmer. I build deterministic systems on commodity hardware and publish the measurements alongside them.

The through-line is hardware cost. The AI work asks whether a model can run and train on a CPU instead of a GPU cluster; the compiler work asks how much of Python can be lowered to LLVM IR without leaving a runtime behind; the systems work rebuilds a Windows compatibility layer in Rust rather than linking Wine.

Projects span Rust (vAGI-2, NSE, pse-engine, rust-windows-compat), Python (AOT-Compiler, RE-super-agent, constant-state-attention), C++ and .NET (GameLagReducer), and TypeScript for the browser extension. Several of them are research scaffolds, and their READMEs say so.

I would rather publish a negative result with a clean artifact than a positive one with a hand-wave. The constant-state-attention repo exists because the original notebook could not run at all, and the finding that the dimensionality buys nothing is the point.

ENGINEER DOSSIER SPEC // 2026
Focus
CPU-first inference, compilers, compatibility layers
Languages
Rust · Python · C++ · TypeScript · Go
Org
@Vietrix
Repos
36 public, 10 featured here

Ten repositories, each with its own measurements.

CLICK ANY BUILD TO INSPECT ARCHITECTURE ↓

DOM.01

AI & model research

03 REPOS
  • /01

    vAGI-2

    Rust workspace exploring ternary {-1,0,+1} weights and CPU-oriented training paths.
    ARCHITECTURE BRIEF

    Eleven crates covering the core engine, a transformer language model with BPE tokenization on Vietnamese corpora, streaming memory, symbolic algebra, a causal-DAG world model, and an agent runtime. AVX2 kernels are selected at runtime for the packed ternary matrix-vector path.

    • 11 crates
    • ~150 sequences/second on a tiny config
    • MIT
    • Research codebase, not a validated model stack

    STACK & PRIMITIVES

    • Rust
    • AVX2
    • BitNet-style ternary
    • BPE
    github.com/baobao1044/vAGI-2
  • /02

    NSE

    Sparse, quantized LLM inference on CPU and edge hardware — no GPU cluster.
    ARCHITECTURE BRIEF

    An eight-crate Cargo workspace running the full path from dense training to sparse inference. ZSTM transmutes a dense model into a quantized sparse graph without retraining; HNSW routing activates only a subset of micro-experts per token; AVX2 kernels execute the sparse product with a scalar fallback.

    • 8 crates
    • 56 tests passing
    • Forward-Forward, Hopfield, and LSH-sparse training paths
    • MIT

    STACK & PRIMITIVES

    • Rust
    • AVX2
    • HNSW
    • Ternary / PQ-8
    github.com/baobao1044/NSE
  • /03

    constant-state-attention

    Audit and fix of a hyperdimensional-attention notebook — then a measurement of its limits.
    ARCHITECTURE BRIEF

    The original design could not run: its memory was a vector, and a vector has rank 1. Replacing it with a matrix state made the model causal and O(S) in time at constant memory, but the fixed-size additive state scores 0.168 ± 0.002 on MQAR against 0.834 ± 0.020 for softmax. A 3-of-4 hybrid matches all-attention within seed noise at 25% less KV memory.

    • Every README table regenerated from results/*.csv in CI
    • 66 KB fixed state at 1M-token simulated cache
    • 1,062 tok/s flat at batch 1
    • Explicitly an analysis, not a new architecture

    STACK & PRIMITIVES

    • Python
    • PyTorch
    • MQAR
    • CI-checked tables
    github.com/baobao1044/constant-state-attention
DOM.02

Compilers & runtimes

01 REPO
  • /04

    AOT-Compiler

    Ahead-of-time compiler lowering a typed subset of Python to optimized LLVM IR.
    ARCHITECTURE BRIEF

    The pipeline runs Python AST to a custom SSA-based IR, through constant folding, dead-code elimination and inlining, then out as LLVM IR. The v0.3 data bridge lets @native functions operate on NumPy arrays and other buffer-protocol objects in place, with automatic buffer pinning during native execution.

    • @native_struct maps dataclasses to deterministic LLVM structs
    • @parallel / parallel_for multi-threaded runtime
    • Compile-time bounds checks on constant indices
    • GPL

    STACK & PRIMITIVES

    • Python
    • LLVM IR
    • SSA IR
    • Buffer protocol
    github.com/baobao1044/AOT-Compiler
DOM.03

Systems & graphics

02 REPOS
  • /05

    rust-windows-compat

    Pure-Rust Windows compatibility layer for Linux — no Wine, no VM.
    ARCHITECTURE BRIEF

    A from-scratch rebuild of the PE loader, the NT and Win32 API surface, DXGI/D3D11/D3D12-to-Vulkan translation, and an HLSL-to-SPIR-V compiler. Progress is tracked against a ten-step milestone ladder from running a console hello.exe to running a modern D3D11/12 game.

    • M0–M9 milestone ladder
    • No Wine, DXVK, VKD3D or DXC code reused
    • Kernel-mode drivers out of scope by design
    • Research project

    STACK & PRIMITIVES

    • Rust
    • PE/PE32+
    • NT/Win32
    • Vulkan
    • SPIR-V
    github.com/baobao1044/rust-windows-compat
  • /06

    pse-engine

    Rust-to-WASM physics and shader engine targeting both WebGPU and WebGL2.
    ARCHITECTURE BRIEF

    One codebase, two backends through wgpu. A GPU compute broad-phase and a CPU sweep-and-prune fallback feed a CPU narrow-phase and sequential-impulse solver, all writing into a single SoA storage buffer that the instanced render pipeline reads directly. WGSL is hot-reloadable with an #include preprocessor and naga validation.

    • All 8 roadmap phases complete
    • Hybrid GPU + CPU physics
    • MIT / Apache-2.0
    • Library, not a game engine — no editor or scripting language

    STACK & PRIMITIVES

    • Rust
    • WASM
    • wgpu
    • WGSL
    • hecs ECS
    github.com/baobao1044/pse-engine
DOM.04

Tools & security

04 REPOS
  • /07

    RE-super-agent

    Reverse-engineering agent: five domain MCP servers plus multi-specialist orchestration.
    ARCHITECTURE BRIEF

    Targets Windows PE and Linux ELF, including Python-protector-obfuscated binaries. Forty-four tools across static, dynamic, symbolic, deobfuscation and malware domains wrap Ghidra, radare2, angr, Frida and Qiling. A dynamic workflow engine adapts the analysis plan, and all execution is routed through an isolated sandbox rather than the host.

    • 44 tools
    • 298 tests green
    • Provider-agnostic via LiteLLM
    • MIT

    STACK & PRIMITIVES

    • Python
    • MCP
    • Ghidra
    • radare2
    • angr
    • Frida
    github.com/baobao1044/RE-super-agent
  • /08

    bedrock-obfuscator

    Python source obfuscator for CPython 3.10–3.12 with a native C bytecode VM.
    ARCHITECTURE BRIEF

    A monolithic engine that emits obfuscated .py that resists both human reading and decompilers, with an optional native C-interpreted bytecode VM and a FastAPI playground. Released source-available after shipping as a paid product; the license carries express anti-misuse provisions.

    • 14,498-line engine
    • 87 CLI flags
    • 31 anti-debug checks
    • 94 of 93 BedrockVM opcodes implemented

    STACK & PRIMITIVES

    • Python
    • C
    • CPython bytecode
    • FastAPI
    github.com/baobao1044/bedrock-obfuscator
  • /09

    GameLagReducer

    Launcher that hooks a game's graphics API and flattens shaders at runtime.
    ARCHITECTURE BRIEF

    A WPF .NET 8 launcher injects a native C++ DLL that vtable-hooks DXGI/D3D11, IAT-hooks OpenGL, and intercepts Vulkan pipeline creation. It then applies render scale, FPS cap, MSAA off, tessellation and geometry-stage removal, and a flat-grey pixel shader while keeping the vertex shader so silhouettes stay correct.

    • Three APIs hooked from one DLL
    • Per-game profiles
    • Anti-cheat detection with a pre-launch warning
    • Mesh decimation explicitly impossible at the API-hook layer

    STACK & PRIMITIVES

    • C++
    • C# / .NET 8
    • D3D11
    • OpenGL
    • Vulkan
    github.com/baobao1044/GameLagReducer
  • /10

    down-faster

    Browser extension that downloads files over parallel HTTP range requests.
    ARCHITECTURE BRIEF

    Splits a download into pieces fetched concurrently and written straight to OPFS from an offscreen document, with no external binary and no companion app. One Manifest V3 codebase ships to Chromium and Firefox. Verified end-to-end in a real browser on a 100 MB ranged endpoint; the README separates what CI proves from what a browser proved.

    • 457 tests passing in CI
    • 8 parallel connections, 32 pieces, byte-exact
    • Falls back to a single connection without range support
    • Alpha

    STACK & PRIMITIVES

    • TypeScript
    • MV3
    • OPFS
    • Chromium + Firefox
    github.com/baobao1044/down-faster
  • RULE // 01

    Correctness over confidence

    A model that cannot run is not a promising model. The constant-state repo begins by proving the original design could never execute, then measures what replaces it.

  • RULE // 02

    Publish the negative result

    The hyperdimensional dimension buys nothing measurable, and the README says so on line four. A flat benchmark with a clean artifact is worth more than a curve with a story.

  • RULE // 03

    Commodity hardware or it does not count

    CPU-first inference, AVX2 kernels, optional fallbacks. Designs that only work on a cluster get replaced by designs that work on the machine you already own.

  • RULE // 04

    Say what it does not do

    No kernel drivers, no mesh decimation at the hook layer, no browser paths proven by a headless CI run. The limits are written down next to the capabilities.

Send the hard problem.

Open to systems work, compiler and runtime problems, and AI research that has to run on hardware you own.

PRIMARY DISPATCH baobgg1@gmail.com
Write an email
ELSEWHERE // VERIFIED

@Vietrix

AI Engineer & Systems Programmer