Mini Antwerp Edition! Universal Hostless Substrate for a Post-Servless Future

A presentation at Web3 Meetup in November 2019 in Antwerp, Belgium by Brooklyn Zelenka

Slide 1

Slide 1

✨ UNIVERSAL HOSTLESS S U B S T R AT E 🌖 🌑 FO R A P O ST-S E R V E R L E S S F U T U R E 🚀

Slide 2

Slide 2

An ✨ tw er pe dit UNIVERSAL HOSTLESS ion S U B S T R AT E 🌖 🌑 FO R A P O ST-S E R V E R L E S S F U T U R E 🚀 !

Slide 3

Slide 3

A U N I V E R S A L H O S T L E S S S U B S T R AT E B R O O K LY N Z E L E N K A , @ e x p e d e

Slide 4

Slide 4

A U N I V E R S A L H O S T L E S S S U B S T R AT E B R O O K LY N Z E L E N K A , @ e x p e d e • Cofounder/CTO at Fission • https://fission.codes • PLT & VMs • Previously an Ethereum Core Dev • EIPs 615, 902, 1066, 1444 • ECIP 1050 • Now spending a lot of time with IPFS & DIDs • Lots of R&D (but still have to deal with segfaults, &c)

Slide 5

Slide 5

A U N I V E R S A L H O S T L E S S S U B S T R AT E PA R A D I G M W AV E S

Slide 6

Slide 6

A U N I V E R S A L H O S T L E S S S U B S T R AT E PA R A D I G M W AV E S C O N TA I N E R S

Slide 7

Slide 7

A U N I V E R S A L H O S T L E S S S U B S T R AT E PA R A D I G M W AV E S C O N TA I N E R S

Slide 8

Slide 8

A U N I V E R S A L H O S T L E S S S U B S T R AT E PA R A D I G M W AV E S C O N TA I N E R S SERVERLESS ☁ λ

Slide 9

Slide 9

A U N I V E R S A L H O S T L E S S S U B S T R AT E PA R A D I G M W AV E S C O N TA I N E R S SERVERLESS UNIVERSAL ☁ 🌐 λ

Slide 10

Slide 10

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 11

Slide 11

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 12

Slide 12

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 13

Slide 13

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 14

Slide 14

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 15

Slide 15

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 16

Slide 16

A U N I V E R S A L H O S T L E S S S U B S T R AT E N AT I V E S D K F O R T H E W E B

Slide 17

Slide 17

A U N I V E R S A L H O S T L E S S S U B S T R AT E U P S H OT ?

Slide 18

Slide 18

A U N I V E R S A L H O S T L E S S S U B S T R AT E U P S H OT ? • Go from zero to production on a plane ✈ • Move data to compute and vice versa 🔄 • Logarithmic scaling 📈 • Serve areas that lack sufficient cloud hardware 🖥 • Anyone can be a service provider (lower bar to entry) 💁,

Slide 19

Slide 19

A U N I V E R S A L H O S T L E S S S U B S T R AT E W H Y N OT N OW ?

Slide 20

Slide 20

A U N I V E R S A L H O S T L E S S S U B S T R AT E W H Y N OT N OW ?

Slide 21

Slide 21

COMMONS INFRASTRUCTURE

Slide 22

Slide 22

COMMONS INFRASTRUCTURE 🤝 A S U B S T R AT E F O R E V E R Y O N E 🌍

Slide 23

Slide 23

COMMONS INFRASTRUCTURE OPEN SOURCE Lots of people work on it, everybody benefits from it, and then people can build upon it (even in a revenue generating fashion) 🔑 TED LEUNG (2005)

Slide 24

Slide 24

COMMONS INFRASTRUCTURE OPEN NETWORKS Lots of people work on it, everybody benefits from it, people can build upon it (even in a revenue generating fashion), and it’s “owned” by everyone. By participating — even with competitive goals — you are cooperating by serving the content and running compute of others. 🌌

Slide 25

Slide 25

IPFS PRIMER

Slide 26

Slide 26

IPFS PRIMER 🕸 M E E T T H E C O N T E N T-A D D R E S S A B L E W E B 👋

Slide 27

Slide 27

IPFS PRIMER I N T E R P L A N E TA R Y F I L E S Y S T E M

Slide 28

Slide 28

IPFS PRIMER I N T E R P L A N E TA R Y F I L E S Y S T E M

Slide 29

Slide 29

IPFS PRIMER I N T E R P L A N E TA R Y F I L E S Y S T E M

Slide 30

Slide 30

IPFS PRIMER I N T E R P L A N E TA R Y F I L E S Y S T E M

Slide 31

Slide 31

IPFS PRIMER T H E W E B T O D AY

Slide 32

Slide 32

IPFS PRIMER T H E W E B T O D AY • Predominantly single-source (per file) server/client

Slide 33

Slide 33

IPFS PRIMER T H E W E B T O D AY • Predominantly single-source (per file) server/client • Like a key/value store {ip => {path => content}}

Slide 34

Slide 34

IPFS PRIMER T H E W E B T O D AY • Predominantly single-source (per file) server/client • Like a key/value store {ip => {path => content}} • “Location addressing” • DNS maps names to IP addresses • Focused on the physical network VIRTUAL ADDRESS P H Y S I C A L L O C AT I O N

Slide 35

Slide 35

IPFS PRIMER T H E W E B T O D AY • Predominantly single-source (per file) server/client • Like a key/value store {ip => {path => content}} • “Location addressing” • DNS maps names to IP addresses • Focused on the physical network VIRTUAL ADDRESS P H Y S I C A L L O C AT I O N • Mutable addressing • www.foo.com/baz may be JSON today, but a video tomorrow • …or altered content

Slide 36

Slide 36

IPFS PRIMER CONTENT ADDRESSING VIRTUAL ADDRESS P H Y S I C A L L O C AT I O N

Slide 37

Slide 37

IPFS PRIMER CONTENT ADDRESSING • A layer of abstraction above location CONTENT ID VIRTUAL ADDRESS P H Y S I C A L L O C AT I O N

Slide 38

Slide 38

IPFS PRIMER CONTENT ADDRESSING • A layer of abstraction above location • Like a key/value store {hash(content) => content} CONTENT ID • Content hash AKA “content identifier” or CID • Special “universal” relationship to content VIRTUAL ADDRESS P H Y S I C A L L O C AT I O N

Slide 39

Slide 39

IPFS PRIMER CONTENT ADDRESSING • A layer of abstraction above location • Like a key/value store {hash(content) => content} CONTENT ID • Content hash AKA “content identifier” or CID • Special “universal” relationship to content VIRTUAL ADDRESS • Focused on the data P H Y S I C A L L O C AT I O N

Slide 40

Slide 40

IPFS PRIMER CONTENT ADDRESSING • A layer of abstraction above location • Like a key/value store {hash(content) => content} CONTENT ID • Content hash AKA “content identifier” or CID • Special “universal” relationship to content VIRTUAL ADDRESS • Focused on the data • Does not care where it lives P H Y S I C A L L O C AT I O N

Slide 41

Slide 41

IPFS PRIMER CONTENT ADDRESSING • A layer of abstraction above location • Like a key/value store {hash(content) => content} CONTENT ID • Content hash AKA “content identifier” or CID • Special “universal” relationship to content VIRTUAL ADDRESS • Focused on the data • Does not care where it lives • Still have paths • Immutable DAG • Why no loops? P H Y S I C A L L O C AT I O N

Slide 42

Slide 42

IPFS PRIMER L I N K E D D ATA

Slide 43

Slide 43

IPFS PRIMER L I N K E D D ATA { } Qm123456…: { data: “Hello world”, links: [ {name: “company”, hash: Qmabcdef…} {name: “license”, hash: Qmzyxwvu…} ] }

Slide 44

Slide 44

IPFS PRIMER L I N K E D D ATA { } Qm123456…: { data: “Hello world”, links: [ {name: “company”, hash: Qmabcdef…} {name: “license”, hash: Qmzyxwvu…} ] } { } Qmabcdef…: { data: “FISSION”, links: [ {name: “city”, hash: Qm1gb5sn…}, {name: “about”, hash: Qmzyxwvu…} ] }

Slide 45

Slide 45

IPFS PRIMER L I N K E D D ATA { } Qm123456…: { data: “Hello world”, links: [ {name: “company”, hash: Qmabcdef…} {name: “license”, hash: Qmzyxwvu…} ] } { } Qmabcdef…: { data: “FISSION”, links: [ {name: “city”, hash: Qm1gb5sn…}, {name: “about”, hash: Qmzyxwvu…} ] } ipfs cat /ipfs/Qm123456…/company/about/founder => “Brooke”

Slide 46

Slide 46

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊

Slide 47

Slide 47

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💁

Slide 48

Slide 48

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💁

Slide 49

Slide 49

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💁

Slide 50

Slide 50

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 ☕ 💻 💁

Slide 51

Slide 51

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 ☕ 💻 💁

Slide 52

Slide 52

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 💻 💻 💻 ☕ 💻 💻 💁 💻 💻 💻 💻 💻

Slide 53

Slide 53

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 💻 💻 💻 ☕ 💻 💻 💁 💻 💻 💻 💻 💻

Slide 54

Slide 54

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 💻 💻 💻 ☕ 💻 💻 💁 💻 💻 💻 💻 💻

Slide 55

Slide 55

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 💻 💻 💻 ☕ 💻 💻 💁 💻 💻 💻 💻 💻

Slide 56

Slide 56

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 💁 💻

Slide 57

Slide 57

IPFS PRIMER RO U T I N G & LO O KU P 🔍🌊 💻 💻 💁 💻

Slide 58

Slide 58

QUICK DEMO GETTING ONLINE

Slide 59

Slide 59

QUICK DEMO GETTING ONLINE

Slide 60

Slide 60

QUICK DEMO NO STEP 2

Slide 61

Slide 61

DIDS

Slide 62

Slide 62

DIDS 🔑 H I G H LY A U T H E N T I C 7

Slide 63

Slide 63

DIDS S TA N D A R D I Z AT I O N

Slide 64

Slide 64

DIDS S TA N D A R D I Z AT I O N • W3C • Microsoft • Government of British Columbia • Based on public-key cryptography • Truly “universal” UUIDs • Agnostic about backing • For users, devices, and more

Slide 65

Slide 65

DIDS CLAIMS

Slide 66

Slide 66

DIDS CLAIMS • Principle of least information • “Can attest that this user is over 18” • All claims signed with private key • Age, credentials, country residency, job history, event attendance, …

Slide 67

Slide 67

P O R TA B L E C O M P U T E

Slide 68

Slide 68

P O R TA B L E C O M P U T E ⚡ JUST ADD MORE POWER TO JS & WASM AND STIR 🤖

Slide 69

Slide 69

P O R TA B L E C O M P U T E D Y N A M I C FA A S

Slide 70

Slide 70

P O R TA B L E C O M P U T E D Y N A M I C FA A S • Run everything locally by default • Good for devs with powerful machines • Slow for students with Chromebooks

Slide 71

Slide 71

P O R TA B L E C O M P U T E D Y N A M I C FA A S • Run everything locally by default • Good for devs with powerful machines • Slow for students with Chromebooks • Farm out longer running computation to service providers • …dynamically at runtime

Slide 72

Slide 72

P O R TA B L E C O M P U T E D Y N A M I C FA A S • Run everything locally by default • Good for devs with powerful machines • Slow for students with Chromebooks • Farm out longer running computation to service providers • …dynamically at runtime • Heavy compute, parallel workloads, &c

Slide 73

Slide 73

P O R TA B L E C O M P U T E APPROACH & TRADE-OFFS

Slide 74

Slide 74

P O R TA B L E C O M P U T E APPROACH & TRADE-OFFS • Code-as-data • Memoization • Compiler techniques at web scale (“world computer”) • Network latency (normally zero, now x) • Restricted subset (e.g. total) • Event-based w/ two-phase commit • Trusted (incl. AWS Lambda 🤷)

Slide 75

Slide 75

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS )

Slide 76

Slide 76

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 77

Slide 77

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 78

Slide 78

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 79

Slide 79

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 80

Slide 80

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 81

Slide 81

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 82

Slide 82

P O R TA B L E C O M P U T E E V E N T B AS E D ( A B ST R ACT U S E R ST R E A M, C R DTS ) Off-Platform Side Effect Stream Platform Effect Stream Pure Function Stream Base Event Stream

Slide 83

Slide 83

THE FUTURE

Slide 84

Slide 84

THE FUTURE 🛸 L I K E … W I T H J E T - PA C K S 🚀

Slide 85

Slide 85

THE FUTURE T H E N E X T W AV E O F P L AT F O R M S

Slide 86

Slide 86

THE FUTURE Global Storage T H E N E X T W AV E O F P L AT F O R M S FILES 📄 D ATA B A S E 🛢

Slide 87

Slide 87

THE FUTURE Global Storage FILES 📄 D ATA B A S E 🛢 Digital Scarcity T H E N E X T W AV E O F P L AT F O R M S IDENTITY 🙋 CHECKPOINTS 🕚

Slide 88

Slide 88

THE FUTURE Global Storage FILES 📄 D ATA B A S E 🛢 Digital Scarcity IDENTITY 🙋 CHECKPOINTS 🕚 Portable Compute T H E N E X T W AV E O F P L AT F O R M S DISTRIBUTED COMPUTE 🖥 SMART CONTRACTS 📝

Slide 89

Slide 89

THE FUTURE T H E E N D O F H I STO RY

Slide 90

Slide 90

THE FUTURE T H E E N D O F H I STO RY High Touch Invisible Custom Product / Rental Commodity / Utility

Slide 91

Slide 91

THE FUTURE T H E E N D O F H I STO RY High Touch Ba rrie r to En try Invisible Custom Product / Rental Commodity / Utility

Slide 92

Slide 92

THE FUTURE T H E E N D O F H I STO RY High Touch Bespoke Ba Private Ownership rrie r to En try Shared Hosting Serverless Universal Invisible Custom Product / Rental Commodity / Utility

Slide 93

Slide 93

https://fission.codes https://talk .fission.codes https://tools.fission.codes A THANK YOU, ANTWERP 🎉 brooklyn@fission.codes g i t h u b . c o m /e x p e d e @expede