AppLayer Engine is live for testing AI work rules · Being built

Fast C++ Programs

C++ programs.
Running right on the chain.

Build C++ smart contracts that run directly inside AppLayer and still look familiar to outside apps.

01 / PRIMITIVE

The simple version

A smart contract that runs like a normal C++ program.

Fast C++ Programs are reusable smart contracts compiled into AppLayer. They keep familiar addresses and interfaces but run through a more capable path.

Pick what fits

C++ program or EVM contract?

Both use AppLayer. The difference is how the code runs.

RequirementEVM contractNative Module
Solidity portabilityBest fitExternal ABI compatible
Complex code that remembersMore limitedBuilt for it
Native C++ librariesUnavailableWorks when every node gets the same answer
Calls between programsPacked into ABI messagesTalks directly
Familiar toolsHighestSpecial build tools

How one call runs

From app request to saved result.

  1. 01

    App calls a contract

    An app calls a familiar contract address and ABI.

  2. 02

    Run the C++ program

    AppLayer sends the call to the compiled C++ program.

  3. 03

    Run with working memory

    The program reads and changes its saved, typed data.

  4. 04

    Programs work together

    C++ contracts can call one another directly.

  5. 05

    Save or undo

    The whole change is saved together or safely undone.

Safety rules

Fast still needs rules.

01

Same result on every validator

Every validator must get the same result when it runs the same transaction from the same starting state.

02

Clear data ownership

Each program clearly says what data it saves and owns.

03

No half-finished changes

If a transaction fails, half of its changes cannot remain.

04

Controlled upgrades

Everyone can see who may upgrade a program and how.

Start with one real job

Build more than a basic smart contract.

Try the public code and testnet guide, or bring us a complex job that needs fast C++.