Mech Documentation
Getting Started
Platform Reference
Data Model
atom- symbolic constants, often used for tags or enumsbool- logical values for true and falseempty- represents an absence of valuekind- a category of valuesnumber- numeric values, including integers and floating-point numbersstring- sequence of UTF-8 characters representing textmap- stores key-value pairs for fast lookupsmatrix- 2D array of homogenous values arranged in rows and columnsrecord- groups related fields, usually for representing structured dataset- unordered collection of unique valuestable- collection of heterogeneous data organized into rows and columnstuple- fixed-size, ordered grouping of heterogeneous valuesDefining, Assigning, and Accessing Data
todo- create data and change itIndexing - access elements within data structures
Conversion
todo- convert data from one kind to anotherBroadcasting - apply operations over data structures
Program Model
comprehension- for constructing sets and matrices from predicatesfunction- reusable block of code that performs a specific taskmatch- construct for branching logic based on pattern matchingpattern- match and destructure datastate machine- defines a set of states and transitions between themSynth
todoGen
todoModules
todoPrograms
todoError Handling
todoTests
todo
System Model
Coming v0.4
Capabilities
todoDistributed Computation
todoConcurrency
todo
Mechdown Reference
Introduction
What is Mechdown?
todoWriting Mechdown Documents
todoMechdown Syntax Overview
todoMechdown Documents
todoSections and Subsections
todoTables of Contents
todoBreadcrumbs
todoDocument Metadata
todoDocument Elements
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.
Bubble Sort - the classic bubble sort algorithm implemented with state machines.