<style>
.container{
display: flex;
}
.col{
flex: 1;
}
</style>
# How JAM Changes the Future of Web3
---
## Narratives Around JAM
<div class="container">
<div class="col">
- Technical Specification
- (Semi-)Coherency
- Multiple Client Implementations
- Backwards Compatible
- 7x Execution
</div>
<div class="col">
- PVM
- Actor-Based Smart Contracts
- In-Core / On-Chain
- 341 Cores
- 14x I/O Bandwidth
</div>
</div>
and more...
---
## The Most Important Narrative
JAM evolves Polkadot from hosting just blockchains to a platform for hosting any Web3 application or service.
---
## JAM vs Polkadot
What is the relationship anyway?
---
## Let's start with the basics...
---
## The Vision of Polkadot
Polkadot is a vision toward a world with less trust and more truth.
---
## Principles of Web3
Web3 is the technological embodiment of "less trust and more truth".
<div class="container">
<div class="col">
#### Pillars of Blockchain
by Andreas Antonopoulos
- Open
- Public
- Borderless
- Neutral
- Censorship Resistant
</div>
<div class="col">
#### Web3 Maxims
by Gavin Wood
- Resilience
- Generality
- Performance
- Coherency
- Accessibility
</div>
</div>
---
## Technology Is the First Primitive
We acknowledge achieving a world with "less trust and more truth" requires more than just technology.
Although, we think it is the first primitive the world needs to get started.
---
## The Mission of Polkadot
Polkadot’s mission is to provide a scalable, secure, and resilient platform for Web3 applications and services.
---
## Blockchain Technology
![Blockchain)](https://hackmd.io/_uploads/BkWS_AAWyl.svg)
---
## Scaling Blockchain Technology
![Polkadot](https://hackmd.io/_uploads/BJe6qkkMyx.png =50%x)
---
## Limitations of a Block
![Block Limit](https://hackmd.io/_uploads/rygJFUR0bke.svg)
---
## Hosting Programs on a Blockchain
- Smart Contracts
- Blockchain Rollups
---
## Smart Contracts
Smart contracts are special programs which are "aware" they are running on a blockchain.
They are designed with things like gas limits to represent this.
---
## Blockchain Rollups
Other blockchains are compatible because they are also designed to execute in blocks.
We just need to ensure the hosted block (or representation of the block) would fit into the host chain.
---
## Blockchain Development
Developing applications for blockchains has always been its own specialized practice.
This creates yet another barrier to achieving a world with less trust and more truth.
---
## JAM Solves This Problem
with the PVM.
---
## Introducing the PVM
- Based on RISC-V
- Easy to Transpile to Common Hardware
- x86, x64, ARM
- Near Native Speeds
- Well supported by LLVM Tooling
- Cheap Gas Metering
- Fast Compilation
- and way more...
---
## Run Regular Programs on PVM
With x86 compatibility and performance, the PVM can be used to run "regular" programs.
---
## It can run DOOM!
![DOOM Video](https://hackmd.io/_uploads/Ska4gJ1Mkx.jpg)
https://www.youtube.com/watch?v=uB8ckQ_87uE
---
## But how do we solve the limitations of blockchains?
---
![Continuations](https://hackmd.io/_uploads/S1l_XykMye.jpg)
---
## Program "State" (0)
![Stack 0](https://hackmd.io/_uploads/Hk_pN-Jfkg.svg =70%x)
You push to the stack, or pop from it.
---
## Program "State" (1)
![Stack 1](https://hackmd.io/_uploads/rkuTNb1M1g.svg =70%x)
Memory: null
---
## Program "State" (2)
![Stack 2](https://hackmd.io/_uploads/rJ_aN-kfJe.svg =70%x)
Memory: null
---
## Program "State" (3)
![Stack 3](https://hackmd.io/_uploads/H1dpN-kfyl.svg =70%x)
Memory: null
---
## Program "State" (4)
![Stack 4](https://hackmd.io/_uploads/rkKpNb1M1x.svg =70%x)
Memory: null
---
## Program "State" (5)
![Untitled drawing(14)](https://hackmd.io/_uploads/ryt6VZkM1x.svg =70%x)
Memory: null
---
## Program "State" (6)
![Stack 4](https://hackmd.io/_uploads/rkKpNb1M1x.svg =70%x)
Memory: 1
---
## Program "State" (7)
![Stack 3](https://hackmd.io/_uploads/H1dpN-kfyl.svg =70%x)
Memory: 1
---
## Program "State" (8)
![Stack 2](https://hackmd.io/_uploads/rJ_aN-kfJe.svg =70%x)
Memory: 2
---
## The Stack (9)
![Stack 1](https://hackmd.io/_uploads/rkuTNb1M1g.svg =70%x)
Memory: 6
---
## The Stack (10)
![Stack 0](https://hackmd.io/_uploads/Hk_pN-Jfkg.svg =70%x)
Memory: 24
---
## Save State
With a copy of the program state at any point in the execution, you could re-start and complete the program.
---
## Emulator Save State
Video game emulators have had this for a long time.
![super-mario-bros-dead](https://hackmd.io/_uploads/HkwgX-kfJx.gif =50%x)
---
## Simplified Continuations Flow
1. start the program
2. run until you run out of gas
- reaching the block limit
4. save the stack, registers, and memory in DA
- non-persistent memory
6. wait till next block
7. load stack, registers, and memory from DA
8. continue program execution
9. repeat until complete
---
## The Old Paradigm
![Application on Blockchain](https://hackmd.io/_uploads/Skn09bJGJg.png =70%x)
---
## The Way It Should Be
![Application on Cloud Server](https://hackmd.io/_uploads/SyfdjlJGJe.png =70%x)
---
## The JAM Way
![Blockchain Based Cloud Server](https://hackmd.io/_uploads/ryDqT-JM1e.png =70%x)
---
## Polkadot is a Web3 Cloud
![image](https://hackmd.io/_uploads/H1PIPkyG1g.png =70%x)
---
## Introducing the Polkadot Cloud
The Polkadot Cloud is a secure, scalable, and resilient platform for Web3 applications and services.
---
## Polkadot Cloud Services
The Polkadot Cloud offers a number of different Web3 Services such as:
- Decentralized Execution Service
- Settlement / Finality Service
- Data Availability Service
- Object Storage Service
- Blockchain Hosting Service
- Smart Contract Hosting Service
- and more!
---
## The Polkadot Cloud Specifications
With JAM, we expect the Polkadot Cloud to have:
- 1023 Validators
- 341 Cores
- Nakamoto Coefficient > 300
- 85x Single CPU Load
- 852 MB/s I/O Bandwidth
- 2 Petabytes of Data Availability
- 1,000,000+ Transactions per Second
---
## Let's Compare to the Web2 Cloud
---
## Decentralized Execution Service
- Compared to [Amazon EC2](https://aws.amazon.com/ec2/)
- EC2 = Elastic Compute Cloud
- “Amazon EC2 is AWS’s service that provides secure, scalable computing capacity in the cloud.”
- “Reliable and scalable infrastructure on-demand, with 99.99% availability SLA”
- “purchase model to help you best match the needs of your workload”
---
## Object Storage Service
- Compared to [Amazon S3](https://aws.amazon.com/s3/)
- S3 = Simple Storage Service
- “Amazon S3 is an object storage service offering industry-leading scalability, data availability, security, and performance.”
- Benefits:
- Scalability
- Durability and availability
- Security and data protection
- Lowest price and highest performance
---
## Smart Contract Hosting Service
- Compared to [AWS Lambda](https://aws.amazon.com/lambda/)
- “Run code without thinking about servers or clusters”
- “AWS Lambda is a serverless computing service that runs your code in response to events without requiring provisioning or management of servers. It automatically scales compute resources and you pay only for the compute time used.”
---
## This is the Web3 internet that you have been promised.
---
## JAM in One Sentence
JAM evolves Polkadot from hosting just blockchains to a platform for hosting any Web3 application or service.
---
## JAM is the Beginning of the Polkadot Cloud.
---
<!-- .slide: data-background-color="#4A2439" -->
# Thank you!
Find me anywhere: @shawntabrizi
![QR Code](https://hackmd.io/_uploads/B1bKRJyG1g.png)
Presentation Link
{"title":"How JAM Changes the Future of Web3","description":"text","contributors":"[{\"id\":\"4744d1b4-3d7d-435a-959d-2e325d0ab1fe\",\"add\":23008,\"del\":15277}]"}