Getting Started

Platform Reference

Data Model

Program Model

System Model

Mechdown Reference

Standard Library

Guides

Project Design Documents

Examples

Mech Documentation

Getting Started

  1. Introduction

  2. Install Mech

  3. Build and Run Mech Programs

  4. Mech REPL

  5. Your First Mech Program todo

Platform Reference

Data Model

  • Data Types

    • atom - symbolic constants, often used for tags or enums

    • bool - logical values for true and false

    • empty - represents an absence of value

    • kind - a category of values

    • number - numeric values, including integers and floating-point numbers

    • string - sequence of UTF-8 characters representing text

  • Data Structures

    • map - stores key-value pairs for fast lookups

    • matrix - 2D array of homogenous values arranged in rows and columns

    • record - groups related fields, usually for representing structured data

    • set - unordered collection of unique values

    • table - collection of heterogeneous data organized into rows and columns

    • tuple - fixed-size, ordered grouping of heterogeneous values

  • Statements and Expressions

Program Model

Coming v0.3

  • Functions

  • Error Handling

  • Comprehensions

  • State Machines

  • SynthAssign

  • Tests

  • Modules

  • Programs

System Model

Coming v0.4

  • Capabilities

  • Distributed Computation

  • Concurrency and Parallelism

Mechdown Reference

Standard Library

Guides

Project Design Documents

Examples

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

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

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