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
About
WHO // ARCHITECTUREAI 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.
- Focus
- CPU-first inference, compilers, compatibility layers
- Languages
- Rust · Python · C++ · TypeScript · Go
- Org
- @Vietrix
- Repos
- 36 public, 10 featured here
Work
10 BUILDS · ALL PUBLICTen repositories, each with its own measurements.
CLICK ANY BUILD TO INSPECT ARCHITECTURE ↓
AI & model research
-
/01
vAGI-2
Rust workspace exploring ternary {-1,0,+1} weights and CPU-oriented training paths.ARCHITECTURE BRIEFEleven 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
github.com/baobao1044/vAGI-2STACK & PRIMITIVES
- Rust
- AVX2
- BitNet-style ternary
- BPE
-
/02
NSE
Sparse, quantized LLM inference on CPU and edge hardware — no GPU cluster.ARCHITECTURE BRIEFAn 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
github.com/baobao1044/NSESTACK & PRIMITIVES
- Rust
- AVX2
- HNSW
- Ternary / PQ-8
-
/03
constant-state-attention
Audit and fix of a hyperdimensional-attention notebook — then a measurement of its limits.ARCHITECTURE BRIEFThe 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
github.com/baobao1044/constant-state-attentionSTACK & PRIMITIVES
- Python
- PyTorch
- MQAR
- CI-checked tables
Compilers & runtimes
-
/04
AOT-Compiler
Ahead-of-time compiler lowering a typed subset of Python to optimized LLVM IR.ARCHITECTURE BRIEFThe 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
github.com/baobao1044/AOT-CompilerSTACK & PRIMITIVES
- Python
- LLVM IR
- SSA IR
- Buffer protocol
Systems & graphics
-
/05
rust-windows-compat
Pure-Rust Windows compatibility layer for Linux — no Wine, no VM.ARCHITECTURE BRIEFA 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
github.com/baobao1044/rust-windows-compatSTACK & PRIMITIVES
- Rust
- PE/PE32+
- NT/Win32
- Vulkan
- SPIR-V
-
/06
pse-engine
Rust-to-WASM physics and shader engine targeting both WebGPU and WebGL2.ARCHITECTURE BRIEFOne 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
github.com/baobao1044/pse-engineSTACK & PRIMITIVES
- Rust
- WASM
- wgpu
- WGSL
- hecs ECS
Tools & security
-
/07
RE-super-agent
Reverse-engineering agent: five domain MCP servers plus multi-specialist orchestration.ARCHITECTURE BRIEFTargets 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
github.com/baobao1044/RE-super-agentSTACK & PRIMITIVES
- Python
- MCP
- Ghidra
- radare2
- angr
- Frida
-
/08
bedrock-obfuscator
Python source obfuscator for CPython 3.10–3.12 with a native C bytecode VM.ARCHITECTURE BRIEFA 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
github.com/baobao1044/bedrock-obfuscatorSTACK & PRIMITIVES
- Python
- C
- CPython bytecode
- FastAPI
-
/09
GameLagReducer
Launcher that hooks a game's graphics API and flattens shaders at runtime.ARCHITECTURE BRIEFA 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
github.com/baobao1044/GameLagReducerSTACK & PRIMITIVES
- C++
- C# / .NET 8
- D3D11
- OpenGL
- Vulkan
-
/10
down-faster
Browser extension that downloads files over parallel HTTP range requests.ARCHITECTURE BRIEFSplits 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
github.com/baobao1044/down-fasterSTACK & PRIMITIVES
- TypeScript
- MV3
- OPFS
- Chromium + Firefox
Rules
HOW THE WORK GETS MADE- 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.
Evidence
WHAT EACH CLAIM RESTS ONNumbers first, adjectives never.
- constant-state-attention 0.168 vs 0.834 MQAR · 25% less KV memory in hybrid tables regenerated from results/*.csv in CI
- RE-super-agent 44 tools · 298 tests green test badge and repository test suite
- down-faster 457 tests · 8 connections · byte-exact 100 MB CI badge plus a documented real-browser run
- bedrock-obfuscator 14,498 lines · 87 flags · 31 anti-debug checks engine metrics listed in the README
- NSE 8 crates · 56 tests · end-to-end PPL comparison workspace layout and test badge
- vAGI-2 11 crates · ~150 seq/s on a tiny config README highlights, local measurements only
- rust-windows-compat M0–M9 ladder · no Wine code reused scope statement and milestone table
- pse-engine 8 of 8 phases · WebGPU + WebGL2 from one source roadmap table in the README
- AOT-Compiler AST → SSA IR → LLVM IR · zero-copy bridge architecture section and v0.3 feature list
- GameLagReducer D3D11 + OpenGL + Vulkan hooked from one DLL hook table in the README
Every figure above is quoted from the repository it links to, read 2026-11-09. Where a README describes its own project as research or alpha, that status is shown in the work list rather than smoothed over.
Contact
OPEN // DIRECT CHANNELSend the hard problem.
Open to systems work, compiler and runtime problems, and AI research that has to run on hardware you own.