Skip to content

About

SigmaLang is a statically typed, immutable, domain-specific programming language for data science, statistics, machine learning, and analytical computing. Built with Racket.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Sigma Analytics Language (SAL) Σ

A statically typed programming language for Data Science, Machine Learning, Statistics and Analytical Computing.

License Language Status


Vision

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.


Philosophy

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.

Example

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
}

Why Sigma?

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

Features

Data Engineering

  • CSV
  • JSON
  • Parquet
  • Arrow
  • SQL
  • Streaming
  • ETL Pipelines
  • Data Validation

Statistics

  • Hypothesis Testing
  • Confidence Intervals
  • Regression
  • Correlation
  • Probability Distributions
  • Bayesian Statistics

Machine Learning

  • Feature Engineering
  • Pipelines
  • Model Training
  • Model Evaluation
  • Cross Validation
  • Hyperparameter Search

Visualization

  • Line Charts
  • Scatter Plots
  • Histograms
  • Heatmaps
  • Dashboards
  • Interactive Charts

Time Series

  • Rolling Windows
  • Forecasting
  • Seasonality
  • Resampling
  • Interpolation
  • Anomaly Detection

Example Study

Instead of writing hundreds of lines of Python...

# pandas
# scipy
# matplotlib
# sklearn
# numpy

You 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
}

Planned Architecture

compiler/
runtime/
stdlib/
packages/
examples/
docs/
editor/
tests/

Standard Library

core
datasets
statistics
math
sql
visualization
machine-learning
time-series
io
filesystem
network
units

Core Data Types

Dataset<T>
Series<T>
Column<T>
Schema
Vector<T>
Matrix<T>
Tensor<T>
Distribution<T>
Model
Experiment
Plot
Dashboard

Goals

  • 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.

Roadmap

Phase 1

  • Lexer
  • Parser
  • AST
  • Interpreter
  • REPL

Phase 2

  • Type Checker
  • Immutable Dataset API
  • CSV Loader
  • Standard Library

Phase 3

  • Optimizer
  • Lazy Execution
  • Query Planner
  • SQL Backend

Phase 4

  • Statistics Engine
  • Visualization
  • Machine Learning

Phase 5

  • Notebook Environment
  • Package Manager
  • LSP
  • VS Code Extension

Built With

  • Racket
  • Beautiful Racket
  • Typed Racket
  • RackUnit

Long-Term Vision

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.


License

MIT License

About

SigmaLang is a statically typed, immutable, domain-specific programming language for data science, statistics, machine learning, and analytical computing. Built with Racket.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages