A statically typed programming language for Data Science, Machine Learning, Statistics and Analytical Computing.
Modern data science is fragmented.
Data engineers write SQL.
Data scientists write Python.
Statisticians write R.
Machine learning engineers combine dozens of libraries.
Business analysts rely on BI tools.
Every discipline has different tools, different abstractions, different ecosystems, and different workflows.
SigmaLang aims to unify analytical computing under a single language.
Instead of treating datasets as library objects, Sigma makes them first-class citizens of the language itself.
Sigma is built around a few core principles.
- 📊 Data is a first-class language construct.
- 🔒 Static typing prevents analytical mistakes before execution.
- ♾️ Immutable by default.
- ⚡ Lazy execution and automatic optimization.
- 🧪 Reproducible analyses by design.
- 📈 Built-in statistics and machine learning.
- 🎨 Native visualization.
- 🧩 Extensible through macros.
- 📚 Executable analytical documents.
- 🚀 Designed for large-scale data engineering as well as scientific research.
sales =
load "sales.csv"
report =
sales
|> filter amount > 100
|> group customer
|> summarize
revenue = sum(amount)
orders = count()
|> sort revenue desc
plot report {
x customer
y revenue
}
Current ecosystems have several problems.
| Today | Sigma |
|---|---|
| DataFrames are library objects | DataSets are language primitives |
| Weak typing | Static schema checking |
| Dozens of disconnected libraries | Unified standard library |
| Reproducibility is optional | Reproducibility by default |
| Runtime errors | Compile-time validation |
| Separate SQL, Python and R workflows | Single language |
- CSV
- JSON
- Parquet
- Arrow
- SQL
- Streaming
- ETL Pipelines
- Data Validation
- Hypothesis Testing
- Confidence Intervals
- Regression
- Correlation
- Probability Distributions
- Bayesian Statistics
- Feature Engineering
- Pipelines
- Model Training
- Model Evaluation
- Cross Validation
- Hyperparameter Search
- Line Charts
- Scatter Plots
- Histograms
- Heatmaps
- Dashboards
- Interactive Charts
- Rolling Windows
- Forecasting
- Seasonality
- Resampling
- Interpolation
- Anomaly Detection
Instead of writing hundreds of lines of Python...
# pandas
# scipy
# matplotlib
# sklearn
# numpyYou write a single analytical document.
study CustomerRetention {
source customers.csv
hypothesis:
premium users spend more
transform {
remove duplicates
normalize age
}
analyze {
regression
confidence 95%
}
visualize {
histogram age
scatter spending vs income
}
publish html
}
compiler/
runtime/
stdlib/
packages/
examples/
docs/
editor/
tests/
core
datasets
statistics
math
sql
visualization
machine-learning
time-series
io
filesystem
network
units
Dataset<T>
Series<T>
Column<T>
Schema
Vector<T>
Matrix<T>
Tensor<T>
Distribution<T>
Model
Experiment
Plot
Dashboard
- Build the most expressive language for analytical computing.
- Replace fragmented analytical pipelines with a unified language.
- Make scientific computing reproducible by default.
- Bring compiler optimizations to data science.
- Provide an extensible macro system for domain-specific analytical languages.
- Lexer
- Parser
- AST
- Interpreter
- REPL
- Type Checker
- Immutable Dataset API
- CSV Loader
- Standard Library
- Optimizer
- Lazy Execution
- Query Planner
- SQL Backend
- Statistics Engine
- Visualization
- Machine Learning
- Notebook Environment
- Package Manager
- LSP
- VS Code Extension
- Racket
- Beautiful Racket
- Typed Racket
- RackUnit
Sigma is not intended to become "another Python."
The ambition is to become the language analysts, researchers, scientists, and data engineers reach for when they need correctness, reproducibility, and performance without sacrificing expressiveness.
If SQL revolutionized querying data and Python democratized data science, Sigma aims to redefine analytical programming itself.
MIT License