Skip to content
forked from dfinity/motoko

Simple high-level language for writing Internet Computer canisters

License

Notifications You must be signed in to change notification settings

carypan01/motoko

 
 

Repository files navigation

Motoko

A simple language for writing Internet Computer (IC) actors.

User Documentation & Samples

Introduction

Motivation and Goals

  • High-level language for programming IC applications

  • Simple ("K.I.S.S.") design and familiar syntax for average programmers

  • Good and convenient support for actor model

  • Good fit for underlying Wasm and IC execution model

  • Anticipate future extensions to Wasm where possible

Key Design Points

  • Simple class-based OO language, objects as closures

  • Classes can be actors

  • Async construct for direct-style programming of asynchronous messaging

  • Structurally typed with simple generics and subtyping

  • Overflow-checked number types, explicit conversions

  • JavaScript/TypeScript-style syntax but without the JavaScript madness

  • Inspirations from Java, C#, JavaScript, Swift, Pony, ML, Haskell

About

Simple high-level language for writing Internet Computer canisters

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 55.0%
  • Swift 26.6%
  • Rust 8.6%
  • Haskell 3.1%
  • Nix 1.7%
  • TeX 1.6%
  • Other 3.4%