Cointime

Download App
iOS & Android

Can AO do the same TPS as Solana ? - Sam:Far, far, far more

Validated Project

Author : Sam

Reviewer : Kyle

Origin link:https://twitter.com/samecwilliams/status/1784008697351471154


🗨️ Context:

@NoNoiseCrypto asked Sam on X Platform: Can AO do the same TPS as Solana?

Sam replied: Far, far, far more.

And attached a thread explanation as follows.

  

The answer to OP below is: Far , far , far more.

Why? Messages.

I have huge respect for the engineering of Solana. The design is generally underrated by non-devs. Let's explore the differences and trade-offs with @aoTheComputer in-depth.

A Primer: WTF is message passing?

In computer science when we want to process multiple inputs (like transactions) to a system simultaneously we call this 'parallelism'. There are two fundamental approaches: Shared memory and message passing. Let's look at each in turn.

Shared Memory

Solana is an extremely well-optimized shared memory machine. This means that every contract can read and write directly to the memory of every other contract.

This allows 'state' (the data in programs -- like balances, etc) to be updated synchronously: They are all committed in one go.

This can be helpful, but it also means that when one user is accessing some of the data in a program, it cannot be modified by any other user.

They wait for one-another in a process called 'lock contention'. Alice 'locks' the data, modifies it, 'unlocks' it, and only then can Bob access it. They essentially form a queue.

Shared memory systems scale to a certain point -- and Solana pioneered the most optimal design of it I have seen in a trustless environment -- but then it stops. To scale further, you have to take a different approach...

Message Passing

@aoTheComputer is a hyper-optimization of the other route: Message passing.

In AO, each 'contract' is its own asynchronous process.

Each one runs independently, at the speed of a single CPU thread, sending messages to other processes when they need to interact. You can think of each like an individual program on your computer, or an extremely fast version of a rollup/app-chain.

When you exhaust the throughput of one process for your app, you can just split your app across any number of other processes.

More processes → higher throughput → more happy users.

There is no practical limit to the number of hosted parallel processes in AO. The only protocol limit is inherited from Arweave: no more than 2^256 bytes. For scale, this is far more atoms than there are in the universe.

The flip-side of this is that you don't have access to the memory of every other process in the network 'globally' -- you have to ask for information via messages.

Fortunately, there is over 50 years of research and deployment of this technique in computer science to make it simple and easy to use. It is called Actor Oriented Programming, and is where AO gets its name.

Almost every service you use on the internet is built using message passing -- messengers, web sites, and the entire TradFi ecosystem. Even the internet itself is a message passing machine.

AO's innovation is to apply this approach to blockchains and smart contracts.

Because we already had to solve the scalability of onchain storage in order to build Arweave, we inherited this scalability 'for free' by building AO with Arweave as its messaging layer.

On-chain data at any scale → on-chain messages at any scale.

The first use of this system is likely to be in the financial arena, but I don't think it will stop there. When each process is asynchronous, any amount of compute can run in the network at the same time without any effect on one-another.

You can use AO to run a compute-heavy AI agent while I use it to buy coffee at a store. Our processes are independent, so neither of us has to bid against the other in order to access the system. There is no reason this cannot scale to cover the entire world's compute load.

To sum it up:

No shared memory via message passing → No lock contention → Scale.

The cost? Shared, synchronous access to global memory.

Given the right tools, which AOS provides, this cost is barely noticeable. Seems like a good trade.

This is a topic that computer scientists can discuss endlessly. There is lots of nuance here, but if you made it this far: Congrats. You now get the gist.

Solana is an exceptionally well engineered machine, taking the shared memory paradigm to its logical conclusion in blockchains. The AO testnet has been live for 2 months, and is currently handling ~6% of the user traffic of Solana.

Clear skies and free-scaling growth ahead .


  🔗 More about PermaDAO :Website | Twitter | Telegram | Discord | Medium | Youtube

🏆 Spot typos, grammatical errors, or inaccuracies in this article? Report and Earn !

Comments

All Comments

Recommended for you

  • U.S. Department of Justice: Two Chinese nationals arrested for allegedly defrauding at least $73 million through cryptocurrency investments

    According to the official website of the United States Department of Justice, a complaint from the central region of California was made public yesterday, accusing two Chinese nationals of playing a major role in a money laundering scheme involving cryptocurrency investment fraud.Daren Li, 41 years old, is a dual citizen of China and St. Kitts and Nevis, and is also a resident of China, Cambodia, and the United Arab Emirates. He was arrested on April 12th at Hartsfield-Jackson Atlanta International Airport and later transferred to the central region of California. Yicheng Zhang, 38 years old, is a Chinese national currently residing in Temple City, California. He was arrested yesterday in Los Angeles. Today, they are accused of leading a money laundering scheme related to an international cryptocurrency investment scam, involving at least $73 million. These arrests were made possible thanks to the assistance of our international and US partners, demonstrating the Department of Justice's commitment to continuing to combat the entire cybercrime ecosystem and prevent fraud in various financial markets.

  • Hong Kong expands digital yuan pilot to allow e-CNY wallets for cross-border payments

    The Hong Kong Monetary Authority and the People's Bank of China have expanded their cross-border digital yuan pilot to allow Hong Kong residents to use e-CNY wallets for cross-boundary payments. The digital yuan is China's central bank digital currency, which has been piloted for several years and is among the most advanced of its kind globally. Users can set up wallets using just a phone number and top them up in real-time through 17 Hong Kong retail banks. The HKMA plans to work with the Digital Currency Institute to explore enhancing interoperability in payments and corporate use cases, such as cross-border trade settlement.

  • WSJ: GPU cloud computing platform CoreWeave raises $7.5 billion to promote artificial intelligence computing

    CoreWeave, an artificial intelligence cloud computing startup supported by Nvidia, has raised $7.5 billion from investors including BNY Mellon, KKR, and BlackRock. This financing is one of the largest private debt financings ever. Just two weeks ago, CoreWeave completed a $1.1 billion equity financing round with a valuation of $19 billion. As of the end of last year, the company had 14 data centers and plans to double that number to 28 by the end of this year.

  • In the past 24 hours, the entire network has liquidated $139 million, and long orders have liquidated $83.5374 million

    According to Coinglass data, there were liquidations totaling $139 million in the past 24 hours, with a total of 56,471 people being liquidated.Of these, long positions were liquidated for $83.5374 million, short positions were liquidated for $55.4391 million, BTC was liquidated for $39.2379 million, ETH was liquidated for $26.5550 million, and SOL was liquidated for $10.2312 million.

  • Türkiye proposes to align crypto legislation with international standards

    Turkey's ruling party submitted a draft encryption bill to parliament on May 16. The bill focuses on licensing and registration of encryption service providers and aligning with international standards.The draft law aims to update existing legislation to comprehensively regulate the emerging cryptocurrency market. The key areas of focus for the bill include consumer protection, platform transparency, and compliance with financial regulations. The proposed legislation aims to regulate cryptocurrency trading platforms and other service providers in the industry, requiring them to obtain a license from the Capital Markets Board of Turkey.

  • Binance assisted Taiwan’s law enforcement agencies in cracking a major virtual asset case involving nearly NT$200 million

    On May 17th, Binance announced that the Financial Crime Compliance department (FCC) of Binance, in collaboration with the Taiwan Department of Justice Investigation Bureau, has successfully cracked a major criminal case involving money laundering of virtual assets, with an involved amount of nearly 200 million New Taiwan dollars. Throughout the entire case, Binance provided support to Taiwan's crime fighters, offering crucial intelligence and assistance, and played a key role in promoting the investigation.

  • $1.2 billion in notional value of BTC options and $930 million in ETH options are set to expire

    Greeks.live data shows that on May 17th, 18,000 BTC options with a put/call ratio of 0.63 and a maximum pain point of $63,000 (nominal value of $1.2 billion) will expire. Additionally, 320,000 ETH options with a put/call ratio of 0.28 and a maximum pain point of $3,000 (nominal value of $930 million) will also expire. Greeks.live states that this week, inspired by the meme stock craze in the US, BTC ETFs have seen significant inflows, causing BTC to surge above $65,000. However, the rest of the crypto market remains weak, with trading volume continuing to decline, and the divergence in the options data of BTC and ETH reflects this. Looking at the structure of bulk trades and market trades, the downward trend in IV for major deadlines has ended and entered a consolidation phase, with limited downside potential at present. BTC longs and shorts are relatively balanced, while the weak ETH price has led to a continuous decline in market confidence, with selling calls becoming the absolute main transaction.

  • Tether CEO: 1 billion USDT will be issued on Tron Network, but it has been authorized but not yet issued

    On May 17th, Tether CEO Paolo Ardoino announced that 1 billion USDT had been issued on the Tron Network early this morning Beijing time, but not yet released. This means that the amount will be used as inventory for the next issuance request and chain exchange.

  • On-chain indexing service Subsquid completes financing of US$17.5 million, with participation from DFG and others

    Subsquid, a chain indexing service, announced the completion of a $6.3 million financing through the CoinList community. As of now, its total financing amount has reached $17.5 million, with participation from DFG, Hypersphere, Zee Prime, Blockchange, and Lattice. It is reported that its native token, SQD, is scheduled to be listed this Friday. The Subsquid SDK has been integrated with Google BigQuery, allowing developers to use Google's technology to analyze blockchain data and reduce the data costs of large-scale deployment in the blockchain and developer communities.

  • Optimism 2024 Q1 Report: The implementation of EIP-4844 reduces L1 submission costs by 99%

    Optimism has released its Q1 2024 report, which shows that the number of daily active addresses has reached 89,000 (a 23% increase compared to the previous period), and the daily transaction volume has increased to 470,000 (a 39% increase compared to the previous period). These indicators are slightly lower than the historical high point in Q3 2023.