Learn software development tips on topics ranging from programming (PowerShell, Python, Go, Rust, C#, etc.) to cloud (AWS, Azure, Google Cloud), Linux, open source, and much more!
Any content produced on this RU-vid channel is produced exclusively by Trevor Sullivan, and is not affiliated with any other individual, company, business, government entity, or non-governmental organization (NGO).
absolutely amazing, as a beginner to rust. This helps quite a lot, youre going over the small details and everything. A very nice idea for your channel growth could be rust shorts, where you summarize these videos. keep up the good work 👍👍👍
I've actually experimented with a few Rust shorts. I'm not a big fan of creating Shorts though! I enjoy making long form videos that teach new concepts. I appreciate the idea though. 😊
I have structure: #[derive(Serialize, Deserialize)] #[allow(dead_code)] pub struct KDTree <'a>{ root: KDTreeNode, state: HashMap<&'a str, usize> } and believe me, deserialization became a nightmare there, because it asks for 'de special lifetime that must be associated with 'a for state lifetime representation in order to work properly.
Great video, concise explanation with informative examples, thank you. BTW, you should drop the "please press the like button..." suggestion. Be sure that if your content is valuable to viewers they would press that button with or without you asking them to 😉.
Awesome video!!! really learnt a lot, gave up came to YT after failing to understand docs Can anyone tell me what theme and extension is being used for Rust?
does rust make any guaruntees about channel / thread allocation? For example, can I ensure that when I spawn two threads that they are on the same cpu core?
That's a good question. Is there any reason that you wouldn't trust the OS thread scheduler to handle this appropriately? Why are you wanting to manually manage thread affinity from your Rust application? Are you building an OS in Rust?
@@TrevorSullivan not making an OS, but core affinity could be useful in a heavy compute (HPC) type of application. I might be wrong, but on hpc systems (while they have a control plane to manage resources over a network connection) you might want to ensure that you are not oversubscribing your resources or that a process utilizes only a certain number of cores and threads etc…?
This is so good man! Love this video and your content. I personally appreciate that you have those articles of some very root sources present in you video.
I really would like to see a video explaining the real benefit of using LXD instead pure-LXC. All those networking options are pretty simple to do on pure-LXC side, without pushing extra lines of code to the system. I easy use pure bash scripts to automate most of what LXD does... but.. the LXD project probably is much more - and very bad communicated to the community. My 2 cents.
Not going to lie this is daunting lol as i follow along i feel i know this stuff but as soon as i try to guess ahead what i should do i get a bunch of errors. what a mental gym rust is
@@salaar-zj2ks I already have a video on async futures! Actually two videos. I will certainly consider making one on lifetimes. I know that some other creators have already covered this topic fairly well.
Awesome tutorials about Docs in Rust, learned a lot. However, would add 2 cents; for dynamic dispatching of animals field, Vec<Box<dyn Animal>> holds good.
@TrevorSullivan I have built a small ai navigator in rust I want visualize it so I am thinking to use ratatui but any recommendations ? It's like cave map i have to visualize
Demo of join part is not doing what you think. The second thread never runs concurrently, join forces it to run now. Test wirh lock/unlock inside loop to show thread working concurrently.