Liquid Stake with compassSOL for an 7.31% APY from staking, MEV + fees

Enjoy the freedom of liquid staking in Solana Defi while delegating your stake to the high performance Solana Compass validator. Stake or unstake at any time here, or with a Jupiter swap.

Benefit from our high staking returns and over 2 years experience operating a Solana validator, and receive additional yield from priority fees + MEV tips

Earn 6.2% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.2% APY yield on your SOL, while supporting us to create new guides and tools. Learn more

Stake your SOL

  1. Click to connect your wallet
  2. Enter the amount you wish to stake
  3. Kick back and enjoy your returns
  4. Unstake from your wallet or our staking dashboard

Earn 6.2% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.2% APY yield on your SOL, while supporting us to create new guides and tools.

Learn more

Breakpoint 2024: Technical Talk: WTF Is the SVM? (Jarry Xiao)

By breakpoint-24

Published on 2024-09-20

Jarry Xiao explains the Solana Virtual Machine (SVM) and introduces Alysses Labs' new blockchain, Alice.

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

Jarry Xiao, co-founder of Alysses Labs, unveils the mysteries behind the Solana Virtual Machine (SVM) and introduces a groundbreaking new blockchain called Alice, designed specifically for verifiable finance. This technical deep dive provides crucial insights into the future of blockchain technology and its applications in the financial sector.

Summary

In this illuminating presentation at Breakpoint 2024, Jarry Xiao demystifies the Solana Virtual Machine (SVM), breaking down its core components and explaining how it functions. The SVM is revealed to be an interpreter for Extended Berkeley Packet Filter (eBPF) code, coupled with an execution environment that enforces Solana's program model.

Xiao meticulously explains the byte layout of Solana programs and the importance of the JSON RPC in the Solana ecosystem. He emphasizes that the true specification of the SVM lies in its wire format, which is crucial for maintaining compatibility and enabling the development of new implementations.

The presentation culminates with the introduction of Alice, a new blockchain developed by Alysses Labs. Alice is positioned as the next evolution of the SVM, specifically tailored for verifiable finance applications. It boasts impressive performance metrics and maintains backwards compatibility with Solana, potentially opening up new avenues for financial applications in the blockchain space.

Key Points:

Understanding the SVM

The Solana Virtual Machine (SVM) is essentially an interpreter for Extended Berkeley Packet Filter (eBPF) code. This means that every Solana program is a list of eBPF instructions, also known as bytecode. The SVM executes these instructions sequentially, with the ability to jump to different parts of the code based on certain conditions.

The SVM's interpreter is wrapped in an execution environment that follows the Solana program model. This environment acts as a referee, ensuring that the virtual machine's state changes adhere to a set of predefined rules. These rules, known as the program model, include restrictions such as preventing the creation of lamports (Solana's native currency) within a transaction and ensuring that accounts can only be modified by their owning programs.

The Byte Layout Specification

One of the most critical aspects of the SVM is the byte layout specification for programs. This specification defines how input parameters are serialized into the virtual address space that can be accessed by the interpreter. It's the only true specification enforced by the existing execution model.

The byte layout includes details such as the number of accounts, field counts, and instruction bytes. While this specification is complex, it's often hidden from developers through abstraction layers like the entry point macro or Anchor's #[program] macro. However, understanding this specification is crucial for anyone looking to implement an SVM-compatible system.

The Importance of JSON RPC

The JSON RPC (Remote Procedure Call) is an optional but significant part of the SVM specification. It provides a standardized API for interacting with the blockchain, allowing developers to send requests and receive data in a predefined format. This standardization ensures that any client code compatible with Solana's JSON RPC can also interact with custom implementations that follow the same specification.

Introducing Alice: The Blockchain for Verifiable Finance

Xiao introduces Alice, a new blockchain developed by Alysses Labs, as the next evolution of the SVM. Alice is specifically designed for verifiable finance applications, aiming to combine the transparency of blockchain with the performance of traditional finance systems.

Key features of Alice include 15-millisecond slot times, low latency, high throughput, and low jitter. These properties make it particularly suitable for financial and trading systems. Additionally, Alice implements opinionated sequencing rules, allowing it to prioritize certain types of behaviors based on specific goals.

Importantly, Alice maintains backwards compatibility with Solana in terms of program execution and JSON RPC. This compatibility allows Alice to leverage the existing Solana ecosystem while building new and improved applications for the financial sector.

Facts + Figures

  • The SVM is an interpreter for Extended Berkeley Packet Filter (eBPF) code
  • Every Solana program is a list of eBPF instructions (bytecode)
  • The SVM's execution environment enforces the Solana program model
  • The byte layout specification is the only true spec in the SVM
  • Alice, the new blockchain by Alysses Labs, features 15-millisecond slot times
  • Alice is designed specifically for verifiable finance applications
  • Alice maintains backwards compatibility with Solana's program execution and JSON RPC
  • The JSON RPC specification allows for standardized interaction with the blockchain
  • The SVM's byte layout specification is typically hidden from developers through abstraction layers
  • Alysses Labs believes that infrastructure should be built with a specific purpose in mind

Top quotes

  1. "A computer, or CPU, is literally just the machine that can execute simple instructions."
  2. "EBPF stands for extended Berkeley packet filter, and it's essentially just the ISA for Solana."
  3. "The execution model is essentially something that wraps really generic, which is the EBPF interpreter."
  4. "The only real spec will always be the wire format."
  5. "We truly view Alice as the next evolution of EBPF."
  6. "Infrastructure should never be built for the sake of purely building infrastructure. There should be some end application in mind."

Questions Answered

What is the Solana Virtual Machine (SVM)?

The Solana Virtual Machine (SVM) is an interpreter for Extended Berkeley Packet Filter (eBPF) code. It executes Solana programs, which are essentially lists of eBPF instructions or bytecode. The SVM includes an execution environment that enforces Solana's program model, ensuring that state changes adhere to predefined rules.

How does the SVM's execution environment work?

The SVM's execution environment acts as a referee, wrapping around the underlying virtual machine. It takes in user transactions, builds the VM accordingly, and then determines whether the VM's actions are acceptable based on the Solana program model. This environment enforces rules such as preventing the creation of lamports within a transaction and ensuring accounts are only modified by their owning programs.

What is the importance of the byte layout specification in the SVM?

The byte layout specification is crucial as it defines how input parameters are serialized into the virtual address space accessible by the interpreter. It's the only true specification enforced by the existing execution model. While often hidden from developers through abstraction layers, understanding this specification is essential for implementing SVM-compatible systems or creating new blockchain platforms based on the SVM.

What is Alice, and how does it relate to the SVM?

Alice is a new blockchain developed by Alysses Labs, positioned as the next evolution of the SVM. It's specifically designed for verifiable finance applications, aiming to combine blockchain transparency with traditional finance performance. Alice features 15-millisecond slot times, low latency, high throughput, and maintains backwards compatibility with Solana's program execution and JSON RPC, allowing it to leverage the existing Solana ecosystem.

Why is JSON RPC important in the context of the SVM?

JSON RPC (Remote Procedure Call) is a standardized API specification that allows for consistent interaction with the blockchain. By following this specification, any client code compatible with Solana's JSON RPC can also interact with custom implementations. This standardization is crucial for maintaining interoperability and enabling the development of tools and applications that can work across different SVM-compatible platforms.


Related Content

Breakpoint 2024: Fireside: WTF Is MEV and Why Should We Care?

Experts discuss Maximal Extractable Value (MEV) on Solana, its implications, and potential solutions

Breakpoint 2023: Check the Chain Bro

George Harrap discusses vital metrics and developments in the blockchain space, emphasizing decentralization and ecosystem growth.

Breakpoint 2023: Open Source Endeavors on Solana

Explore the significance of open-source development and its impact on the Solana blockchain ecosystem, as discussed by Rex from Magic Eden.

Breakpoint 2023: A World in a Grain of Sand: State Compression on Solana

Exploring the possibilities of blockchain scalability with state compression technology on Solana.

Breakpoint 2023: Fuzzing, Formal Methods, and the State of Solana Security

An exploration of how fuzzing and formal verification techniques contribute to the security of the Solana blockchain.

Breakpoint 2023: ZK on Solana: Private Solana Programs

An exploration of zero-knowledge proofs for enhanced privacy on the Solana blockchain.

Breakpoint 2024: Product Keynote: Travala (Juan Otero)

Travala announces integration with Solana and introduces Open Loyalty program for the Solana ecosystem

Breakpoint 2024: Product Keynote: Clickhouse & Goldsky: CryptoHouse

Clickhouse and Goldsky introduce CryptoHouse, a free blockchain analytics service for Solana

Breakpoint 2023: Solang: Running Solidity Natively on Solana

An introduction to Solang, a tool that compiles Solidity code to run natively on the Solana blockchain.

Breakpoint 2024: Product Keynote: In the Blink of an Eye

Chris Osborn introduces Blinks, a revolutionary technology changing how we interact with the internet

Breakpoint 2023: RWA and Banking

Jeremy Vaughn introduces Solstice, Aegis’s blockchain solution for modernizing core banking systems and integrating real-world assets.

Breakpoint 2023: Highlighting the Tech Making the 'Only Possible on Solana' Campaign a Reality

An in-depth look at the marketing campaign and cutting-edge technology driving Solana's blockchain innovations.

Breakpoint 2023: The Investor Nation

Mongolian entrepreneur shares a vision for transforming Mongolia's economy through blockchain technology

Breakpoint 2023: Solana Incubator: Build your company alongside Solana Labs

Solana Incubator offers hands-on support and resources to help companies build and scale within the Solana blockchain ecosystem.

Breakpoint 2023: 365 Days of Hacking with Circle x Solana: Building Cross-chain Partnerships

Circle and Solana team up to celebrate a year of innovation, highlighting their efforts to enable seamless cross-chain transactions.