A reactive dataflow programming language for the AI era, with automatic parallelization and very high standards of static verification
// momentum
// why it's here
- Created 4 weeks ago and already shipping
- Built almost entirely by one person
// how to help
// readme
Note
Zed is still under construction and is not yet ready for use, but it is coming soon. Releases will be announced at x.com/zedlang. This page describes the language as it will be when finished.
You can read about the design philosophy behind Zed here.
Zed is a dataflow programming language. A program is a set of definitions, each value is defined once in terms of the values it depends on, and the compiler orders the computation from that graph of dependencies. From the same graph, the compiler:
- runs code in parallel, with no threads or locks in the source, and gives the same result bit for bit on any number of cores;
- frees memory without a garbage collector, and often never allocates intermediate collections at all;
- recomputes only what a changed input affects;
- rejects whole classes of run-time errors at compile time, including null dereference, unhandled failure, out-of-bounds indexing and data races.
Its central data structure is the multi-level map, and the same code works on maps held in memory, in files or in a database.