lunarml
« Back to VersTracker
Description:
Standard ML compiler that produces Lua/JavaScript
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: compiler standard-ml lua javascript functional-programming
Install: brew install lunarml
About:
Lunarml is a Standard ML compiler that targets Lua and JavaScript, enabling functional programming in web and scripting environments. It compiles SML code into portable, embeddable modules, bridging the gap between ML type safety and dynamic runtime platforms.
Key Features:
  • Cross-platform compilation to Lua and JavaScript
  • Strong static type system from Standard ML
  • Embeddable output for extending applications
  • Supports parts of the ML Basis system
Use Cases:
  • Embedding safe functional logic into Lua-based game engines
  • Developing web applications using Standard ML semantics
  • Research and education in functional programming paradigms
Alternatives:
  • MLton – MLton compiles to native machine code for high performance, while Lunarml targets interpreted runtimes like Lua/JS for broader embedding scenarios.
  • Haskell (GHCJS) – GHCJS compiles Haskell to JavaScript; Lunarml offers a lighter-weight, Standard ML-specific alternative for functional-to-scripting compilation.
Version History
Detected Version Rev Change Commit