High Definition Standard Definition Theater
Video id : Lw-e3CDzE64
ImmersiveAmbientModecolor: #b58d80 (color 2)
Video Format : (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: 140 ( High )
PokeEncryptID: eb2706fcd965c2c525810048668dec0ca26e9d2686cfef393cc3e88ebaa4932c0e2bf845140fb52fc22796be2f1b90d5
Proxy : cal1.iv.ggtyler.dev - refresh the page to change the proxy location
Date : 1738036606172 - unknown on Apple WebKit
Mystery text : THctZTNDRHpFNjQgaSAgbG92ICB1IGNhbDEuaXYuZ2d0eWxlci5kZXY=
143 : true
658 Views • Oct 15, 2023 • Click to toggle off description
If you read the rust book, you'll notice that they mention zero cost abstractions a few times.

So what are zero cost abstractions exactly?

Long story short, zero cost abstractions are higher-level features that compile to lower-level code as fast as code written manually.

A clear non-controversial example of that would be memory management.

In this example, you as a C programmer are responsible for:

allocating the memory for your array
checking that the OS actually allocated the memory.
Ensuring that you do not access elements outside of the bounds of the array.
Freeing it when you are done with it.

And this is a lot of work just to create a freaking array.

With rust, you get all that stuff for free.

No Manual Memory Management: To create a new Vector, you just call new
Bounds Checking: Rust ensures that you don't access elements out of bounds at runtime, which prevents buffer overflows.
Automatic Cleanup: When the `Vec` goes out of scope, Rust's ownership system automatically cleans up the memory, preventing any memory-related bugs.
Metadata And Engagement

Views : 658
Genre: Science & Technology
License: Standard YouTube License
Uploaded At Oct 15, 2023 ^^


warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 5 (0/35 LTDR)

100.00% of the users lieked the video!!
0.00% of the users dislieked the video!!
User score: 100.00- Masterpiece Video

RYD date created : 2024-03-27T21:51:13.131236Z
See in json
Connections
Nyo connections found on the description ;_; report an issue lol

4 Comments

Top Comments of this video!! :3

@javiergranados7560

1 year ago

Awesome!! I am picking up rust just by seeing these videos.

1 |

Go To Top