Why Prism?
A programming language designed for the age of AI
First-Class Uncertainty
Attach confidence levels to any value. Uncertainty propagates automatically through calculations.
Built for AI
Native LLM integration with automatic confidence extraction. Handle AI responses with explicit uncertainty tracking.
Confidence Flow Control
Make decisions based on confidence thresholds with intuitive uncertain if statements and branching.
Calibrated Confidence
Extract and calibrate confidence from LLMs using consistency checks, response analysis, and domain-specific patterns.
TypeScript First
Familiar JavaScript-like syntax with full TypeScript support. Modern tooling and IDE integration.
Modular Design
Pick what you need: core language, confidence extraction, LLM providers, and validation tools.
Use Cases
Handle uncertainty in AI responses, sensor data, and complex computations
AI Applications
Handle LLM responses with explicit confidence tracking and make decisions based on reliability thresholds.
IoT & Sensors
Manage noisy sensor data with uncertainty bounds and automatic confidence propagation through pipelines.
Risk Analysis
Make risk-aware decisions with confidence budgets, differential analysis, and threshold gates.
Scientific Computing
Propagate measurement errors and uncertainty through complex calculations automatically.
Get Started in Seconds
npm install @prism-lang/core @prism-lang/llm
