Cointime

Download App
iOS & Android

A quick guide to AO: The hyper parallel computer

Validated Project

Discover what is ao and what makes it a hyper parallel computer. Explore how it works and what sets it apart. Finally, checkout the various ways you can get started with AO.

Author: Rohit Pathare

Reviewer: Xiaosong HU


AO is a “hyper-parallel computer.” Its core objective is to offer trustless and cooperating computing services without any practical bounds on scale. It combines the trust minimization benefits of blockchain networks with the speed and scalability of more traditional computing environments, such as Amazon EC2. But how does this all work? Let’s dive into the intricacies of AO.

What are the key characteristics of AO?

There are a few key characteristics that help distinguish AO in the realm of decentralized computing:

  • Parallel processing: Supports an arbitrary number of processes running in parallel, independently of each other. The processes can operate and be evaluated separately, creating scalability mechanics akin to web2 systems.
  • Unbounded computation: Processes are not subject to any protocol-imposed limits on the amount of information they can compute, provided the caller can bear the associated computation cost.
  • Read/ Write to Arweave: Processes can both load data from and write data to Arweave, expanding the kind of decentralized apps that can be built with AO (e.g., machine learning tasks).
  • Autonomous Processes: Processes can automatically execute computations at set intervals of time. Users and other processes can ‘subscribe’ to a process in order to trigger computations. This feature can enable processes to operate as autonomous agents.
  • Modular architecture: A flexible computing environment offers the swapping of schedulers, message-passing layers, virtual machines, etc. This flexibility allows existing smart contract systems (Warp, MEM, etc.) to easily plug into AO and interact with a unified network and create a more coherent experience.

What sets AO apart from traditional compute environments?

Built on top of Arweave, AO is able to eliminate vulnerabilities associated with centralized providers, like single points of failure, data breaches, and censorship. Computation on AO is transparent and verifiable through the trust-minimized nature of decentralization and the reproducible log of messages stored on Arweave. This decentralized foundation also helps surpass the limitations on scalability imposed by physical infrastructure. Most importantly, anyone can easily create an AO process right from their terminals or with just a few lines of JavaScript without the need for specialized knowledge, tools, or infrastructure. This ensures that even individuals and small-scale entities have global reach and participation.

How does AO improve on other decentralized compute networks?

Unlike networks such as Ethereum, where the foundational layer and each rollup effectively function as a singular process, AO supports an arbitrary number of processes running in parallel, while ensuring the verifiability of computations remains intact. Additionally, these networks operate in a globally synchronized state, whereas AO processes maintain their own independent state. This independence enables ao processes to handle a significantly higher volume of interactions and scalability of computation, making it especially suitable for applications demanding high performance and reliability. While some decentralized networks like Akash and peer-to-peer systems like Urbit do provide compute at scale, unlike AO, they do not provide verifiable reproducibility for their interactions or have relied on impermanent storage solutions for their interaction logs.

What makes AO a hyper parallel computer?

AO operates through a network of nodes that together create a unified computing environment, capable of hosting an unlimited number of processes in parallel. These processes function as independent servers, each with its own logic, hosted on a decentralized network. Moreover, these processes maintain a “holographic” state. This enables them to work independently, unlock scalability for the network, and achieve what is known as “hyper-parallel computing.”

What does “holographic state” mean with respect to AO?

A “holographic state” refers to how each process stores its state independent of other processes. This approach allows each process to operate and be evaluated separately. It facilitates faster interactions and improves scalability within the network. The state is implied “holographically” by the associated log of messages (interactions with the process) hosted on Arweave.

What are the key components of AO?

The following components are integral parts of the AO architecture:

  • Processes: In AO, a process is a set of instructions that can be executed by the network. Each AO process is persistent, having a holographic state represented by a log of messages that are uploaded to Arweave.
  • Messages: Every interaction with a process is represented by a message. Messages are ANS-104 compliant data items. They can originate from users or other processes within the network.
  • Scheduler Units (SUs): SUs are tasked with numbering messages so that they are processed systematically. Additionally they ensure the messages and their data are uploaded to Arweave.
  • Compute Units (CUs): CUs are tasked with determining the state of processes and processing message requests. However, CUs are not obligated to compute every message; they may decline if they lack the necessary resources. The existing CUs (at the time of writing) use a WASM-based virtual machine environment, supporting up to 4 GB of RAM.
  • Message Units (MUs): MUs are responsible for the circulation of messages. Their job is to push messages through the system, ensuring they are ordered by the SU and then coordinating with the CU for computation. MUs continually monitor for new messages and repeat this process as needed.

How does parallel processing work in AO?

In ao, multiple processes can operate in parallel, sharing the available computational resources. During idle times of other processes, the resources are reallocated to active processes. This reallocation helps maximize the use of available resources. It accelerates processing times and allows for a more efficient and scalable system.

How are messages handled in AO?

Every interaction within the network is in the form of messages. Every message goes through the following journey:

  1. Users or other processes send a request to a process as a message. The message is received by the message unit (MU) and forwarded to the scheduler unit (SU).
  2. The scheduler unit (SU) assigns an atomically incrementing slot numbering to the message. It then ensures that the message is uploaded to Arweave. A SU can also choose to cache the message.
  3. The message unit (MU) then sends a request to the compute unit (CU) for computing the message result.
  4. The computing unit (CU) then fetches the requested message either from the scheduler unit (SU) or directly from Arweave and computes its result.
  5. The computed result is sent back to the message unit (MU) where the MU checks if the message must be pushed (if the result needs some further processing).
  6. If the result needs no further processing, then the message unit (MU) sends the result to the original creator (user or process) of the message.

How can ao processes operate as autonomous agents?

Ao processes can interact with the Arweave network with minimal to no ongoing user intervention based on predefined logic. Combined with their other characteristics, AO processes can act as autonomous agents in a verifiable manner. This unlocks a myriad of potential applications, from engaging in tokenized gaming to serving as AO chatbots. Furthermore, AO introduces a cron-like system, enabling processes to execute tasks at predetermined intervals. Whether it's providing timely alerts, updating token prices, or facilitating automated trading and arbitrage based on these updates, the capabilities for ao processes as autonomous agents are expansive.

How to get started with AO?

For Developers

Developers have two ways to engage with AO:

  • AOS: Developers can spawn their processes within their terminal using AOS. aos is distinct from ao. While ao is a computing environment, aos functions like the operating system. It currently supports coding in the Lua language. Check out these docs to spawn a process with AOS.
  • aoconnect: For developers more comfortable with JavaScript, the aoconnect SDK offers a way to spawn and interact with processes in node and browser environments. Visit here to learn more about AO connect.

For End users

End users on the other hand have a variety of applications to choose from:

  • Astro: An over-collateralized stablecoin adding liquidity to Arweave. To explore Astro, visit here.
  • Bark: A decentralized AMM exchange backed by token liquidity pools. Discover Bark and its features here.
  • AO Effect: An arena-style game to compete with friends globally. Start competing in the AOEffect arena here.

What’s next for AO?

Looking ahead, AO is preparing to roll out enhancements at the protocol level that will include options for payment channels, tokenization, and staking mechanisms. Beyond this, the horizon for application development is broad, with potential expansions into temporary file storage solutions, marketplaces, gaming, and even artificial intelligence.


🔗 More about PermaDAO :Website | Twitter | Telegram | Discord | MediumYoutube

💡 Initiated by everVision and sponsored by Forward Research (Arweave Official), PermaDAO is a "Cobuilding Community" focus on the theme of Arweave consensus storage. All contributions from PermaDAO contributors form the bedrock of data consensus. Let's embark on a journey starting with data consensus and delve into a novel paradigm for decentralized collaboration - Decentralized Autonomous Organizations (DAOs)!


  “Debug" Program:

If you find errors in this article, including typos, grammatical mistakes, incorrect descriptions, ambiguous meanings, redundant descriptions, or other problems, you can give us feedback and we will be rewarded with incentives. Click "here" to give feedback.  

Comments

All Comments

Recommended for you

  • Putin: Russia "supports" Harris, calls her smile "contagious"

    According to foreign media such as TASS and Russia's Sputnik News, Jinse Finance reported that on the afternoon of September 5th local time, Russian President Putin said at the plenary session of the Eastern Economic Forum 2024 that Russia will "support" the US Democratic Party presidential candidate and vice president Harris as recommended by the US President Biden in the upcoming US presidential election. When asked how he viewed the 2024 US election, Putin said it was the choice of the American people. The new US president will be elected by the American people, and Russia will respect the choice of the American people. Putin also said that just as Biden suggested his supporters to support Harris, "we will do the same, we will support her." The report said that Putin also joked that Harris' laughter is "expressive and infectious," which shows that "she is doing everything well." He added that this may mean that she will avoid further sanctions against Russia.

  • An ETH whale repurchased 5,153 ETH with 12.23 million USDT 20 minutes ago

    A certain high-frequency trading ETH whale monitored by on-chain analyst Yu Jin bought 5,153 ETH with 12.23 million USDT 20 minutes ago.

  • CFTC: Uniswap Labs has actively cooperated with the investigation and only needs to pay a fine of US$175,000

    The CFTC has filed a lawsuit against Uniswap Labs and reached a settlement. It was found that Uniswap Labs illegally provided leveraged or margined retail commodity transactions of digital assets through a decentralized digital asset trading protocol. Uniswap Labs was required to pay a civil penalty of $175,000 and cease violations of the Commodity Exchange Act (CEA). The CFTC acknowledged that Uniswap Labs actively cooperated with law enforcement agencies in the investigation and reduced the civil penalty.

  • Federal Reserve Beige Book: Respondents generally expect economic activity to remain stable or improve

    The Federal Reserve's Beige Book pointed out that economic activity in three regions has slightly increased, while the number of regions reporting flat or declining economic activity has increased from five in the previous quarter to nine in this quarter. Overall employment levels remain stable, although some reports indicate that companies are only filling necessary positions, reducing working hours and shifts, or reducing overall employment levels through natural attrition. However, reports of layoffs are still rare. Generally speaking, wage growth is moderate, and the growth rate of labor input costs and sales prices ranges from slight to moderate. Consumer spending has declined in most regions, while in the previous reporting period, consumer spending remained stable overall.

  • Puffpaw Completes $6 Million Seed Round with Lemniscap Ventures as Participant

    Puffpaw has announced the completion of a $6 million seed round of financing, with participation from Lemniscap Ventures. The Puffpaw project plans to launch a blockchain-enabled electronic cigarette aimed at helping users reduce nicotine intake through token incentives. The project encourages users to quit smoking by recording their smoking habits and rewarding them with tokens. Puffpaw's token economics aims to cover 30% of the cost of users' first month of using their product and provide social rewards. The project also considers possible system abuse, but the issue of users potentially reporting smoking habits dishonestly is not yet clear.

  • Affected by Ethervista and others, Ethereum Gas temporarily rose to 33gwei

    According to Etherscan, due to the influence of contracts such as Ethervista, Ethereum Gas has temporarily risen to 33gwei, with the top three being EthervistaRouter, UniswapRouter, and BananaGun.

  • The probability of the Fed cutting interest rates by 25 basis points in September is 55%.

    The probability of the Federal Reserve cutting interest rates by 25 basis points in September is 55.0%, while the probability of a 50 basis point cut is 45.0%. The probability of the Federal Reserve cutting interest rates by a cumulative 50 basis points by November is 32.1%, by 75 basis points is 49.2%, and by 100 basis points is 18.8%.

  • Nvidia: No subpoena received from the US Department of Justice

    Nvidia (NVDA.O) stated that it has not received a subpoena from the US Department of Justice.

  • US SEC again postpones decision on environmentally friendly Bitcoin ETF listing application

    The US Securities and Exchange Commission (SEC) has once again postponed its final decision on the New York Stock Exchange (NYSE) Arca's application for a carbon offset Bitcoin ETF. According to a document dated September 4th, the decision has been extended to November 21st. The ETF aims to provide a Bitcoin investment exposure in an environmentally friendly way by offsetting carbon emissions, tracking an investment portfolio composed of 80% Bitcoin and 20% carbon credit futures. Tidal Investments submitted the fund registration application in December 2023, while NYSE Arca submitted the initial application in March. Concerns have been raised about the environmental impact of Bitcoin mining, with the International Monetary Fund (IMF) reporting that cryptocurrency mining accounts for 1% of global greenhouse gas emissions. The delay in this decision also includes the postponement of approval for the Nasdaq One-Stop Cryptocurrency Investment Portfolio ETF.

  • Pudgy Penguins CEO:何为消费级加密货币应用

    加密货币行业中的一些 builder 努力地重复造轮。如今,一些突破性的消费级产品,若是能基于区块链打造并利用好加密货币的激励机制,其规模可能是现在的 10 倍。与其试图重新创建一种模式,不如利用现有的模式进行加密化改造。我认为,许多尚未面世的消费级加密货币应用在 Web2 中都有对应的产品,它们正等待着通过加密货币释放巨大的增长潜力。