Tag:Dead spirit

  • 020 launch of rust’s book of the dead

    Time:2021-9-10

    The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Rust layered error handling system If some values can be empty, use option; If an error occurs and the error can be handled normally, use result; If an […]

  • 021 abnormal security of rust Necromancer’s book

    Time:2021-9-9

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Abnormal security Two levels of exception security are mainly considered in rust: In non secure code, the lower limit of exception security is to ensure that memory […]

  • 022 pollution of rust’s death book

    Time:2021-9-8

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… contaminated All non secure codes must ensure minimum exception security, so not all types can ensure maximum exception security; When an exception occurs, everything should be destroyed. […]

  • 023 concurrency and competition of rust Necromancer’s book

    Time:2021-9-7

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Parallelism and concurrency The rust standard library provides support for operating system level threads and blocking system calls. compete Data competition means: Two or more threads access […]

  • 024 send and sync of rust Necromancer’s book

    Time:2021-9-6

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Send and sync When the same block of memory has multiple aliases and the memory value can be changed at the same time, they are not thread […]

  • 026 implementation of rust Necromancer’s book VEC

    Time:2021-9-3

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Starting with this section, we implement a VEC with the knowledge we learned in rust’s book of the dead. Initial definition of myvec Our definition of VEC […]

  • 027 VEC memory allocation of rust necromancer book

    Time:2021-9-2

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… VEC memory allocation In the previous section, we wrote a simplified version of unique, and in the later sections, we use unique in the nightly version. Use […]

  • 028 push and pop of VEC in rust’s book of the dead

    Time:2021-8-31

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Push and pop of VEC This section implements push and pop methods for myvec. The complete code is as follows: #![feature(ptr_internals)] use std::mem; use std::alloc::{alloc, realloc, Layout, […]

  • 029 the VEC implementation drop of rust’s book of the dead

    Time:2021-8-29

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Details The simplest way to implement drop is to call the pop method circularly. However, it should be noted that when t does not need drop, it […]

  • 030 rust Necromancer’s book allows VEC to support slice

    Time:2021-8-28

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Details Supporting slice function, we can actually refer to data, so we just need to implement deref < target = [t] >. #![feature(ptr_internals)] use std::mem; use std::alloc::{alloc, […]

  • 031 the VEC implementation of rust Necromancer’s book insert and remove

    Time:2021-8-27

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Details The following implements the insert and remove functions for myvec: #![feature(ptr_internals)] use std::mem; use std::alloc::{alloc, realloc, dealloc, Layout, handle_alloc_error}; use std::ptr::{Unique, self}; use std::ops::{Deref, DerefMut}; use […]

  • 032 intoiter of VEC in rust’s book of the dead

    Time:2021-8-26

    introduce The videos recorded in this series are mainly put on station BRust dead book learning video The source code information related to rust dead book is ingithub.com/anonymousGiga/Rustonomi… Details Intoiter accesses VEC as a value rather than a reference, and also returns an element as a value. To achieve this, intoiter needs to take ownership […]