Mech Programming Language Documentation

Getting Started

Language Reference

Guides

Language Design Documents

Examples

Mech Programming Language Documentation

Getting Started

  1. Introduction

  2. Install Mech

  3. Build and Run Mech Programs

  4. Mech REPL

Language Reference

  1. Data Model

    • Values, Kinds, and Variables

    • Data Structures

      • Matrix - ND array of values

      • Map - key-value store

      • Set - unordered collection of unique values

      • Tuple - ordered collection of values

      • Record - collection of named values

      • Table - collection of Records

    • Operators and Expressions

      • Operators

      • Indexing

  2. Programming Model (Coming v0.3)

    • State Machines

    • Functions

    • Machines

    • Mech Programs

  3. System Model (Coming v0.4)

    • Capabilities

    • Distributed Computation

    • Concurrency and Parallelism

  4. Standard Library

  5. Mechdown Reference

Guides

  1. Mech in Fifteen Minutes

  2. Tutorials

Language Design Documents

  1. Language Specification

  2. Language Design Principles

  3. Syntax Design Notes

  4. History

  5. Roadmap

Examples

  1. Fizz Buzz - a classic programming exercise that demonstrates the use of Mech's data model and operators.

  2. N-Body Simulation - a simulation of gravitational interactions between multiple bodies.

  3. Extended Kalman Filter - an implementation of the Extended Kalman Filter algorithm for state estimation.

docs/machine:={name:"docs", version:"v0.2.48", authors:[
"Corey Montella"
]
, machine-url:"https://gitlab.com/mech-lang/mech/docs", license:"Apache-2.0"}