3.10 What are Reach’s limitations and its future roadmap

Today, Reach is a powerful language for building decentralized applications, as demonstrated in the overview, the tutorial, and the workshop series. However, it has a lot of potential for growth. This section describes a few of these areas and gives brief sketches of our roadmap for directing this growth. We welcome your contributions on GitHub and on the Discord community to helping make these improvement plans come to fruition.

Connectors. Foremost, Reach is a consensus network-agnostic language, so one of our highest priorities is supporting a wide variety of platforms, including layer-2 abstractions over other layer-1 networks. Presently, we have a robust Ethereum backend and are working on an Algorand backend.

Backends. Presently, Reach has a robust backend for JavaScript that is well-suited for client-facing applications and JavaScript servers. However, we believe that many decentralized application developers would like to make use of languages like Go and Rust for their participants. We are building a Go backend as a prototype of how to build a backend for a statically typed language.

Computation. Reach’s computational language is based on JavaScript and contains many of JavaScript’s most desirable features, like arrow expressions, free-form objects, destructuring bindings, robust import and export specificiers, and so on. We are working on making the transition for JavaScript developers as seamless as possible by integrating more compatibility through features like syntactic sugar for while patterns, like for in JavaScript, and recursive functions (when they are in a tail-recursive set.) We also plan to add features from typed languages, like abstract data types and pattern matching. Similarly, we have plans to extend Reach’s type system to be able to track more specific features of values, such as refinement types, substructural types to allow mutation, and arbitrary range integer types. Finally, we have plans to allow more exotic features, like non-communicating loops with guaranteed termination, statically computable exceptions, and pay-as-you-go closures, including non-tail-recursion through closure conversion of non-contifiable continuations.

Verification. Reach’s verifier is robust in the face of many complex and interesting theorems about decentralized application behavior. In the longer term, we intend to introduce verification promises that constrain the eventual use of values, refine the knowledge checker to reduce false positives, verify core compiler algorithms, and introduce a model-checking-based assertion mechanism for specifying game theoretic properties of an application, such as that all state changes are Pareto improvements.

Infrastructure. We intend to build a package system for Reach to allow for sharing composable decentralized applications.

Network Integration. Since Reach is consensus network-agnostic, it is not possible for Reach programs to directly integrate with network-specific features, such as other contracts on Ethereum or standard assets on Algorand. We intend to support these through network selection options with Reach programs and a gradual typing-style protection mechanism to characterize the verifiable properties of the foreign resources.

Communication. Reach’s communication language is limited to protocols with finite consensus state. This rules out many popular decentralized application designs, like auctions and tokens, which have state linear in the number of participants. We intend to address this via the introduction of inductive state through bounded induction, to ensure that arbitrary data is not communicated or stored in consensus state. Bounded inductive state can be represented via Merkle trees to ensure that consensus state remains finite.}

Reach’s communication language has other limitations for which we do not have short-term plans for removing. For example, we do not intend to support co-inductive or cyclic state, nor expose an arbitrary consensus heap to programmers.