Live
USD · 24h
Blockchain Tech

The people shaping Arbitrum’s Stylus multilanguage VM

Offchain Labs engineers the Stylus EVM+ environment, enabling applications to run up to 70 times faster than EVM counterparts. Redstone uses the Stylus Rust SDK to process high-speed data feeds, bypassing the 256-bit limitation found in the standard Ethereum Virtual Machine.

The people shaping Arbitrum's Stylus multilanguage VM

Offchain Labs engineers the EVM+ paradigm. Ed Felten, co-founder and chief scientist of Offchain Labs, says Stylus allows developers to choose between EVM and traditional programming languages in one environment. Steven Goldfeder, CEO of Offchain Labs, says this expands the application spectrum for DApps on Arbitrum. Stylus-based applications run up to 70 times faster than EVM counterparts in high-computation scenarios. The system uses WebAssembly to run programs at near-native speeds. This architecture remains additive to the EVM. This upgrade combines the Ethereum Virtual Machine with the WebAssembly runtime to create a dual-VM environment. The Arbitrum DAO can configure parameters like contract size limits or opcode pricing for Arbitrum One and Arbitrum Nova. Activated Stylus programs expire after one year to decrease state bloat. The Stylus VM provides 120Mb of temporary storage per hour for these activated contract codes. The Nitro stack, which Stylus is a fork of, provides a new prover that performs interactive fraud proofs over WASM code. Validators run the Nitro engine compiled to native code, but they switch to WASM if a fraud proof is needed. This stack contains a slimmed-down version of the ArbOS component rewritten in Go, which provides cross-chain communication and a batching and compression system to minimize L1 costs. Arbitrum One migrated from the Classic Arbitrum stack onto Nitro on August 31, 2022. The system runs Geth, which is the most popular Ethereum execution client. The Arbitrum Expansion Program allows for the permissionless deployment of the Nitro software provided that 10% of net revenue goes to the Arbitrum community.

The findings of Redstone and LimeChain

Redstone and LimeChain evaluate the deployment. Maja Cholewka, Marketing Lead at Redstone, uses the Stylus Rust SDK to run data feeds at high speeds; this allows Redstone to process many feeds per transaction without the 256-bit limitation found in the EVM. Redstone uses Rust toolchains and taps Arbitrum precompiles to achieve these results.

Metric EVM Stylus Improvement
Base computational overhead 35k 23k 34.3% reduction
Per-feed computation 16k 8k 50.0% reduction

LimeChain researchers report friction in the developer experience. They state the development lifecycle remains split between native Rust tooling and cargo stylus. For example, the cargo stylus CLI lacks a compile command. Developers must also use the native cargo CLI for compilation and then use cargo stylus for checking the binary and deploying it. This introduces additional friction because developers must set up the project with a different compilation target and compression configuration. Developers also find the development stack is tailored for programs with a single entrypoint, which differs from EVM-based contracts. The LimeChain team also notes that they must explicitly configure compression settings for Stylus programs. You might find the need to explicitly configure compact crates to fit size requirements. Will the team provide an integrated local EVM+ module to help developers?

Scaling the developer pool

The ecosystem targets a massive developer expansion. Estimates show 20,000 Solidity developers compared to 3.5 million Rust developers and 10 million C++ developers. This scale helps Arbitrum capture users from different virtual machine ecosystems. The Creatives Onchain hackathon with DoraHacks provides up to $3,000 in prizes for builders. This event runs from December 5th to February 25th and includes tracks for music platforms, event ticketing, and public goods. Physical workshops occur on December 14th and February 22nd. Judging takes place from February 25th to March 10th. Winners receive USDC on the Arbitrum chain. The prize pool for this competition reaches up to $3,000. The prize distribution includes $1,200 for the winner, $800 for the first runner up, $500 for the second runner up, and $500 for other promising projects. Developers use the Stylus SDK to write programs in Rust, C, C++, or AssemblyScript. The SDK provides generic, storage-backed Rust types for programming Solidity-equivalent smart contracts with optimal storage caching. It also includes simple macros for writing language-agnostic methods and entrypoints. The SDK uses primitive types backed by the Alloy library and automatically exports Solidity interfaces for interoperability across different languages. The SDK also supports #[no_std] for contracts that wish to opt out of the standard library.

Join the discussion

Leave a Reply

Your email address will not be published. Required fields are marked *