# Tom Muga

Tom Muga is a remote worker on Himalayas, Software Engineer - Wasm, .NET, C++ at N/A, based in Kenya.

Source: https://himalayas.app/@tommuga

```text
C++ systems engineer focused on WebAssembly, compiler infrastructure, and runtime internals.
```

| Detail | Value |
| --- | --- |
| Availability | Open to opportunities |
| Location | Kenya |
| Authorized to work in | Kenya |
| Salary expectations | 40k-60k USD |
| Job categories | Software Engineer, Developer, Software Engineer, Systems Engineer, C++ Engineer, High Performance Computing Engineer, Simulation Engineer, Numerical Optimization Specialist, WebAssembly Developer, C++ Developer, Mid Level C++ Engineer |
| Skills | STL, Move Semantics, Memory Management, Python, C++ Python Interface Design, Simulation Engines, Stochastic Optimisation, Inter Agent Coordination, Numerical Methods, High Performance C++ Python Systems, Heap Allocation Elimination, Hot Path Isolation, Benchmark Design, OpenMP, Reduction Based Accumulation, Thread Local State Design, Cholesky Decomposition, Covariance Regularisation, Welford Online Algorithm, NaN Inf Propagation Control, CMake, Git, Linux, AddressSanitizer, Intel VTune Profiler, Valgrind, Flamegraph Analysis, Google Benchmark, Catch2, Causal, Effect, GitHub, Matrix, Method, Monte Carlo, UBSAN, Contiguous Memory Layout, WebAssembly, Emscripten, C, .NET WASM Runtime, ABI Level Struct Layout, Cross Runtime Execution Models, UCB Decision Rule, Intel VTune, .NET, Godot, JavaScript, Monte Carlo Simulations, Bridges |
| Portfolio | https://github.com/tommygrammar |
| LinkedIn | https://https://linkedin.com/in/tom-muga |
| GitHub | https://https://github.com/tommygrammar |

## What I'm looking for

```text
I’m looking for remote roles where I can build performance-critical C++ systems with memory efficiency and correctness, backed by rigorous benchmarking and profiling. I enjoy tight constraints, parallel simulation, and clean C++/Python interop.
```

## About

```text
C++ systems engineer focused on WebAssembly, compiler infrastructure, and runtime internals. Interested in howmanagedruntimes, native engines, and browser execution environments interact across ABI, memory ownership, and threading boundaries.Recent work includes a from-scratch, single-binary Godot 4 + .NET WASM export architecture built across four major iterations,and an experimental Binaryen fork investigating memory/CPU tradeoffs in compiler IR.
```

## Experience

### Software Engineer - Wasm, .NET, C++ (current)

N/A. Apr 2026 - Present

```text
I deveoped 3 iterations, each informed by the limitations of the last architecture. This was about building a WebAssembly Runtime to allow C# to run in .NET.
```

### Multi-Agent Belief Framework

[Tommygrammar](https://himalayas.app/companies/github)

```text
Built a fixed-capacity belief distribution framework with a compile-time memory pool to eliminate dynamic allocation and reduce fragmentation. Implemented a certainty-aware two-objective Dijkstra (biasing toward higher certainty) and reduced Section size from 32 to 24 bytes by member reordering and replacing std::string with char.
```

Skills: C++17, memory-pool-allocation, ownership-design-(unique\_ptr-raw-pointers), multi-agent-coordination, graph-algorithms, certainty-aware-Dijkstra, graph-pathfinding, cache-efficient-data-layout

### Entropy-Guided Stochastic Optimizer Engineer

[GitHub](https://himalayas.app/companies/github)

```text
Optimized an entropy-guided stochastic optimizer to reach 22.38× throughput improvement through profiling-guided hot-path changes. Reduced cache miss rate from 53.64% to 12.15% (−89% absolute misses), with instruction and branch misprediction reductions, while improving numerical stability with regularized Cholesky.
```

Skills: Throughput, Cache-Miss-Reduction, Approximate-Sampling, Cholesky-Decomposition, Covariance-Regularisation, Hot-Path-Heap-Elimination

### C++ Performance Engineer

Open Source

```text
Delivered 100× throughput improvements by replacing Python computation cores with purpose-built C++ implementations, validating gains with benchmarks and hardware counter analysis. Built performance-critical simulation and optimization systems (C++/Python interoperability, parallel execution, and numerically stable algorithms) and shipped verified PRs with reproducible results.
```

Skills: Stochastic-Optimization, Welford, MCTS-IS-MCTS, Benchmarking-and-Testing, Google-Benchmark, Catch2

### Entropy-Guided Stochastic Optimizer

[Tommygrammar](https://himalayas.app/companies/github)

```text
Implemented a multi-stage optimization pipeline (Gaussian sampling, evaluation, hierarchical clustering, adaptive refocusing) with numerically stable Cholesky decomposition using jitter. Improved throughput by 22.38× and reduced cache miss rate from 53.64% to 12.15% (−89% absolute misses) via targeted hot-path changes.
```

Skills: Hierarchical-clustering, Cholesky-Decomposition, C++17, numerical-optimization, Gaussian-sampling, jitter-for-stability, cache-locality, std::array-static-sizing, perf-profiling

### Monte Carlo Parallel Simulation Engineer

[GitHub](https://himalayas.app/companies/github)

```text
Improved a Monte Carlo simulation engine by 2.38× over a Python baseline and an additional 1.71× by removing intermediate storage and restructuring parallelization. Fixed a structural OpenMP bug that made the MC loop sequential and used a fused single-pass Welford algorithm for mean/standard deviation.
```

Skills: OpenMP, Welford-Online-Algorithm, Performance-Optimization, Benchmarking, Reduction-Based-Accumulation

### C++ Pathfinding Library Engineer

Recast Navigation

```text
Identified and refactored a redundant two-pass hot-path loop (rcCalcBounds) into a single-pass fused min/max operation. Improved throughput by ~10% (106 ns → 95 ns) and reduced instruction and cycle counts per hardware counters.
```

Skills: C, Pathfinding, Hot-Path-Optimization, Refactoring, Benchmarking, Throughput, Performance-Profiling, Cache-Aware-Computation

### Causal Simulation Engine Engineer

[GitHub](https://himalayas.app/companies/github)

```text
Rebuilt a Python stochastic causal simulation core in C++ to achieve 100× throughput improvement versus the original. Implemented a contiguous, allocation-minimal C++ engine with a Python orchestration layer for configuration and aggregation.
```

Skills: Python-Interop, Heap-Allocation-Elimination, Benchmarking, Ownership-Transfer-Across-Layers

### IS-MCTS Variance-Aware C++ Engineer

[Deepmind](https://himalayas.app/companies/deepmind)

```text
Modified IS-MCTS selection to incorporate action-level variance into the UCB decision rule for risk-adjusted search. Empirically showed variance penalisation amplifies first-mover advantage with statistically significant divergence from the canonical implementation.
```

Skills: C, Risk-Adjusted-Decision-Making

## Education

### Ubunifu College

Software Engineering Diploma, Software Engineering

```text
Completed a Software Engineering Diploma in 2022.
```

## Tech stack

- GitHub
- .NET
- CMake
- Emscripten
- C++
- WebAssembly
- Linux
- Valgrind
- Make

To contact Tom, message them from this profile with a Himalayas employer account: [Hire on Himalayas](https://himalayas.app/hire).

## People also viewed

- [Kelyn Njeri](https://himalayas.app/@kelynnjeri): Senior Software Engineer, PowWater
- [Alexander Kabui](https://himalayas.app/@alexanderkabui): Software Engineer, Genenetwork
- [Dorine Tipo](https://himalayas.app/@dorinetipo): Software Engineer, Microgrant
- [Teddy Ondieki](https://himalayas.app/@teddyondieki): Founding Engineer, Steady
- [sylvance\_theone User](https://himalayas.app/@sylvance): AI First Software Engineer, Trilogy
- [Obafemi Teminife](https://himalayas.app/@obafemiteminife): Senior Backend Engineer (Product), Inverter Network (iTRY)
- [Samson Baraka](https://himalayas.app/@samsonbaraka): Software Engineer, PeerNest Inc.
- [Libeamlak Woldedawit](https://himalayas.app/@libeamlakwoldedawit): Software Engineer, Revelo
- [Salmon Ouma](https://himalayas.app/@salmongowa): Quality Assurance Engineer, RBC
- [Titus Muthomi](https://himalayas.app/@titusmuthomi): AI Engineer, Fintech Policy RAGAssistant, Independent Project
