Trevor Sullivan

Trevor Sullivan

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).

Пікірлер

  • @shizeeque
    @shizeeque2 күн бұрын

    coding using `root` account? The man has no fear.

  • @736939
    @7369392 күн бұрын

    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.

  • @zubairyahayav5585
    @zubairyahayav55854 күн бұрын

    Very helpful. Good job.

  • @user-ig5qy7kh1e
    @user-ig5qy7kh1e7 күн бұрын

    I learned so much. Thank you

  • @idehenebenezer802
    @idehenebenezer8028 күн бұрын

    👍

  • @RaeesBhatti
    @RaeesBhatti8 күн бұрын

    This whole series is very high quality. Thank you creating and sharing this series!

  • @RadicalInteger
    @RadicalInteger8 күн бұрын

    nice video!

  • @hanyanglee9018
    @hanyanglee90188 күн бұрын

    Opt = optimized ? Im not sure.

  • @RadicalInteger
    @RadicalInteger8 күн бұрын

    this was a great tutorial

  • @fun-damentals6354
    @fun-damentals63549 күн бұрын

    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

  • @restauradorcaseiro
    @restauradorcaseiro9 күн бұрын

    A playlist about the stabby macro = ❤❤

  • @WanjikuKimani-pe8eh
    @WanjikuKimani-pe8eh12 күн бұрын

    You have amazing rust content🙌

  • @elkabetzroy
    @elkabetzroy13 күн бұрын

    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 😉.

  • @adityakiran2956
    @adityakiran295614 күн бұрын

    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?

  • @TrevorSullivan
    @TrevorSullivan14 күн бұрын

    Thank you for your kind words! The theme is "outrun" by "samrapdev" and the extension is Rust Analyzer.

  • @mssafy2592
    @mssafy259216 күн бұрын

    man , thank you so much 🥺✨

  • @davidlanday6102
    @davidlanday610217 күн бұрын

    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?

  • @TrevorSullivan
    @TrevorSullivan17 күн бұрын

    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
    @TrevorSullivan17 күн бұрын

    I do see there's a crate called "core_affinity" that would be worth exploring.

  • @davidlanday6102
    @davidlanday610210 күн бұрын

    @@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…?

  • @davidlanday6102
    @davidlanday610210 күн бұрын

    @@TrevorSullivan oh nice! I will look at this. Thanks!

  • @kanithimaneesha1406
    @kanithimaneesha140618 күн бұрын

    What is the commend to build solution file in c++

  • @XYZ-gr2iu
    @XYZ-gr2iu18 күн бұрын

    Hi Trevor, which theme are you using in the video? I like your purple theme.

  • @TrevorSullivan
    @TrevorSullivan18 күн бұрын

    Hey there! It's the Outrun theme by "samrapdev" in the VSCode Marketplace.

  • @XYZ-gr2iu
    @XYZ-gr2iu18 күн бұрын

    @@TrevorSullivan great, thanks!!

  • @AnkurDwivedi-wx9kh
    @AnkurDwivedi-wx9kh19 күн бұрын

    @28.00 for who do not understand println macro itself takes immutable reference of value it is supposed to print. hence the error

  • @austinperrine23
    @austinperrine2320 күн бұрын

    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.

  • @RichardWalterLanda
    @RichardWalterLanda21 күн бұрын

    top! thnaks yu mate for what yu are doing. I think yu deserve much more attention of rust community! wish yu a good luck

  • @TrevorSullivan
    @TrevorSullivan21 күн бұрын

    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. 🦀🦀

  • @jasonbraithwaite9204
    @jasonbraithwaite920424 күн бұрын

    Excellent, great clear explanation -> Thank You!

  • @Wodziwob
    @Wodziwob25 күн бұрын

    This is making so much click for me. Thank you! SUBSCRIBED.

  • @TrevorSullivan
    @TrevorSullivan25 күн бұрын

    I'm so happy to hear that! That's why I create these videos, to help people like you. 🦀🦀

  • @CQ123
    @CQ12326 күн бұрын

    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.

  • @pranithreddy
    @pranithreddy26 күн бұрын

    How is your code getting auto compelete any free tool.

  • @TrevorSullivan
    @TrevorSullivan26 күн бұрын

    Yes check out my first video on Rust, where we talk about the Rust Analyzer extension for VSCode!

  • @shahidyousuf9464
    @shahidyousuf946426 күн бұрын

    Kindly provide a detailed video on lifetimes. Appreciate the effort you put in to make our learning effortless.

  • @jesusmtz29
    @jesusmtz2927 күн бұрын

    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

  • @sevenelven
    @sevenelven28 күн бұрын

    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

  • @Im_Ninooo
    @Im_Ninooo28 күн бұрын

    === 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

  • @KillerJo-nn4nl
    @KillerJo-nn4nl14 күн бұрын

    Crazy.. yoo Its only 2 Months ago (the vid)

  • @jesusmtz29
    @jesusmtz2928 күн бұрын

    Awesome but, how did you access the crab emoji so quickly lol

  • @TrevorSullivan
    @TrevorSullivan28 күн бұрын

    You can use the WIN + PERIOD keyboard shortcut to open up the emoji picker on Windows 11!

  • @jesusmtz29
    @jesusmtz2928 күн бұрын

    ​@@TrevorSullivannice one thanks. Really high quality stuff

  • @TrevorSullivan
    @TrevorSullivan28 күн бұрын

    @@jesusmtz29 Thank you very much, friend! I am glad you're benefitting from these free videos. 🙂

  • @salaar-zj2ks
    @salaar-zj2ksАй бұрын

    Did you made any video on liferimes?

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    Hi there! No I have not made any videos dedicated to lifetimes yet. Thanks for checking!

  • @salaar-zj2ks
    @salaar-zj2ksАй бұрын

    @@TrevorSullivan Can you please make one on Lifetimes and Futures topics

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    @@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.

  • @salaar-zj2ks
    @salaar-zj2ksАй бұрын

    @@TrevorSullivan great thanks for your efforts

  • @shahidyousuf9464
    @shahidyousuf9464Ай бұрын

    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.

  • @praveenpp2929
    @praveenpp2929Ай бұрын

    Any plans on making a ratatui rust tutorial ?

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    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!

  • @praveenpp2929
    @praveenpp2929Ай бұрын

    ​@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

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    @@praveenpp2929 hmmm have you considered a 3D game engine like Bevy? That sounds like it could be a lot of work!

  • @AM-hc5vo
    @AM-hc5voАй бұрын

    Great Stuff!!! Please keep on creating valuable content about Rust. Also, if you please create a video on efficient data structures in Rust.

  • @madisonrodgers6870
    @madisonrodgers6870Ай бұрын

    🤗 'Promo sm'

  • @Kite70986
    @Kite70986Ай бұрын

    Thanks for your content🥰 It was very helpful and FUN. I want to dive in Rust badly.

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    Thanks for your kind comment! Start writing it today! 🦀🦀

  • @MathewBoorman
    @MathewBoormanАй бұрын

    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.

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    Thanks for calling that out.

  • @_azterisk
    @_azteriskАй бұрын

    Very clear- thanks

  • @OmbasaGeoffrey
    @OmbasaGeoffreyАй бұрын

    How dare you make rush so easy 😂😂

  • @user-ew6mz8kz8v
    @user-ew6mz8kz8vАй бұрын

    Огромное спасибо!

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    Пожалуйста! Спасибо, что смотрите мой канал!

  • @habeeblaimusa4466
    @habeeblaimusa4466Ай бұрын

    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?

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    You probably can't use LXD under WSL. I would recommend using a bare metal system.

  • @soheil424
    @soheil424Ай бұрын

    By coming this far, I realized that Rust is the world's most bullshit programming language ever!

  • @RadicalInteger
    @RadicalInteger7 күн бұрын

    اشتباه نکن خیلی هم خوبه، دوست نداری برو C++ یاد بگیر

  • @mohdamir-yo1lz
    @mohdamir-yo1lzАй бұрын

    never read about docs , after watching this i can play with rust Docs 😃 thank you Trever for making rust easy ...

  • @thescottallen
    @thescottallenАй бұрын

    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!

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    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!

  • @petepaxton5109
    @petepaxton5109Ай бұрын

    I just learned a ton about s3 syncing thanks. I've been using onedrive but I might try backblaze

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    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!

  • @petepaxton5109
    @petepaxton5109Ай бұрын

    @@TrevorSullivan what are the advantages over syncing with onedrive?

  • @TrevorSullivan
    @TrevorSullivanАй бұрын

    @@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.

  • @petepaxton5109
    @petepaxton510912 күн бұрын

    @@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