Reproducible financial Monte Carlo simulation framework in MoonBit
core ───────────────┬── qmc ────────────────┐
├── stochastic ─────────┤
└── multi_asset ────────┤
▼
variance_reduction ─────────────────────── pricing
│
analytics ─── portfolio ─── calibration ─── risk
│
▼
audit ── cli| Package | Responsibility | Production LOC |
|---|---|---|
| lib/core | Random engines, distributions, statistics, paths, matrices | 1,138 |
| lib/stochastic | Stochastic differential-process simulators | 609 |
| lib/pricing | Derivative contracts and Monte Carlo/LSM pricing | 619 |
| lib/analytics | Returns, rolling statistics, risk-adjusted metrics | 614 |
| lib/risk | VaR, CVaR, backtesting, stress, credit, attribution | 463 |
| lib/calibration | Curves, implied volatility, GBM calibration, bootstrap | 411 |
| lib/portfolio | Position validation, valuation, scenarios, rebalancing | 391 |
| lib/qmc | Low-discrepancy sequence generators | 321 |
| lib/engine | Validated simulation summaries and streaming ledgers | 506 |
| lib/audit | Reproducible audit and report exporters | 308 |
| lib/multi_asset | Correlation, Cholesky, and copula utilities | 181 |
| lib/variance_reduction | Sampling variance reduction methods | 195 |
| benchmarks | Deterministic release workload suite | 205 |
| lib/cli | Executable batch runner | 103 |
moon version --all
moon update
moon check --target all
moon test --target all
moon test --target native --deny-warn
moon fmt --checkmoon run lib/climoon run --target native --release benchmarkslib/ MoonBit library packages
benchmarks/ Deterministic executable benchmark workloads
docs/ User-facing benchmark and design notes
.github/workflows/ Continuous integration
LICENSE Apache License 2.0Install
Download zipReproducible financial Monte Carlo simulation framework in MoonBit