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 KZread channel is produced exclusively by Trevor Sullivan, and is not affiliated with any other individual, company, business, government entity, or non-governmental organization (NGO).
Пікірлер
coding using `root` account? The man has no fear.
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.
Very helpful. Good job.
I learned so much. Thank you
👍
This whole series is very high quality. Thank you creating and sharing this series!
nice video!
Opt = optimized ? Im not sure.
this was a great tutorial
i believe it doesnt give a warning for the 1..=36 because some part of the pattern can still be reached. only 0 and 5 are unreachable
A playlist about the stabby macro = ❤❤
You have amazing rust content🙌
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?
Thank you for your kind words! The theme is "outrun" by "samrapdev" and the extension is Rust Analyzer.
man , thank you so much 🥺✨
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?
I do see there's a crate called "core_affinity" that would be worth exploring.
@@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…?
@@TrevorSullivan oh nice! I will look at this. Thanks!
What is the commend to build solution file in c++
Hi Trevor, which theme are you using in the video? I like your purple theme.
Hey there! It's the Outrun theme by "samrapdev" in the VSCode Marketplace.
@@TrevorSullivan great, thanks!!
@28.00 for who do not understand println macro itself takes immutable reference of value it is supposed to print. hence the error
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.
top! thnaks yu mate for what yu are doing. I think yu deserve much more attention of rust community! wish yu a good luck
Thank you, Richard! I appreciate you being part of the community! I'm glad that you're learning from these videos. That's why I produce them. 🦀🦀
Excellent, great clear explanation -> Thank You!
This is making so much click for me. Thank you! SUBSCRIBED.
I'm so happy to hear that! That's why I create these videos, to help people like you. 🦀🦀
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.
How is your code getting auto compelete any free tool.
Yes check out my first video on Rust, where we talk about the Rust Analyzer extension for VSCode!
Kindly provide a detailed video on lifetimes. Appreciate the effort you put in to make our learning effortless.
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
Hi Trevor, now that you have a ui how would one publish the ui so that it's accessible on the internet as a dashboard for example as an internal app
=== Timestamps === 0:00:00 Intro 0:00:34 What is Lua 0:01:02 Where is Lua used 0:02:12 How Lua works 0:04:35 What's included in this course 0:04:55 Other places to learn Lua 0:07:08 How to install and run Lua 0:08:11 Lua shell (REPL) vs interpreter 0:10:04 Installing Lua on Ubuntu (apt) 0:10:45 Installing Lua on Windows (scoop) 0:12:06 Installing Lua on MacOS (homebrew) 0:13:16 Installing and setting up VSCode 0:15:16 Extensions 0:16:25 Creating a new Lua script 0:17:15 Using the Lua shell (REPL) 0:18:03 Variables 0:20:47 Multiple statements on the same line 0:21:46 Block definitions (do...end) 0:23:13 Back to VSCode 0:24:21 Code Runner extension 0:26:04 nil type 0:26:46 Booleans 0:27:36 Variable naming conventions 0:29:58 Strings 0:30:12 Numbers 0:33:25 String concatenation 0:36:41 Multi-line strings 0:40:19 Comments 0:42:07 Tables 1 0:44:02 type() function 0:45:15 Tables 2 (indexing, types) 0:47:13 Length operator 0:48:58 Tables 3 (key-value pairs) 0:51:06 Variable naming limitations 0:52:40 Math operations 0:54:00 Math module 0:55:59 abs() 0:57:09 ceil() 0:57:55 floor() 0:58:32 random() 0:59:17 randomseed() 1:01:07 min(), max() 1:02:52 More Strings 1:03:47 String module 1:04:07 sub() 1:07:22 find() 1:09:01 Functions 1:35:08 For loop 1:40:55 If statements 1:47:31 While loop 1:49:46 Repeat loop 1:51:43 User input 1:52:14 io.read() 1:57:05 Table module 1:58:50 sort() 2:02:21 concat() 2:04:07 remove() 2:06:33 OS module 1 2:08:11 remove() 2:09:18 execute() 2:10:07 getenv() 2:12:10 IO module (writing to file) 2:12:39 output() 2:14:00 write() 2:15:31 open() 2:18:05 OS module 2 2:18:15 time() 2:21:27 Modules
Crazy.. yoo Its only 2 Months ago (the vid)
Awesome but, how did you access the crab emoji so quickly lol
You can use the WIN + PERIOD keyboard shortcut to open up the emoji picker on Windows 11!
@@TrevorSullivannice one thanks. Really high quality stuff
@@jesusmtz29 Thank you very much, friend! I am glad you're benefitting from these free videos. 🙂
Did you made any video on liferimes?
Hi there! No I have not made any videos dedicated to lifetimes yet. Thanks for checking!
@@TrevorSullivan Can you please make one on Lifetimes and Futures topics
@@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.
@@TrevorSullivan great thanks for your efforts
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.
Any plans on making a ratatui rust tutorial ?
I definitely want to! I have toyed around with it a little bit, but I'm not really good with it yet. It seems like an awesome framework!
@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
@@praveenpp2929 hmmm have you considered a 3D game engine like Bevy? That sounds like it could be a lot of work!
Great Stuff!!! Please keep on creating valuable content about Rust. Also, if you please create a video on efficient data structures in Rust.
🤗 'Promo sm'
Thanks for your content🥰 It was very helpful and FUN. I want to dive in Rust badly.
Thanks for your kind comment! Start writing it today! 🦀🦀
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.
Thanks for calling that out.
Very clear- thanks
How dare you make rush so easy 😂😂
Огромное спасибо!
Пожалуйста! Спасибо, что смотрите мой канал!
Hi, I am using WSL but, the issue I am having is that the lxc command does not work.. How do I go about it?
You probably can't use LXD under WSL. I would recommend using a bare metal system.
By coming this far, I realized that Rust is the world's most bullshit programming language ever!
اشتباه نکن خیلی هم خوبه، دوست نداری برو C++ یاد بگیر
never read about docs , after watching this i can play with rust Docs 😃 thank you Trever for making rust easy ...
This is great! I use Lua in an audio/visual/control system called QSYS by the audio company QSC. Lua is used to control automation, build plugins to connect to other devices or extend stock functionality of the system. This video is helpful for me to fill in some gaps, where I sometimes find it difficult to read the manual, having someone explain it in a different way is awesome. Much appreciated!
That's exactly why I created this video! To help round out people's knowledge of the language in an easy to understand video form. I'm so happy that this helped you! That's a really interesting use case for Lua as well. Thanks for sharing the software package name that you are using!
I just learned a ton about s3 syncing thanks. I've been using onedrive but I might try backblaze
Backblaze is amazing! I love how inexpensive their S3 compatible storage is. It doesn't have all the same features of Amazon S3, but for basic storage needs it's perfect!
@@TrevorSullivan what are the advantages over syncing with onedrive?
@@petepaxton5109 well, for one, any software tool that is compatible with S3 apis will be able to manage your storage. OneDrive is more consumer focused, and is likely harder to automate via API. Tools like rclone allow you to mount S3 storage as a local filesystem, if you really want to do that, although it does introduce performance problems. You're much better off writing code against the S3 APIs directly. Rclone also has commands to manage storage using those APIs if you don't want to write code yourself.
@@TrevorSullivan i ended up going with the joplin cloud. They give teachers a 50% discount and now I get more space and also email to note which I use a lot