Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e544961
update
kianenigma Jul 7, 2023
27391fe
Merge branch 'main' of github.com:Polkadot-Blockchain-Academy/pba-con…
kianenigma Jul 7, 2023
e1288e9
improve 4.1 lecture
kianenigma Jul 9, 2023
5a48d39
address post lecture feedback
kianenigma Jul 9, 2023
ff42dbb
partial update ot 4.3 as well
kianenigma Jul 10, 2023
bfac2ba
Merge branch 'main' of github.com:Polkadot-Blockchain-Academy/pba-con…
kianenigma Jul 11, 2023
555fa60
update storage lecture.
kianenigma Jul 11, 2023
54986fb
small update to diagrams
kianenigma Jul 11, 2023
00b5807
update wasm exec
kianenigma Jul 11, 2023
ed65279
basic frameless template now in order
kianenigma Jul 11, 2023
1f498cc
checkpoint for going all in on wasm?
kianenigma Jul 13, 2023
3b77131
wasm based tests work like a charm
kianenigma Jul 13, 2023
db23c62
wasm based tests work like a charm
kianenigma Jul 13, 2023
68ac25d
repot tests
kianenigma Jul 13, 2023
3d1e385
repot solution out
kianenigma Jul 13, 2023
b12fb72
all tests work, entirely separate solution
kianenigma Jul 13, 2023
db9f86e
all new system in place reading directly the wasm file
kianenigma Jul 13, 2023
a3ae0f9
Delete settings.json
nuke-web3 Jul 13, 2023
cabc908
finish frameless v3
kianenigma Jul 14, 2023
3268bda
Merge branch 'kiz-substrate-pba3' of github.com:Polkadot-Blockchain-A…
kianenigma Jul 14, 2023
8236fe2
update deps
kianenigma Jul 14, 2023
429b476
Update assets/styles/PBA-theme.css
kianenigma Jul 14, 2023
ea311ad
remove
kianenigma Jul 14, 2023
2aca65e
Merge branch 'main' of github.com:Polkadot-Blockchain-Academy/pba-con…
kianenigma Jul 14, 2023
5d0a91b
fmt and all
kianenigma Jul 14, 2023
6332a9c
push for nikos
kianenigma Jul 19, 2023
b7dc5cd
Add fade out
wirednkod Jul 19, 2023
fd114c0
fix up wasm lecture based on feedback, much better now
kianenigma Jul 19, 2023
d2f776a
fix up wasm lecture based on feedback, much better now
kianenigma Jul 19, 2023
5d557bd
update a few things
kianenigma Jul 19, 2023
2e63864
remove file
kianenigma Jul 19, 2023
a33c98b
undoe some unwanted changes
kianenigma Jul 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address post lecture feedback
  • Loading branch information
kianenigma committed Jul 9, 2023
commit 5a48d39b68cc813b354b967c747b82f0f9f0b3a2
24 changes: 14 additions & 10 deletions syllabus/4-Substrate/4.1-Intro-to-Substrate_Slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ note:
could we have updated the code in N+1? By default, no because we load the wasm before you even look
into the block.

IMPORTANT: State is not IN THE BLOCK, each state has AN ASSOCIATED BLOCK.

---

## Positive Consequences of _Wasm_ Runtime 🔥
Expand Down Expand Up @@ -474,7 +476,8 @@ not. In fact, the client didn't need to know about this at all.

Notes:

- 4GB of memory, which we limit even further in the substrate allocator.
- 4GB of memory, which we limit even further.
- Wasm has no allocator+panic handler of its own
- Can be slower than native, depending on the executor/execution method.
- Limited access to the host host env, all needs to be done through syscalls.

Expand Down Expand Up @@ -549,6 +552,16 @@ Because the runtime can change independently!
</pba-col>
</pba-cols>

note:

SMOLDOT is not exactly a substrate client. It is mainly designed to work with Polkadot. But with
minimal tweaks, you could make it work for more substrate based chains.

This has to do with the fact that consensus and a few other bits of the client and runtime are not
100% independent. For example, GRANDPA has a pallet on the runtime side, but is mostly in the
client. Now, a client that is configured with GRANDPA can only work with runtimes that are also
configured with GRANDPA.

---

## Communication Paths
Expand Down Expand Up @@ -889,12 +902,3 @@ exception](https://www.gnu.org/software/classpath/license.html).
consensus, crypto or database code) to be contributed back so everyone can benefit.

- Currently, the Wasm binary spec v1 is used, read more about the new version here: https://webassembly.github.io/spec/core/binary/index.html

### Feedback After Lecture:

- Emphasize more: SMALDOT is not the _substrate client itself compiled to Wasm_, it is another
codebase, which can do most of the things that substrate client can do.

- Wasm runtime can allocate memory, it just does't have an allocator itself out of the box.

- State is not IN THE BLOCK, each state has AN ASSOCIATED BLOCK.