Mech Programming Language Documentation

Getting Started

Language Reference

Guides

Language Design Documents

Examples

Mech Programming Language Documentation

Getting Started

  1. Introduction

  2. Installing Mech

  3. Building and Running Mech Programs

  4. Mech REPL

Language Reference

  1. Data Model

    • Variables and Values

    • Data Structures

      • Matrix - a ND array of values

      • Map - a key-value store

      • Set - a collection of unique values

      • Tuple - an ordered collection of values

      • Record - a collection of named values

      • Table - a collection of Records

    • Operators and Expressions

      • Broadcasting

    • Indexing

  2. Programming Model

    • State Machines

    • Functions

    • Machines

    • Mech Programs

  3. System Model

    • Capabilities

    • Distributed Computation

    • Concurrency and Parallelism

  4. Standard Library

  5. Mechdown Reference

Guides

  1. Mech in Fifteen Minutes

  2. Tutorials

  3. Mech for X

    • Mech for Game Devs

    • Mech for Web Devs

    • Mech for ROS Devs

    • Mech for Matlab Devs

    • Mech for Python Devs

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.