ML engineer and C++ developer. Both halves of my work are built the same way: tagged releases, CI that actually gates merges, numbers you can re-run, and demos that open in a browser.
- Machine-Learning — production-shaped ML portfolio (20 tagged releases): repo · docs · site · Persian RAG demo · TinyGPT in your browser
- Car-Rental-System — a complete rental desk in dependency-free C++17: repo · live demo
- MyGit — a tiny version control system built from scratch in C++17: repo · latest release
- Contact: ranjbaran.ar85@gmail.com
| Project | What makes it interesting | Headline number |
|---|---|---|
| Persian RAG assistant | E5 + FAISS fused with a from-scratch BM25 via RRF; bilingual query expansion, injection guardrails, semantic cache, SSE streaming | Hybrid Hit@1 = 0.967 · re-rank lifts Hit@1 0.81 → 0.92 |
| TinyGPT | Reverse-mode autograd engine + transformer + Adam in raw NumPy — no PyTorch; runs in-browser via WASM | 249k params, 65 s CPU training, grad-check ~1e-10 |
| AI-text detector | TF-IDF + stylometric features (SVM vs NB vs LR) | ROC-AUC 0.964 |
| Stock movement ML | Walk-forward, leakage-free backtest with costs | +25.45% / 696 OOS days — and an honest ROC-AUC 0.53, published on purpose |
| Recommender / SMS spam | CF + ALS from scratch · TF-IDF + GridSearchCV baseline | RMSE 0.875 · Accuracy 0.975 |
| Serving layer | One FastAPI contract over all families: OpenAPI, SSE, per-stage Prometheus metrics | 320+ tests in CI, 93% measured coverage |
Engineering decisions are written down: 11 ADRs — why RRF, why a contract test pins the embedding dimensions (a real 768-vs-384 drift incident), why CI runs network-free, why the unflattering numbers stay published.
A car-rental desk with no third-party libraries: the AVL tree, hash table, priority queue and doubly linked list it runs on are written by hand, and so are the PNG encoder, the PDF writer and the SHA-256 behind the salted logins. Booking rules are enforced the way a real desk enforces them — date-overlap rejection, a waitlist that auto-books freed windows, driving-license expiry checks, odometer-based service intervals — and every privileged action lands in an append-only audit trail.
- 5,650 checks green on every push: gcc + clang on Linux, MSVC on Windows, CMake/ctest on all three, ASan/UBSan, coverage, clang-format enforcement
- The same
mainApp.cppcompiled to WebAssembly runs in the browser — log in asadmin / manager123and run option 10; the CSV/JSON reports the program writes arrive under the terminal as downloads - Releases for Windows / Linux / macOS / static Android (Termux-ready) / Windows-on-ARM / browser: latest release
- The changelog documents every release since v1.0, including the v1.0 → v2.0 rebuild story (fixed segfaults, memory leaks, an income double-count)
A version control system written to learn why git is shaped the way it is —
about 2,400 lines of C++17 with no third-party libraries, down to the SHA-256
in src/SHA256.cpp, the LCS-based diff and the three-way merge. Branches and
tags are one-line ref files under .mygit/refs/, HEAD is symbolic, and
checkout refuses to run over unsaved work. Diverged branches now merge for
real: a closest-common-ancestor base, per-file resolution, git-style conflict
markers, an Unmerged paths: section in status and merge --abort — with
two-parent commit records that v1.4 repositories read unchanged. What is
missing is written down too: the README leads with the limitations (rename
detection, remotes, stash), and the
changelog
tracks the hash function's history from std::hash to FNV-1a to SHA-256.
- 182 end-to-end checks in a plain bash script — one of them demands the
object store name files exactly like an independent
sha256sum, so the content-addressing cannot silently regress, another replays the same-second commit-id collision thatctime()used to allow, and a whole battery pins the merge: auto-resolved edits, conflict markers, resolution and abort semantics, unrelated-histories refusal diffgroups edits into git-style@@hunks with real SGR colors on a tty, and every number in docs/BENCHMARKS.md is re-measurable with the committed harness against git on the same machine- CI gates every push on gcc + clang (Linux), MinGW g++ and an MSVC compile check (Windows) and clang (macOS); releases attach binaries for all four platforms plus a static Android arm64 build (NDK, Termux-ready): latest release



