Motion is a dynamically typed general purpose programming language designed to help developers write fast, clean, and efficient code for a modern world.
Motion is created in pure ANSI C, with no dependancies.
Motion is a variation of the Lox language found at www.craftinginterpreters.com and is licensed under GNU GPL v3.0.
Motion's syntax aspires to be fresh, readable, and clean.
## Comments are cool.
var x; ## Declared variables are set to nil.
var y => 10; var z => 2;
## ^^^^ Multiline statements with ";"
print x * y;
func add(a, b) => {
var new => (a + b);
print new;
return new;
}
For more examples, see examples
-
- On benchmarks, Motion is almost twice as fast as a similar python program!
-
- Motion has a familiar, welcoming syntax. Everything "just works".
-
- A secure bytecode VM and JIT Compiler means safety issues are far and few.
-
- No external dependancies and pure C means Motion is tiny, fitting at 130KB. That's small enough to fit on a floppy disk!
See Contribution
Motion supports (or will support):
- ✔️ Dynamic Typing
- ✔️ First Class Functions & Objects
- ✔️ Logical & Arithmetic Operators
- ✔️ Loops and Control Flow
- ✔️ Scoped Variables
- ✔️ Closures
- ✔️ Classes, Superclasses, & Inheritance
- And more! (hopefully)
See Getting Started