Facebook Recommends Rust?

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2022
  • This means its time to lean in! Facebook actually just rec'd it so hard
    Twitch
    Everything is built live on twitch
    Twitch : bit.ly/3xhFO3E
    Discord: discord.gg/ThePrimeagen
    Editor
    All my videos are edited by Flip. Give him a follow! / flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his dms.
    Links
    Linode: linode.com/prime
    / discord
    Twitch: / theprimeagen
    Insta: / theprimeagen
    Twitter: / theprimeagen
    VimRC & i3: github.com/ThePrimeagen/.dotf...
    Keyboard (15% off, I don't earn commission): bit.ly/primeagen-adv2
    #vim #programming #softwareengineering
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 466

  • @gianmarcofantinuoli5573
    @gianmarcofantinuoli5573 ปีที่แล้ว +620

    Contratulations Prime, your channel it's growing blazingly Fast!

  • @cartervavra7437
    @cartervavra7437 ปีที่แล้ว +67

    Did a coding interview with FB for an internship. And during the pandemic, their focus was shifting to squeezing the most performance out of the hardware they had. Mainly because of how expensive hardware was and still is.

    • @KunalMukherjee3701
      @KunalMukherjee3701 ปีที่แล้ว +2

      So is still PHP at the backend ?

    • @NathanHedglin
      @NathanHedglin ปีที่แล้ว +13

      @@KunalMukherjee3701 no, they made a compiler to compile the PHP called Hack. It has diverged from PHP since.

    • @Phasma6969
      @Phasma6969 ปีที่แล้ว +6

      @@NathanHedglin so it's php gotcha

    • @ko-Daegu
      @ko-Daegu ปีที่แล้ว +1

      @@NathanHedglin hack nothing new though it's also fairly similar to php

  • @minimiseval
    @minimiseval ปีที่แล้ว +35

    Thanks bro I was 97% of the way through my JavaScript course and had a job lined up but I dropped it all gonna invest in rust now

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +15

      LETS GO

    • @sammyres2853
      @sammyres2853 ปีที่แล้ว +19

      @@ThePrimeagen youtube is reporting this comment was posted 14 minutes ago but prime's response 19 minutes ago. Confirmed rust is so fast prime is now timeagean

    • @emenikedaniel
      @emenikedaniel ปีที่แล้ว

      @@sammyres2853 😂🤣

    • @vaisakhkm783
      @vaisakhkm783 ปีที่แล้ว +1

      @@sammyres2853 you bet

    • @axonasif
      @axonasif ปีที่แล้ว

      @@sammyres2853 DAMN 😆

  • @michaelmcclean5102
    @michaelmcclean5102 ปีที่แล้ว +12

    I was comparing Rust and Go about 6 months to upgrade backend services from typescript - ultimately choosing Go because of its easy integration with GCP.
    I love Go now - I feel so much power writing it ha. But you’ve got me wondering if I should have learned Rust instead. I feel like I will pick it up easier than I would have six months ago but man - Go is so much fun.
    I enjoy your videos, thank you!

  • @Jidieich
    @Jidieich ปีที่แล้ว +33

    That's it, I'm going serious with Rust. I have been learning it on and off since 2018, I love it, but I never get past micro toy projects/testing features of the language and just reading stuff. Also subscribing now. I blazingly fast hope you get to 500k subscribers.... BLAZINGLY FAST!

  • @irlshrek
    @irlshrek ปีที่แล้ว +13

    I've never been more excited about a programming language as I am with rust. It feels like when I first learned to code in the best way possible

  • @Jay-fn2fo
    @Jay-fn2fo ปีที่แล้ว +11

    Congratulations! A simple tour of your setup (even with all the drinks and subway wrappers) would be pretty neat. Think fans genuinely want to see more of your personal side which I know you hate blazingly fast.

    • @Zzznmop
      @Zzznmop ปีที่แล้ว

      Can confirm his desk is a bunch of wires and no subway wrappers. Join the discord! :)

  • @icephonex
    @icephonex ปีที่แล้ว +1

    thanks to you, I started using nvim, learning rust, using i3, and just so many great choices I didn't even know existed

  • @noviriustomeisho6630
    @noviriustomeisho6630 ปีที่แล้ว +24

    I was there when rust was being adopted for CLI tools. Some of it actually did come down to performance because some CLI tools ingest large datasets and do heavy computation. Several seconds magnitude of difference.

    • @TimBell87
      @TimBell87 ปีที่แล้ว +11

      Oh, the performance gains are no joke - my first project in rust was rewriting a C# cli tool reducing more than 10 seconds of runtime down to less than 10 milliseconds
      The second was a rewrite of a python cli tool that a friend of mine had written for his own personal use.
      The intended dataset was many gigabytes in size so the difference in run time was not seconds, I think it was something like 5 hours reduced down to 4 minutes.

    • @SebastianSipos
      @SebastianSipos ปีที่แล้ว +1

      @@TimBell87 I am almost sure that both apps could have been optimized further, but not up to the same level of performance as the rust version.

    • @TimBell87
      @TimBell87 ปีที่แล้ว

      @@SebastianSipos ​Oh absolutely,
      In fact I'm noticing more and more that the performance improvements of Rust can mostly be put down to the language more-or-less forcing coders to do their jobs properly.
      That and Rust's preprocessor does a few things that result in otherwise sloppy code being performant.

    • @SebastianSipos
      @SebastianSipos ปีที่แล้ว +4

      @@TimBell87 yep. just yesterday, my colleague was whipping up a python web scraper, and instead of walking the paginated and filtered items and by walking the relevant items, he was looping from 1 to like 80k and appending to the url, since the entity ID was in there and visiting all pages, but we knew that only 2200 entries were of interest. The program was to run 11 days in it's initial form.
      And management keeps wondering why I am passive aggressive with people...

    • @TimBell87
      @TimBell87 ปีที่แล้ว +2

      ​@@SebastianSipos Wow, 11 days!
      See, I came into programming from an electrical engineering background - to me if just about any program takes 3 seconds to run, that's already way too slow.
      I find it endlessly baffling that we've got to the point where this sort of thing is considered acceptable.

  • @earthling_parth
    @earthling_parth ปีที่แล้ว

    Congratulations! I really like the idea of fooling around with some hardware and comparing different programming languages as you mentioned ♥️

  • @fidelhviegas
    @fidelhviegas ปีที่แล้ว +26

    Back in 2019 I chose Go over Rust mainly because of Rust's learning curve. I loved the language's syntax, but the whole concept required an awful amount of time, and so I ended up going with Go. In the past year and a half, I began playing around with Rust again, and I must say that learning Go has helped me learn Rust faster this second time. My favorite is still Go, mainly because of its simplicity and fast development. It feels like a scripting language. Rust, on the other hand, feels a lot like C++, a language I have always hated, and did a project or two with it. I love C, and that is still one of my favorite, and I think that Rust reminds me a lot of how I learned C. I learned the syntax pretty fast, but then it took me ages to master the whole concept of pointers, and memory management. I am thinking of introducing Rust to our microservices' architecture along with Go. Nice video!

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +3

      ty ty :)

    • @student99bg
      @student99bg 9 หลายเดือนก่อน

      Honestly, if you don't need to make structs whose fields have generic lifetime annotations I don't understand what learning curve you all are talking about. I got interested in Rust around the 2023 New year, I watched videos about it for a week, then I decided ok, let's make a project in Rust and I made a chess engine in it. Rust wasn't harder than Java. I didn't need to use any generic lifetime annotations though, otherwise, it would be harder.

  • @ivanraulsanchezdiaz7499
    @ivanraulsanchezdiaz7499 ปีที่แล้ว +3

    the biggest advantage of rust is that it is super fun! A year ago I told you that I finally got my first job as a developer and it was working in rust, I'm still in the same company and I'm still learning incredible things with rust

  • @luissaybe
    @luissaybe ปีที่แล้ว +21

    It would be cool to make a video about concurrency in rust, not concurrency powered by native OS threads, but whatever lightweight model rust implements…if they even have one

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +16

      they do! tokio has green threads, and you have access to std::thread::spawn for that sweet native

    • @CircuitCoreAI
      @CircuitCoreAI ปีที่แล้ว

      Something like Gorutine

  • @fathirirhas3609
    @fathirirhas3609 ปีที่แล้ว +3

    Having written Rust in new company I work for. Even with this little experience, I can say it's great language. It has great type system along with safety. What Rust give you is that: In other languages, when you do code reviews, you're not only reviewing the business logic changes, but also you have to make sure everything else not related to business logic run well. Things like data race, memory safety, data consistency, concurrency safety ,memory leaking possibility, long term stability, code and style conventions, and other stuffs. While in Rust, those things can be caught and reviewed in compile time by the compiler itself. So most of the time, when you make a PR about rust code, you only need to review the business logic changes and ignore other stuffs mentioned that most probably already handled by the compiler.

  • @Rihsto
    @Rihsto ปีที่แล้ว +10

    "you’re gotta talk to me so I know what you want" you can see that this guy is happily married

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +8

      i am happily married :)

    • @Rihsto
      @Rihsto ปีที่แล้ว +1

      @@ThePrimeagen you must share your secret one day with us - how to make time for family, full time job, steaming and building bun spreaders in 24 hours 😂

  • @andreipene8647
    @andreipene8647 ปีที่แล้ว +2

    A lot of the Rust concepts didn’t stick for me when reading the Rust book, but lately I’ve been working with Bevy, a game engine written in Rust, and everything is starting to click now. The Rust portions in your FEM polyglot course were also great 👍

  • @JeremyKolassa
    @JeremyKolassa ปีที่แล้ว

    Also, thank you for this Prime, this really helps me in charting my learning course for the next couple of years.

  • @DevlogBill
    @DevlogBill ปีที่แล้ว

    Excellent video man. Almost a year of learning JavaScript. Would you recommend a newbie to learn Rust? Or stay in JavaScript land? You're the third developer so far who speaks very highly of the language.

  • @MakuDraw
    @MakuDraw ปีที่แล้ว

    Congratz for your channel grown Prime! DESERVED

  • @hacktor_92
    @hacktor_92 ปีที่แล้ว

    0:44 - I agree. I've done many CLI tools in PHP, TypeScript (be it Node or Deno). recently i started making games at my workplace, so I got bored of doing the same setup all over again. so, I wrote a small rust-based cli tool to help me get started faster with doing a new game (hint: think how "yarn create some-app" command works). doing cli stuff was new, challenging and it paid off really well. and i code in rust blazingly fast!

  • @friedkitchenrce
    @friedkitchenrce ปีที่แล้ว +5

    I actually tested standard Regex libraries from both rust and go. Rust actually blew go out of the water as a release binary. It took go 5-6 seconds for regex matching and replacing with 99k loops while rust only took a few microseconds!

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +8

      yeah compile time regexes are nuts.
      also don't use regexes. regexlicense.org

  • @HolyMethWizard
    @HolyMethWizard ปีที่แล้ว +5

    I remember starting to learn c++ years ago but I couldn't get the build tools working so I tried rust. Cargo goes crazy.

  • @cl9431
    @cl9431 ปีที่แล้ว +2

    Awesome vid! Here's the rust packages mention if anyone wants names (I put links originally but YT kept deleting my comments lol):
    anyhow - for error handling
    eyre - for error handling
    tokio (at first I thought he meant TOOOOKYOOOOO night theme, silly me) - async rust, for network applications.
    clap - for building CLIs

  • @AceofSpades5757
    @AceofSpades5757 ปีที่แล้ว +2

    For CLI tools, I also strongly recommend Rust. I've seen a lot of other languages, frameworks, and tools to create CLI applications. Python and Node and both great options and I've seen some incredible Ruby ones as well, but I always feel confident that the Rust ones will never fail, realistically, and give me consistent results.

  • @sleepykew
    @sleepykew ปีที่แล้ว

    I would love to see a devhour with Tris (*sp?) from 'No Boilerplate'! He's all about rust.
    Also a devhour with fireship would be cool!
    Good luck on 100k!

  • @tokiomutex4148
    @tokiomutex4148 ปีที่แล้ว +12

    Of course they are recommending Rust, other languages with powerful type systems that would have similar benefits for your projects would be the ones in the ML family but they aren't as easy to work with due to increased focus on the functional paradigm, small communities and poor tooling.

  • @Baron-digit
    @Baron-digit 11 หลายเดือนก่อน

    Hey Prime,
    really like your videos, is there a way you build a series how to really get things into production?
    Most videos are related to certain topics, but how to really deploy things seem really rare.
    Highly appreciated.

  • @tobb10001
    @tobb10001 ปีที่แล้ว +1

    100k YT subscriber special is streamed on Twitch. That's a legend move.

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      since i already stream there 2-4 days a week, naturally this would happen.

  • @smoreno5591
    @smoreno5591 ปีที่แล้ว +1

    OK I did it! I pressed the bottom, I don't even know how to programm at all, but I like your vipe and passion for what you do =)

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว

      Hah! This is a programming channel

  • @asdqwe4427
    @asdqwe4427 ปีที่แล้ว

    I’ve used Scala professionally, for a short period of time. This was at a place that pushed for functional programming.
    I thought rust would come easy to me, but it’s surprisingly hard.

  • @wadecodez
    @wadecodez ปีที่แล้ว +4

    Rust isn't really that hard to learn if you are already familiar with strongly typed languages. OOP is a little weird with structs, traits, and impl, but the killer feature is the module system. It makes it easier to work at a low level and have pythonic like organization.
    People that will probably catch on the quickest are PHP and Swift devs who have background in C/C++

  • @theideaot140
    @theideaot140 ปีที่แล้ว +3

    Congrats mate 👏
    I appreciate your delivery being both deeply technical, yet available to beginers.
    One of the cooler side of rust is the browser-nativity, so maybe make like a simple multiplayer game and the WASM it? Like an airhockey or something. That'd be cool to see 😇

  • @analisamelojete1966
    @analisamelojete1966 ปีที่แล้ว +7

    Day 1 of learning rust: I will follow the rust tutorial and build a CLI guessing game.
    Day 2: Googling how to build a complete backend for an ERP in rust.

    • @aourt
      @aourt ปีที่แล้ว

      relatable

  • @denzilv
    @denzilv ปีที่แล้ว +42

    In Rust We Trust
    In all seriousness, it's definitely huge that Meta publicly recommends Rust. I wonder how its adoption rate will compare to Node/TypeScript's rise. 🤔
    Let's get to six fig subs!

    • @DoctorSoulis
      @DoctorSoulis ปีที่แล้ว +4

      This is where the fun begins.

    • @NathanHedglin
      @NathanHedglin ปีที่แล้ว +1

      Node / Typescript is fine for tons of cases but for big Tech they need every ounce of performance.

    • @ItsMeChillTyme
      @ItsMeChillTyme ปีที่แล้ว +2

      It will be slower because of the high learning curve. There will be attempts at making frameworks that shortcut learning the language like the JS people constantly do with React but it is bound to make them hit a wall. Or, it could be that it's sufficient to learn such helper frameworks and continue, perhaps. Either way, I think company adoption will be fast enough but industry adoption will take time. I expect quite a significant amount of developers to be left behind when its said and done like when the reign of PHP ended (sure, they still exist but not as much as they used to be)

  • @shawnbeans7389
    @shawnbeans7389 ปีที่แล้ว +1

    1:26 😇😇 made my day!!

  • @Guilherme-qk9so
    @Guilherme-qk9so ปีที่แล้ว +3

    What's the drawback of using Go isntead of Rust, for the use cases that both make sense? (Web server, CLI tools, ...?) Would love if you could elaborate on this!

  • @meltygear5955
    @meltygear5955 ปีที่แล้ว

    Yep. Although my focus is Python due to current job demand (and backend language used in my current company), Rust is my next goal.

  • @CaptainKraft
    @CaptainKraft ปีที่แล้ว +4

    Can you go into more detail about Rust vs Go specifically in this context? You mentioned that Rust has big benefits after you get past the frustrations, but what are those benefits as compared to Go in particular?

    • @justsomerandomguyman
      @justsomerandomguyman ปีที่แล้ว

      Way better type system, way more modern language design & language features.

  • @ImranSheikh-kg4qd
    @ImranSheikh-kg4qd ปีที่แล้ว

    I am become blazing fast by watching your videos , but didn't subscribed yet ( didn't noticed before ) that's not fair 😅 . So just smashed that red button blazing fast.

  • @woody5012
    @woody5012 ปีที่แล้ว +4

    For a CLI tool, I'd choose Go over Rust. You can get things done much faster, and it's a simpler language. Cobra (although a bit bloated I think) is a really great project.

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      cobra is great, but boy takes a bit of time to get there

  • @konga8165
    @konga8165 ปีที่แล้ว

    Love you man. Keep it up!

  • @geekboy328
    @geekboy328 ปีที่แล้ว +2

    Would kill to see some JVM content, i.e. Kotlin, Java or even Clojure. For web servers the top JVM frameworks can match their equivalents in Go when it comes to performance.

  • @Richard-sp3ul
    @Richard-sp3ul ปีที่แล้ว +1

    Rust - the book. Is delightful. On first glance Rust feels right and looks sweet. Hope more interest keeps the good vibes around this language.

  • @pedroluiz8019
    @pedroluiz8019 ปีที่แล้ว +44

    While I get your reasoning, how do you balance this fact with how hard it is to develop on rust (I remember your videos saying that you take X amount of time more to develop a web server and it wasn't even faster than Go). Do you think rust will still be needed for this kind of services when it is so hard to "get it right", specially if you as a very experienced developer has trouble going over these issues, the average developer will just fry his brains out. Would be nice if you could make a video exploring this side, like if you don't really need a very fast program (most cases if you aren't working at a top company or something) do we should really consider Rust? Thanks papa prime!

    • @benjinguyen9965
      @benjinguyen9965 ปีที่แล้ว +28

      I have about 1.5 years of experience programming with Rust at a hobby capacity, and I think the misguided assumption most folks make about Rust is that it will ALWAYS be a slog to develop in. Yes, Rust has an incredibly high learning curve; it demands (most) programmers unfamiliar with the borrowing/ownership model of memory management to undo a lot of irresponsible patterns they've ingrained into their intuition that they've acquired working with languages that either A: force you to manage your own memory without providing you with much guidance as to whether or not you're doing it safely, or B: use built-in garbage collector that gives you the flexibility to now have to think at all about memory.
      On top of that, if you have no functional programming experience and are unfamiliar with things like monads, Rust can feel very unergonomic at first, as Rust borrows a lot from functional programming philosophies to ensure that runtime errors can't occur unless you, the programmer, explicitly opted in to that wreck-less behavior (e.g. unwrapping a Result enum).
      Both of the things I mentioned (new memory management model and functional programming philosophies) are things I struggled with in the beginning, but of course with time and effort, I was able to re-condition myself and make all of these things intuitive, which has led Rust to become for me an incredibly ergonomic language that makes me incredibly productive. Is Rust going to allow me to prototype faster than a language like Ruby? No. But the initial upfront cost is worth the long-term benefit of having software that is stable and robust and likely requires less maintenance going forward.
      And don't get me started on all the things you get for free out of the box in the standard Rust toolchain. Rust is the epitome imo of everything a modern language should be and what its toolchain should have.
      Side note: Gitting gud at Rust made me better virtually across all languages. Rust just makes you a better programmer and I whole heartedly believe that.
      Edit: And to address the concerns for directly, I do think that if your product is built on Rust, you'd need to hire seasoned Rust devs primarily, as Rust's philosophy is so unique that you can't just pick any senior dev out of a box who has worked with every popular language other than Rust and expect them to grok everything in a short amount of time. Rust is universally difficult imo. It will yell at you and it will scream at you, but it's doing that because it loves you.

    • @9SMTM6
      @9SMTM6 ปีที่แล้ว +4

      That was an multithreaded async Webserver.
      In that case Rust is, AFAIK, at least competitive with what C++ is offering on terms of ease and potential performance. Which is higher than golang, but indeed difficult to get right, easy to drop below Golangs good default.
      Frankly, Rusts async support and libraries still have a decent amount of issues.
      But as I said, it should be competitive with C++, and has higher potential than Go, so as far as FACEBOOK is concerned that makes it competitive.
      And when it comes to short-lived CLI tools, then async typically doesn't provide benefits, as you will handle threads differently.
      And, if Rusts async support should mature, which seems very likely, it will massively gain on Go in ease of using it properly for these tasks too.

    • @brentsteyn6671
      @brentsteyn6671 ปีที่แล้ว +5

      This might sound ignorant, but I think you can get really really good in rust just in one month. There is know enough resources out there to understand most of rust and the complicated part of it very fast.
      Take my word for it I have done it.

    • @amans6504
      @amans6504 ปีที่แล้ว +7

      The best argument I saw against this is that, look at the most popular rust packages, they're not updated since 1 year or so. What does that mean? That means rust programs are so perfectly written, they don't need any further changes. Actually a Majority of our work as a programmer goes into fixing things, rust seems to change that. Don't be afraid of tough things, rust is only going to make you a better dev

    • @tdizzledashizzlerizzle9686
      @tdizzledashizzlerizzle9686 ปีที่แล้ว +7

      Rust doesn’t make it any harder to get right than other languages, Rust just forces you to deal with them at the start of development rather than debugging afterwords

  • @Tony-bu1rj
    @Tony-bu1rj ปีที่แล้ว +1

    Congratulations!! Your blazingly fast vim techniques deserve my subscription :)
    May I know how you rename a variable across a project using vim?

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      if the LSP supports it, then you can. So for typescript, rust, and go i can name across projects via lsp rename action (neovim supports it natively)

    • @Tony-bu1rj
      @Tony-bu1rj ปีที่แล้ว

      @@ThePrimeagen Thanks!

  • @defnlife1683
    @defnlife1683 ปีที่แล้ว +1

    Rust & Javascript makes a lot of sense for the web stack.
    I’ve enjoyed it a lot while I learned C at the same time.

  • @sortof3337
    @sortof3337 ปีที่แล้ว +2

    I was on rust train for a while now, but man I so want zig to succeed like this as well. Thats one hell of a language. Love writing rust, hate reading it.

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว

      i could see this happening

  • @nikolamar
    @nikolamar ปีที่แล้ว +3

    I like your honest opinion on what it feels like when you start learning rust language: "it is kind of pain in the ass" LOL

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +3

      people always sell it one way or the other, but ... well, i am just going to try to sell it as it is. It sucks. But it gets really good afterwords

  • @0644dev
    @0644dev ปีที่แล้ว +1

    Every time we do a codecast with one of our Senior dev on the team we try GoLang and Rust much like you do in your videos and every time Go is 6 times faster to write and almost always more performant since we mess up something for parallelism in Rust, like concurrent hash map, couldn't even finish implementing it in Rust. Still feel like a language to start with, feels like a 3rd - 4th one

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว

      yeah, it takes a bit.
      I am now officially ok at rust to where I build it better / faster than go, but it took a bit for that to happen.

    • @0644dev
      @0644dev ปีที่แล้ว

      @@ThePrimeagen It takes 81k youtube subscribers to be faster in Rust than Go 😂

  • @jonathanduran2921
    @jonathanduran2921 ปีที่แล้ว +1

    Hey Prime, could you make a video about how you learn/manage all of these new technologies (like Rust). Especially interested in seeing how you balance your learning with the million other things you are working on.

  • @danielrdrigues
    @danielrdrigues ปีที่แล้ว +1

    I don't even know Rust, but just by Rustscan app performance I already love this lang.

  • @keneepatel4308
    @keneepatel4308 ปีที่แล้ว

    felt that last urge when you said "PRESS THE LIKE BUTTON" and there i did it.

  • @iamgabrielsoft5891
    @iamgabrielsoft5891 ปีที่แล้ว

    Prime channel is growing blazingly fast 🔥🔥🔥🔥🔥🔥🔥🔥

  • @philistineau
    @philistineau ปีที่แล้ว +1

    I subscribed to you over the weekend. I am an absolute beginner when it comes to programming, other than some python. I would love to see you do a video on how a beginner should learn rust and what server and CLI programs you recommend a beginner start with.

  • @RHCPhooligan
    @RHCPhooligan ปีที่แล้ว

    Hey man, love the videos... got a question for u as someone with way more experience than me, how do you debug WASM Rust code? I'm working on my first rust/wasm app and I am getting a segfault. I can't figure out what part of my rust code generated the issue. What tools do you use for things like this?

  • @yousifalfaki4389
    @yousifalfaki4389 ปีที่แล้ว

    i dont know y i hit subscribe button and like you're exceptional .

  • @RobertBMenke
    @RobertBMenke ปีที่แล้ว +1

    Would love for some better server frameworks to come out in the rust space. It can be extremely productive once you’re up to speed on the language.

  • @kristun216
    @kristun216 ปีที่แล้ว +1

    How long did it take for you to get good with the split keyboard? I slowed down massively and having trouble using it for work

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      i can type well on a regular keyboard, so virtuallly no time

  • @TheFalloo92
    @TheFalloo92 ปีที่แล้ว +6

    Was thinking the same. I don't think TypeScript is 'a future'. I would bet my money on either Rust or Golang. I'd recommend trying out both.

    • @ItsMeChillTyme
      @ItsMeChillTyme ปีที่แล้ว

      Typescript is a giant cope on the deficiency of JS and nothing else having been able to replace it because of its ease of typing has propelled it to its position. The devs will be very adamant on sticking with JS/TS for a long time but the industry will keep bleeding them out as they're replaced by younger and better developers that know Rust already. Basically the PHP story. God knows what happened to those Flash developers, at least the animators are now skilled.

  • @rishabhgupta2085
    @rishabhgupta2085 ปีที่แล้ว

    Great colab with fireship 🔥

  • @__idan__
    @__idan__ ปีที่แล้ว +10

    Request: blazingly fast Rust tutorial by Prime 😉?

  • @Justin-fq8dt
    @Justin-fq8dt ปีที่แล้ว

    I like rust, but I love go :|
    Congrats on 100k btw, you absolutely deserve it! Please make sure you lick the silver play button with passion when it arrives.

  • @michazabielski7225
    @michazabielski7225 ปีที่แล้ว +3

    I’m really conflicted when I watch your videos. I usually completely agree with your opinions and find it insightful. It’s unusual for me HOW often I agree with you! On the other hand I really hate your way of presenting it. Screaming etc. makes me think - wtf I’m doing here:)

  • @emmanuelmtera5936
    @emmanuelmtera5936 ปีที่แล้ว

    You always do servers it's good stuff, I was like wondering amongst the blazingly fast languages that I have seen in your review here is there one that can be used in android development and how it performs in android apps? Like how does Go, perform when included and used in the android app or how does rust perform, or even how to implement these native languages in android apps e.t.c Thank you

  • @9SMTM6
    @9SMTM6 ปีที่แล้ว +1

    What I found notable is that it's THE ONLY language recommended for CLI tools.
    I guess that don't want to adopt Golang because they use it nowhere else, and maybe also because it's from Google, but still that's a good sign for Rust as far as CLI tools are concerned.
    It does also seem that CLI tools made in Rust have surpassed these made in Golang in recent times as far as popularity is concerned.

  • @SC-vj9ud
    @SC-vj9ud ปีที่แล้ว +3

    Hi Prime, awesome work on the consistently great content! Can you make a video on how to do global search and replace with NVIM please? The way VSCode does it it

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      files -> quickfix
      cdo s/thing/replace/g

    • @SC-vj9ud
      @SC-vj9ud ปีที่แล้ว

      @@ThePrimeagen Thanks! Will give it a go

  • @Viviko
    @Viviko ปีที่แล้ว +3

    I love Rust. Learned it in a week. :)

  • @epiderpski
    @epiderpski ปีที่แล้ว +3

    I absolutely love that your focus will be Rust. Same here

  • @bigdeveloper3081
    @bigdeveloper3081 ปีที่แล้ว

    Rust tutorial series would be nice!

  • @kylestubblefield3404
    @kylestubblefield3404 ปีที่แล้ว +1

    I am currently learning swift for an iOS app, I wanted to build in rust but that is just a pain in the ass. I am playing with server side compiled swift on my web server(on linux). That is pretty interesting.

  • @ottosmopskotzt1
    @ottosmopskotzt1 ปีที่แล้ว

    I use Rust for pretty much anything now, the fun part about it is, I don't even now how to write a server, that would only last for 3 weeks, without purposely f***** something up. The entire language is just build to last forever, when you avoid panics and unwraps, the language forces you to have proper error handling.

  • @abdullaalameri6091
    @abdullaalameri6091 ปีที่แล้ว +1

    Haven't tried rust yet but I've been curious about Actix after looking at Tech Empower benchmarks (as a future software engineer).
    Would you recommend Actix or any of the top http frameworks? also why a rust server? is it better for data streams? how does reactive programming work on rust?
    Looking forward for more Zig and Rust content, loved your collab with fireship
    #blazingly_fast

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      first, fireship is the man.
      actix is great. I have used it in a blazingly fast video before! Why rust server? You really have to consider how to handle all sorts of error conditions.

    • @abdullaalameri6091
      @abdullaalameri6091 ปีที่แล้ว

      ​@@ThePrimeagen Found the video , thanks LOVED the SSR comparison exactly what I was looking for ! !
      Good point on Rust servers. I'll keep up with Rust and Zig tho, genuinely interesting languages. Stay on the edge of speed prime, awesome content #blazingly_fast

  • @Xhisorz1
    @Xhisorz1 ปีที่แล้ว

    Nice content brother man

  • @AJ213Probably
    @AJ213Probably ปีที่แล้ว

    How I got into Rust, or my feet wet, was using Rust for Advent of Code. Did maybe 10 problems using Rust? Want to try making CLI tools too in fact for work!
    The only downside I see with Rust as a CLI tool is it's not interpreted. Meaning someone can't just edit the tool easily if your goal is small tools for work.

  • @deivitsalazar1991
    @deivitsalazar1991 ปีที่แล้ว +2

    I started my career with Javascript. Self taught. And I agree if you are started to code, start with Javascript. Especially for the job opportunities. I don't know any low level languages but I am definitely going to begin learning Rust! Do you have any tutorial recommendations?

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +2

      I have no strong tutorials. Too many lists is great. Jonhoo's yt content is great

    • @deivitsalazar1991
      @deivitsalazar1991 ปีที่แล้ว

      @@ThePrimeagen Thank you!

  • @Khari99
    @Khari99 ปีที่แล้ว

    100k celebration? It has to be the Elixir comparison drop.

  • @blessdarah1256
    @blessdarah1256 ปีที่แล้ว +1

    When ThePrimeagen speaks, I just listen and start working.

  • @luxurycondobbmg
    @luxurycondobbmg ปีที่แล้ว

    Django developer here and I am excited to learn Rust for the future

  • @vitorsantos6310
    @vitorsantos6310 ปีที่แล้ว

    But prime, what about functional programming?? I’m getting into Ocaml recently and it’s just soo niceeee!! The type inference on that is crisp

  • @RogueTravel
    @RogueTravel ปีที่แล้ว +4

    See you all the Rust Conf in Portland this Friday 🔥

  • @oskrm
    @oskrm ปีที่แล้ว +6

    Meta, get your hands off my rust

    • @sunny7268
      @sunny7268 ปีที่แล้ว +2

      Amen to that my brother !!!

  • @andrews8733
    @andrews8733 ปีที่แล้ว

    100k idea: we see you dress up in crab and gopher costumes, whilst programming rust and golang.

  • @rolandinnamorato1953
    @rolandinnamorato1953 ปีที่แล้ว +8

    Rust could be eventually be a replacement for C or C++ but it's not even close to mature enough of an ecosystem to be 1:1 alternative today. This applies to Rust, Zig, Odin, Jai. The one thing I keep noticing is how Rust projects get abandoned after a short time. This is concerning.

    • @Luxalpa
      @Luxalpa ปีที่แล้ว +1

      From what I see most Rust projects don't get abandoned, they are simply complete.

    • @ko-Daegu
      @ko-Daegu ปีที่แล้ว

      @@Luxalpa cope harder

  • @peter8261
    @peter8261 ปีที่แล้ว +1

    I love that lil crab.

  • @jaiv
    @jaiv ปีที่แล้ว +1

    i think it would be so cool if an ecosystem like react and react native fosters in rust. so that we can have monorepos of 100% rust for backend and rust application code that builds cross platform to native websites & apps

    • @AeldraNightwood
      @AeldraNightwood ปีที่แล้ว

      For React-like UI there is Yew and running on web is done via WebAssembly.

  • @rodelias9378
    @rodelias9378 ปีที่แล้ว

    Rust is out of this world… and so is ThePrimeagen

  • @zym9785
    @zym9785 ปีที่แล้ว +1

    What is an example of a front end application that I would choose rust over JavaScript in the future you envision? I’m a backend dev and would love to see a compiled language dethrone or simply be an alternative to js but js seems to be quick enough and easy to develop in making it a natural choice for most solutions in my mind.

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว +1

      most front end applications are gated by 1. shitty javascript perf, 2. dom. Wasm applications will be shitty interop with js / dom, and dom perf. So writing a good wasm application is definitely trickier in some sense, but easier in another.
      I personally find that the biggest thing preventing people from having a good experience with an application has nothing to do with dom perf, its the env that tends to be bad (displaying 1k items is always slow, for every language).
      I am going to use Yew (there are others i want to try out) to pretty much do everything

    • @zym9785
      @zym9785 ปีที่แล้ว

      @@ThePrimeagen Thanks for taking the time to reply.

    • @zym9785
      @zym9785 ปีที่แล้ว

      @@ThePrimeagen Also this may be asking too much so feel free to ignore but a video of rust vs c# or c# included in one of your next benchmark videos would be awesome.

  • @mirkosedda3196
    @mirkosedda3196 ปีที่แล้ว

    Lets go with a crazy rust tutorial for 100k subs 🚀 just blaaazingly faaaast 🚀

  • @notlessgrossman163
    @notlessgrossman163 ปีที่แล้ว

    I'd like to see Primagean do videos series with Rust the same way as done with Vim. 6 part series Rust from noob to rocket launch

  • @__samuel-cavalcanti__
    @__samuel-cavalcanti__ ปีที่แล้ว

    How about the new blazing fast dart back-end, should dart be better than go ?

  • @fabricio5p
    @fabricio5p ปีที่แล้ว +2

    In the ideal world we replace 'public static void main' with 'fn main'

  • @Shaunmcdonogh-shaunsurfing
    @Shaunmcdonogh-shaunsurfing ปีที่แล้ว

    Just finished developing a backend for an app in Rust using Solana. Rust was great. Solana was a pain.

  • @chadelofson1637
    @chadelofson1637 ปีที่แล้ว +1

    I have definitely seen more roles being promoted for Rust. There is a company that I am interested working at that wants Rust.

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว

      yeah, its definitely becoming a move now for companies.

  • @RimantasBelovas
    @RimantasBelovas ปีที่แล้ว

    I liked this video 3 times!!! Is that enough? 🤔 Or should I like it one more time? 👀

  • @blackfrog1534
    @blackfrog1534 ปีที่แล้ว

    hmm, do you think its worth to do golang then rust or is it just time inefficient and one should just go with rust all the way?

  • @charlesbcraig
    @charlesbcraig ปีที่แล้ว

    Currently leaning like MJ in Smooth Criminal into Rust

  • @emenikedaniel
    @emenikedaniel ปีที่แล้ว +9

    Golang is just like a supportive wife. When you are done having fun with other languages ,you will always come home😂

    • @emenikedaniel
      @emenikedaniel ปีที่แล้ว +3

      @@alexandrep4913 Right, i absolutely agree with you. It is even easy to reach into net/http and spawn up a development server. I cant say the same for Rust. The average Golang developer pay is really okay & there is a good career path in addition to Devops. I'm absolutely content with GoLang.

  • @Kinos141
    @Kinos141 ปีที่แล้ว

    I have a worry about Rust. I saw a video where a guy Rust vs C#, he was trying to open a missing file. C# errored out naturally, but Rust gave an error and completed anyway.
    What worries me is that what if the component is missing in your code, and Rust just runs through anyway? That could be hours running off of bad or missing data. Am not sure if I would want that.
    I'd rather have my program complain to me so I can fix it.

  • @marcelofernandes6501
    @marcelofernandes6501 ปีที่แล้ว

    Stupid question: Aren't smart pointers a pretty nice way to diminish mem segmentation faults? What does Rust actually add to the bag? I understand it does compiling time checks, but isn't it also bloating the compiler? I don't mean to be offensive, legit question though

    • @ThePrimeagen
      @ThePrimeagen  ปีที่แล้ว

      smart pointers, say unique pointers, require atomic operations per move. I have heard (though not verified) that atomic operations can take MANY cpu cycles (400 is what i heard ,though again, no idea how true that is).
      Rust moves that to compile time. That is a HUGE perf win.

  • @jaimesoad
    @jaimesoad ปีที่แล้ว +2

    On my part, I'm going to focus on my own made up stack LGTM:
    Linux
    Go
    MySQL
    TypeScript (for pure frontend)
    I'm glad that to this day I get to choose the platforms to develop my personal projects aside from using LAMP

    • @kebien6020
      @kebien6020 ปีที่แล้ว

      Missed opportunity to call it LGTM

    • @jaimesoad
      @jaimesoad ปีที่แล้ว

      @@kebien6020 fixed

    • @kebien6020
      @kebien6020 ปีที่แล้ว

      @@jaimesoad The fix LGTM. Approved