A very important mistake at 3:39: A circular reference such as "A holds a reference to one of B's fields, and B holds a reference to one of A's fields" does NOT cause a memory leak. Both will just have the same lifetimes and must be dropped at the same time (which the compiler will do for you).
28 วันที่ผ่านมา
The description of Rust in this talk contains some misconceptions. A 'static lifetime doesn't mean that the reference lives for the whole program execution (see e.g. Box::leak), just that the memory being pointed to cannot move or be dropped from the moment such a reference is created.
I would say Rust is a more powerful C++. Traits is better than OOP/concepts, ownership/borrowing protects us, decent async model, hygienic macros (vs templates?), fat pointers and a vastly better type system just to think of some stuff off the top of my head. I am not sure why he is saying this.
A very important mistake at 3:39: A circular reference such as "A holds a reference to one of B's fields, and B holds a reference to one of A's fields" does NOT cause a memory leak. Both will just have the same lifetimes and must be dropped at the same time (which the compiler will do for you).
The description of Rust in this talk contains some misconceptions. A 'static lifetime doesn't mean that the reference lives for the whole program execution (see e.g. Box::leak), just that the memory being pointed to cannot move or be dropped from the moment such a reference is created.
i feel like a better title for this talk would be "Async rust is thread safe, but is it fast?" as this is not about the speed of rust generally : )
Great talk! The only thing that's missing here is a performance comparison for a similar task implemented in, say, C++ and Go
Excellent talk Glauber, You r explanation is so crisp and it's to the point !!
I would say Rust is a more powerful C++. Traits is better than OOP/concepts, ownership/borrowing protects us, decent async model, hygienic macros (vs templates?), fat pointers and a vastly better type system just to think of some stuff off the top of my head. I am not sure why he is saying this.
Thank you for this presentation.