hexfusion retweeted
The Secret Avalanche Scaling Master Plan
(Super Duper Secret)
Note: This is simply my vision. Things may change.
The Avalanche vision has always been to build high-performance blockchain technology that is usable, reliable, and scalable well into the future. But few may know precisely how the vision gels out, and how I believe the Avalanche architectural design is the most future-proof one. In this post I want to provide an overview of what's ahead of us and how things interplay with each other.
At the highest level, this is the super-duper secret vision: many FAST blockchains that behave like ONE chain and that scale up in capacity without an upper bound. This is an extremely high bar, and while we're not there yet, the pieces all falling into place. The rest of this blog post will elucidate, at a high level, how I see this all working.
First, let's talk about where we are with the various scaling technologies. For the most part, we have two main approaches to scaling. The first approach tries to make the base layer as fast as possible. Many chains have tackled this path, including Avalanche, Solana, Ethereum, and others. However, there is one fundamental issue: even if we scale the base layer up in some finite capacity, there are paths where usage growth could exceed hardware and software growth, in which case we need other approaches. Here are some truths: a) while single chains will keep getting faster and faster, a single “global” chain is not sustainable due to storage growth risk; b) single-chain settlement is not sustainable due to execution risk; and c) the proper way to prepare for the future is to build systems that minimize both storage and execution risk. The first is the risk associated with state growth in a single chain that is faster than our ability to absorb it, and the second is the risk associated with cascading safety risks associated with reliance on settlement in a single chain. Fundamentally, then, this requires coming to terms with sensible conclusion: good design involves many fast and parallel chains that behave as one.
Let me repeat again. At a high level this is the secret sauce: make it all fast and make it all feel as one. Let's dive deeper. Please note that this is just a high-level overview, and I further details of the deep engineering work required to make this happen will come from the great worth coming out of the AvalancheGo client.
1. Make It All Very Fast
Avalanche introduced a powerful consensus protocol that gives you something that no other PoS protocol gives you: scaling up with arbitrary number of nodes. However, when building production-ready systems, building for decentralized validator set is not enough. You need to consider other things as well, including the biggest current bottleneck of all: state growth. As it currently stands, there's two big limitations with state growth. The first one is state access: as state grows bigger, accessing it becomes harder. The second one is state maintenance: as state grows bigger, simply keeping it around becomes harder. The solution to the first one is a matter of fairly easy iterative engineering, i.e. building better and better backend stores. This is what Solana has tackled already in some form, although what EVM-based chains are still behind. Avalanche, however, will soon become the first EVM-supporting network that addresses the state access issue directly by reducing the overhead by possibly orders of magnitude thanks to Firewood (performance metrics are currently pending). As a quick sneak-peek under the hood, here's how this bottleneck comes about on the EVM and how Firewood fixes it. After a block is processed, the EVM requires that the state root post execution is included in the block. This means that at the end of the block you end up having to do a bunch of changes to the trie to get that root. And since you can't do this asynchronously, you have to do it right then and there, incurring big overhead. Each contract has a tree, and as you may need to do a single update, you may need to reach many intermediate nodes per modification to be able to update the tree. What you basically have at this point is a randomized serial disk-bomb that is functionally based on the number of changes. Firewood solves this issue. Instead of storing data randomly on disk as is currently done in Geth, Firewood stores them on disk through a more sophisticated sequential layout that enables much rapid changes.
The solution to the second state growth challenge, i.e. how to store all this new data, is based on deeper architectural changes. As of right now there are only two systematic approaches: L2s and parallel chains. While L2s are great technical achievements, they do pose some challenges due to their fundamental requirements. Namely: they often rely on centralized sequencers; they pick up a non-trivial amount of cost of the expensive underlying settlement layer; they are generally more inflexible in the virtual machine diversity and require higher maintenance due to their cryptographic complexity; and -- most importantly of all -- they fundamentally put too much reliance on a single chain which can become faulty. This poses significant fault risks for growth. Despite this, however, L2s do have a role in the scalability play, and I do think they are here to stay for some types of applications. Nonetheless, I strongly believe that their settlement requirements, and subsequently withdrawal and deposit-related fragmentation, pose extremely high challenges to unified UIs. In other words, it is going to be challenging to allow us to make the network feel as a single chain, which is ultimately the goal. This is, in my opinion, a big limitation when taken holistically. Therefore, it is my opinion that parallel chains are the sounder approach. Done right, parallel chains (like subnets) can actually allow us to achieve sub-second finality in UIs, reduce fault risks, enable deep decentralization, lower the maintenance costs, and ultimately enable never-before seen experiences for users.
My topline performance capacity goals for Avalanche are simple:
a. End-to-end finality within a chain bounded by 250ms.
b. End-to-end finality within two chains bounded by 1 second.
c. Peak throughput on the C-chain at least 100x higher and cheaper than the next best EVM-chain.
d. Peak throughput of any Hyper-chain (WASM + Rust contracts enabled) at more than 1M TPS.
2. Make It All Feel As One
Deploying many mind-bogglingly fast blockchains isn't enough: they all need to feel like a single gigantic, unified operating system. Making the network interoperate and behave like a single chain, despite it not being a single chain, involves a strong interplay between the Avalanche Warp Messaging (AWM), the base technology, and the Teleporter smart contracts that enable the AWM. By the end of this engineering work, one should be able to issue a transaction that initiates on, for example, the Dexalot chain, routes to the C chain, and then route back, all in a single unified transaction that takes under 1 second to complete. And that's not all. One should be able to move a token, for example, from the C chain to the Dexalot chain, stake it there or even use it for paying gas in that chain. This kind of UI pattern can unlock tremendous new opportunities for blockchain design that we simply have not explored yet.
Anyway, that's the secret sauce. Well, maybe not so secret. A a unified blockchain network that will simply, under no circumstances, ever bog anyone down. It'll just simply work, under any dang load. We're still not there, but the work being put towards AvalancheGo by both the Ava Labs engineering team and the community at large is simply tremendous. If you want to get involved, please contribute to the ongoing public list of ACPs.
Over the next few months, I will post more detailed metrics about all the scaling work. Stay tuned.
hexfusion retweeted
The #Avalanche HyperSDK Program Simulator is OUT!
A few days ago, @hexfusion released an e2e simulator that allows you to run/test arbitrary programs without spinning up an entire blockchain: github.com/ava-labs/hypersdk…
Want get involved with HyperSDK Programs? Now is the time!
hexfusion retweeted
Replying to @blocmatesclips
@StillEarlyPod Ep. 3 just dropped featuring @avalabsofficial heavy weight & defi legend @luigidemeo
Featuring:
- Luigi's origin stories
- Why @starsarenacom captured a communities 🔺
- $AVAX's L2 strategy
- #Avalanche gaming
and of course our favourite quick-fire questions
This quoted post is unavailable.
hexfusion retweeted
13/ For those keeping track at home, the #Avalanche HyperSDK now has:
* WASM-Based Programs (i.e. smart contracts)
* Parallel Transaction Execution
* Multi-Dimensional Fees
* Nonce-Less Transactions
* Batch Signature Verification
* Deferred Root Generation
* Dynamic State Sync
hexfusion retweeted
1/ #Avalanche HyperSDK Research Deep Dive: 𝑽𝑴-𝑨𝒈𝒏𝒐𝒔𝒕𝒊𝒄, 𝑶𝒏-𝒕𝒉𝒆-𝑭𝒍𝒚, 𝑷𝒂𝒓𝒂𝒍𝒍𝒆𝒍 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏 𝑬𝒙𝒆𝒄𝒖𝒕𝒊𝒐𝒏
AFAIK HyperSDK is the FIRST build-a-chain SDK that runs txs in parallel for all Custom VMs out-of-the-box 🚀
github.com/ava-labs/hypersdk…
hexfusion retweeted
MASSIVE shoutout to @hexfusion for his work on #Avalanche HyperSDK Programs over the last few weeks.🧪
Here is just a small collection of his superhuman-level contributions to the repo:
* github.com/ava-labs/hypersdk…
* github.com/ava-labs/hypersdk…
* github.com/ava-labs/hypersdk…
hexfusion retweeted
Debugging in production
teapawt.org/detectclips/status/170…
hexfusion retweeted
The market is yet to realize how powerful @AvaCloud is.
Your own custom blockchain in minutes. – at Jongno-gu, Republic of Korea
hexfusion retweeted
It took me three months to write entirely from scratch, but our new optimizing compiler has finally started passing all the WebAssembly v1 spec tests🔥🔥🔥 github.com/tetratelabs/wazer…
hexfusion retweeted
Stake $AVAX anytime, anywhere with Core Stake.
Keep pace with DeFi by staking to the Avalanche network, now available on Core mobile.
No hidden fees. Flexible lockup period. And claim rewards.
join.core.app/?utm_source=tw…
hexfusion retweeted
1/ Teleporter, a new cross-chain messaging protocol built on top of Avalanche Warp Messaging, is now open for testing. 🚀
It provides smart contract developers an easy, native way to call contracts on other EVM-based chains within #Avalanche.
github.com/ava-labs/teleport…
hexfusion retweeted
🔺Here's a deep dive on 𝙃𝙮𝙥𝙚𝙧𝙎𝘿𝙆 𝙋𝙧𝙤𝙜𝙧𝙖𝙢𝙨: How @hexfusion and I built a WASM-based smart contract framework for @avax @AvaxDevelopers🔺
We just finished the MVP last night and open sourced it ASAP! Excited to develop in the open and discuss future R&D 🙌 👀
1/ Introducing 𝙃𝙮𝙥𝙚𝙧𝙎𝘿𝙆 𝙋𝙧𝙤𝙜𝙧𝙖𝙢𝙨: A Minimal, Performance-Focused, WASM-Based Smart Contract Framework for @avax @AvaxDevelopers
github.com/ava-labs/hypersdk…
Starting 𝙏𝙊𝘿𝘼𝙔, you can write HyperSDK Programs in #Rust using the 𝘿𝙚𝙫𝙚𝙡𝙤𝙥𝙚𝙧 𝙋𝙧𝙚𝙫𝙞𝙚𝙬 🏗️ .
hexfusion retweeted
On this week's Systems Seminar, we're joined by @fredbrancz, Founder of @PolarSignalsIO. Frederic talks about the importance of profiling in modern computing, and how profiling is used to monitor, debug, and improve the performance of modern applications. youtube.com/watch?v=00ghAVlx…
hexfusion retweeted
I “jailbroke” a Google Nest Mini so that you can run your own LLM’s, agents and voice models.
Here’s a demo using it to manage all my messages (with help from @onbeeper)
🔊 on, and wait for surprise guest!
I thought hard about how to best tackle this and why, see 🧵
hexfusion retweeted
Introducing a game-changing way to write Stateful Precompiles without forking the Subnet-EVM! 🚀📦
We present the Precompile-EVM! 🧵
github.com/ava-labs/precompi…
hexfusion retweeted
Bank of America just released this research article on Global Digital Assets, and they listed Evergreen Subnets as a key platform powering the future of trading and asset tokenization. Large TradFi companies recognize Avalanche’s industry leading technology.
rsch.baml.com/access?q=s-i51…
hexfusion retweeted
Uniswap is now live on the @avax chain ✨
Start swapping your fave Avalanche tokens on the Uniswap website!
app.uniswap.org/#/swap
hexfusion retweeted
As the GM Vietnam Hackathon wraps up, we're thrilled to announce that BlocTrace has emerged as the winner of the Avalanche Innovation Track 🏆✨
Congratulations to the winner @sahil_harriram, our runner-up YieldKingz, and a thank you to all who participated in a great event 🤝






















