Rust Contracts and WebAssembly

in #opensource7 years ago (edited)

Cyber•Fund is introducing a series of publications that provide an overview of some of the best speaker topics we’ve hosted at our meetups. Nikolay Volf — lead software developer (Rust) — spoke about how WebAssembly is considered to be a major game changer for the world wide web. He believes that because “WebAssembly and Rust are based on the same principles, it is advisable to bundle them together.”

Rust

Put tersely, Rust is a unique combination of high-level abstractions found in languages such as: Haskell, Scala, C# and Swift.

rust.png

WebAssembly

It solves tasks that were inefficiently, or otherwise unsolved on various platforms. According to Volf, “Web development has always begged for deterministic computations that are equally executed among all browsers.” The calculations and requirements for WebAssembly are similar to those in Blockchain. Likewise, programs that contain such computations must be executed quickly and occupy a minimal amount of space. WebAssembly is arguably a game changer for Blockchain as well.

Party Technologies uses WebAssembly in the following projects:
projects.png

Polkadot & Private Networks

Polkadot provides consensus between various Blockchains within a single, large-consensus that simplifies the interaction. Referred to as an “over consensus,” this mechanism will be implemented as a WebAssembly program. The consensus specification will also be specific to and rely upon WebAssembly.

The user can already activiate the virtual WordAssebmly machine, run a private network and subsequently use the technology. Kovan is a public test network that is supported solely by Parity nodes. eWasm is a WebAssembly on Ethereum.

WebAssembly’s Advantages

Compact bytecode

Binary format

Determinism

Dictates distinctness at all stages of carrying out the operations and creates a deterministic result

Perspective Target Supported by Large Players

Instead of a single player initiative, it is a collaboration of advanced players with an abundance of expertise such as: Microsoft, Google, Apple, Adobe and Mozilla

Harvard Architecture

Code and data do not intersect

Former Stacking Machines

Minimal machines that can be transformed into other machines on the target platform

Backend Support

Supported with large optimization workflows such as llvm, a backend compiler that utilizes many modern languages to produce code

For more information feel free to contact: [email protected]

The above references an opinion and is for information purposes only. It is not intended to be investment advice. Seek a duly licensed professional for investment advice.