Mun

A programming language empowering creation through iteration.

image/svg+xmlOpenclipartwarning icon2010-03-03T13:31:08A very simple warning icon that can be scaled down fairly small and still be recognizable.https://openclipart.org/detail/29833/warning-icon-by-matthewgarysmithmatthewgarysmithiconsignwarningyellow Work in Progress image/svg+xmlOpenclipartwarning icon2010-03-03T13:31:08A very simple warning icon that can be scaled down fairly small and still be recognizable.https://openclipart.org/detail/29833/warning-icon-by-matthewgarysmithmatthewgarysmithiconsignwarningyellow

We appreciate your interest in Mun, but you are a little early to the party. The Mun language and toolchain are still in the early stages of development and nowhere near production-ready. If that doesn't scare you, then please continue reading.

Mission

The idea to create Mun originated out of frustration with the Lua dynamic scripting language that is extensively used for game development at Abbey Games.

Lua's hot reloading capabilities and LuaJIT's performance make it a great language for rapid prototyping of real-time applications - such as games - on PC. However, the language has performance issues on some mobile and console platforms - to which LuaJIT cannot deploy, the language lacks refactoring functionality, and does not scale well with modern technology.

Mun tries to take the best of both worlds to create a more robust, highly iterative, productive, and performant programming language.

Pillars

Hot Reloading

Mun natively supports hot reloading - the process of changing code and resources while an app is running - on all target platforms and consoles with marginal runtime overhead. Its runtime has useful error messages, and can easily be embedded into other languages.

Static Typing

Mun's type system eliminates an entire class of runtime errors and provides powerful IDE integration with auto-completion and refactoring tools allowing developers to focus on writing code.

Performance

Mun uses LLVM to compile to machine code that can be natively executed on any target platform, guaranteeing the best possible runtime performance.

Made for Creators

Games

Quickly iterate designs using Mun's hot reloading capabilities, without compromising performance.

Mobile & Console

Leverage Mun's cross compilation to unlock hot reloading for console and mobile development.

Robotics

Use Mun's toolchain to build, tweak, and deploy applications to your robot with zero downtime.

WebAssembly

Use the same Mun toolchain to build, test, and deploy content to the web using WebAssembly modules.

XR

Embed Mun into AR / MR / VR apps to unleash the power of creation in an immersive environment.

Syntax

The driving force behind the development of Mun is natively supported hot reloading for functions and data. As such, the language and its syntax will keep growing at the rate in which we add hot reloading-supported semantics.

We take inspiration from a range of application, scripting, and systems programming languages, but we also want the community's input in defining a syntax that you find comfortable to use. We will regularly tweet proposals for new syntax, so make sure to follow us.

fn main() {
    let sum = add(a, b);

    // Comments: Mun natively supports bool, float, and int
    let is_true = true;
    let var: float = 0.5;
    
}

// The order of function definitions doesn't matter
fn add(a: int, b: int): int {
    a + b
}

Support us

The Mun programming language is developed by a group of volunteers. To further advance the project, we welcome any and all:

  ContributionsDonations   Feedback   Updates

Mun is sponsored by the following companies: