0.2.0 • Published 7 years ago

moon-api v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Moon

Moon is an minimal, JIT-compilable, secure code-interchange format. It is:

  • Safe: Moon isolates logic from side-effects, allowing you to securely run code from untrusted sources.

  • Fast: when compiled to JS, it beats popular libs by a large margin.

  • Compact: Moon has a canonical binary format for very small bundles.

  • Decentralized: Moon imports are hash-addressed, recursively resolved from IPFS.

  • Small: this entire implementation, for example. is a 7.5K JS file (gzipped).

Formally, it consists of the untyped λ-calculus extended with numbers, strings and maps.

Examples

  • Running some computations:

Learning

The best way to learn right now is looking at the examples on demos. Tutorials and documentations are being developed.