Day1 plan

"Contraints liberates"

  1. Introductions

  2. Why Rust?

    1. Memory Safety

    2. Modern Type System

    3. Compiler does a lot of work to get it right

    4. Borrow Checker for low memory footprint, cons will be only a subset of correct code can be written in safe rust, that's why Rust has unsafe blocks.

  3. What does Rust mean for bitcoin ecosystem?

  4. variables

    1. Why immutable by default

    2. Idea of ownership

    3. Move mechanism

  5. numbers

    1. Representation

    2. Emphasis on correctness

  6. pointers

    1. Demonstrate swapping of two variables

  7. conclusion

"Assuming that you can avoid undefined behavior in C and C++ is like assuming you can win a game of chess simply because you know the rules" - Programming Rust book

Why C? GC golang, Java, Python, JS, Haskell we have performance penalty.

free(pointer to memory location);

A pointer in C is just the address of a byte in your RAM.

Last updated