Why Rust is NOT a Passing Fad...

Поділитися
Вставка
  • Опубліковано 22 тра 2024
  • Is Rust just another passing fad language? Will the hype be short-lived and everyone retreats back to C languages here in a few years?
    I don't think so. Even though the slogan "re-write it in Rust" has become a joke and the basis of many memes, I want to argue that all things, everywhere, ARE being rewritten in Rust.
    We'll talk about it in this video.
    Join the Imposter Devs community - imposterdevs.com
    Timestamps
    00:00 Intro
    00:56 Examples of Rust adoption
    04:34 Rust devs are MORE productive
    07:33 Rust isn't the answer to everything
    What do you think? Leave a comment and let's discuss.
    Updated Udemy deals - travis.media/udemy
    ** Career Path Coding Tracks **
    Web Developer - geni.us/jBigBd
    Software Engineer - geni.us/AbMxjrX
    Machine Learning - geni.us/GporLlT
    Python Developer - geni.us/tv2FJBU
    DevOps Engineer - geni.us/MgHtJ
    ** My Coding Blueprints **
    Learn to Code Web Developer Blueprint - geni.us/HoswN2
    AWS/Python Blueprint - geni.us/yGlFaRe - FREE
    Both FREE in the Travis Media Community - imposterdevs.com
    My microphone - amzn.to/3sAwyrH
    ** I write regularly **
    travis.media
    ** FREE EBOOKS **
    📘 travis.media/ebooks
    LET'S CONNECT!
    📰 LinkedIn ➔ / travisdotmedia
    🐦 Twitter ➔ / travisdotmedia
    🙋🏼‍♂️ Website ➔ travis.media
    #rustprogramming #rustlang #rust
    ** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
  • Наука та технологія

КОМЕНТАРІ • 228

  • @Heater-v1.0.0
    @Heater-v1.0.0 Місяць тому +68

    Having worked with C and and C++ for decades and other complied languages on occasion I really don't understand how anyone can describe Rust as ugly. As I took my first steps with Rust I was happily surprised it fixed a lot of ugliness of C and C++.

    • @llothar68
      @llothar68 Місяць тому +6

      Because you don't need to use the ugly side of C++ too much if you just write application level code. The insanity of C++ comes when you want to write the fastest possible general purpose library.

    • @HonsHon
      @HonsHon Місяць тому +3

      C is still nice imo. It really does have its place. C++ on the otherhand (or, at least modern C++) is scary.

    • @HonsHon
      @HonsHon Місяць тому

      ​@@llothar68 This is probably true.

    • @atheistbushman
      @atheistbushman Місяць тому +5

      I have always found the C syntax ugly and the order of function signatures the wrong way round.
      And I always hated the extra () parenthesis with if statements
      C++,
      int divide(int a, int b) {
      if (b == 0) {
      throw std::runtime_error("division by zero");
      }
      return a / b;
      }
      Rust:
      fn divide(a: i32, b: i32) -> Result {
      if b == 0 {
      return Err(String::from("division by zero"));
      }
      Ok(a / b)
      }

    • @michelnielsen2855
      @michelnielsen2855 18 днів тому

      personally I find Rust ugly, but C and C++ especially, are even more ugly to me. So much syntax! urgh. (anyone who have worked seriously with any Lisp flavour will understand my viewpoint, others will just be confused)

  • @meyou118
    @meyou118 Місяць тому +69

    i luv rust and ive been programming for 40+ years

    • @fabienpenso
      @fabienpenso Місяць тому +10

      30y long pro coder here. And love it as well.

    • @manoharmeka999
      @manoharmeka999 Місяць тому

      In what use cases?

    • @fabienpenso
      @fabienpenso Місяць тому +2

      @@jazzycoder I got job offers every week, without asking, at higher pay I've never had in my career. But you do you.

    • @samarnagar9699
      @samarnagar9699 Місяць тому

      Can you get me an internship I'm good NGL

    • @jazzycoder
      @jazzycoder Місяць тому

      @@fabienpenso Of course you, can i sell you a bridge?

  • @talwaar007
    @talwaar007 5 днів тому +2

    Been coding Java ever since the first release way back in late 1995. Have decided to learn Rust. Wish me luck!

    • @curio78
      @curio78 17 годин тому

      Rust is an ugly language syntax. but if you need a portion that is in native for some reason, Rust is the only option currently. The only problem is total lack of IDE integration like you have with C. C always had an IDE, and debug support, even during dos days. But that syntax is just plain ugly and hard to read.

  • @doomguy6296
    @doomguy6296 Місяць тому +7

    Rust for web is a bit general term. Rust for backend is great for best througput, minimalist containers , security and even simplicity. How come security and simplictly? Because Rust forces you not to skip the edge cases and keep your code consistent (you may have other language who also allow that. Rust is one of them), and simplicty, because it's damn easy and minimalist to set up. No bloat software and heavy dependencies to carry around. Just compile with cargo. Don't bother with dependencies

  • @j-p-d-e-v
    @j-p-d-e-v Місяць тому +19

    Even though Im having a hard time in Rust. As I learn more, Im loving it more.

    • @raidensama1511
      @raidensama1511 5 днів тому

      Stick with it and don’t put yourself on any time deadline. Just do better than you did yesterday.

  • @alphonsemarcus3650
    @alphonsemarcus3650 27 днів тому +3

    the only reasons why I use Rust is the modern standard library, build system, package manager and the safety guarantees are nice... but doing anything a bit complicated in Rust is total insanity, Rust is too alien and weird and pretty much a modern C++. Zig looks more promising, a simple language like C, but modern and with a bit more safety. Rust is for the insane, you need to change how you program entirely to appease the compiler... ownership, lifetimes?? puff give me a breaak

  • @juanantonionavarrojimenez2966
    @juanantonionavarrojimenez2966 19 днів тому +4

    One of the most important feature of Rust is that it does not come from Google.

  • @kevincodes674
    @kevincodes674 Місяць тому +2

    Yes, I like Rust very much. Using it currently to build a website for a university project. I completely understand what you mean when you say there are easier tools for the job lol. I could build the backend much faster with Django, but where's the fun in that

  • @r2com641
    @r2com641 Місяць тому +29

    Let’s face facts:
    1) if I am writing low level program which interfaces memory and registers or which is metal level embedded layer, I can’t use regular borrow checker anymore - correct? I have to use “unsafe” block inside which most of those rust checks are not done anymore
    2) we need language which would be f-ing SIMPLE, we don’t want bloated c++ where specification together with std lib is 1800 A4 papers. But rust is now getting bloated and is almost as hard as c++ (harder)
    3) we don’t want macros! At least macros in rust are not as bad and disastrous as in c c++ but they are overtly complex and not needed
    That is why I think Zig is a better way to go. What Rust achieved is a big hype, and that government directives don’t determine how successful language will be in future. They did same thing promoting Ada many years ago and where is now Ada? Not being used much
    Thankfully we got Zig and Odin to choose from and we are not forced to use language with identity problems

    • @TravisMedia
      @TravisMedia  Місяць тому +2

      Great to hear your reasoning and perspective.

    • @stendeter623
      @stendeter623 Місяць тому +2

      I feel like zig has a great future, but they need to put some more work in

    • @r2com641
      @r2com641 Місяць тому

      @@stendeter623 and what do you think they are doing? Not working hard enough or what? I see designer himself on chats responding to tech questions and working as late as by 1:30am every day including weekends.

    • @oserodal2702
      @oserodal2702 Місяць тому +4

      That's just untrue, the borrow checker still exists even in unsafe contexts (You can't pass around references willy-nilly for example). However, you can trivially sneak past the borrow checker with dereferencing a pointer, `UnsafeCell`, `std::mem::transmute` (please don't do this one, specifically), etc.,

    • @MrTrollland
      @MrTrollland Місяць тому +7

      I’m tired of people pretending that unsafe throws out all safety guarantees out the window. That’s not true. There’s 5 specific things unsafe lets you do: call unsafe methods, implement unsafe traits, use mutable static variables, access union members and dereference raw pointers. That’s it.
      Borrow checker still works, you still need to exhaustively match an enum, there’s still bounds checking on data structures, etc.

  • @liquidmobius
    @liquidmobius Місяць тому +28

    As one of those people who used to hate Rust (for no particular reason I might add), I'm now a convert. C/C++ are still great for teaching, but no longer belong in critical production software, and you could certainly argue in any production software in general. The diehard C/C++ crowd will wake up one day and realize that the industry has passed them by. Only then will they say, I was wrong, Rust isn't just a fad.

    • @TehKarmalizer
      @TehKarmalizer Місяць тому +4

      Not sure if serious or trolling…

  • @alexandervantrijffel9435
    @alexandervantrijffel9435 Місяць тому +4

    You wouldn't choose Rust to build websites? I'm building multiple web apps with micro frontends where most of the micro frontends are served by Rust. It's a delight to enjoy the benefits from Rust like functional programming, correctness guarantees and the limited need for debugging also for web apps..

  • @kieransweeden
    @kieransweeden Місяць тому +5

    Great video!
    The only minor thing I’d add is that I’ve seen a growing (albeit minor) adoption of Rust in the backend development space. Of course that’s anecdotal so take it with a pinch of salt. Additionally on a recent episode of the Rustacean Station podcast, an IntelliJ representative working on RustRover expressed that the sector of Rust development they’ve (IntelliJ) seen more growth and expansion in is in backend applications, which is pretty neat!
    Again this is all minor in the grander context of web development, just something worth noting.

    • @bruceritchie7613
      @bruceritchie7613 Місяць тому +1

      It's how I got I to Rust - rewriting a spark pipeline into one based on DataFusion which is Rust based.

  • @nickeldan
    @nickeldan Місяць тому +6

    I'm a devoted C developer and for a while my reply to Rust was "Just be a better programmer and don't write unsafe code". However, I've come to realize how naive that sentiment is. I'm not ditching C as 1) it's quite ubituitous and 2) Rust's runtime bloat bothers me but I feel that it's time I added Rust to my skillset.

    • @jazzycoder
      @jazzycoder Місяць тому +2

      You'll be back my friend, you might have left C but C hasn't finished with you yet. You'll soon workout that anytime you want to actually do anything in Rust you'll have to use unsafe mode (so you might as well just go back to C) but with terrible compile times. Also you are now relying on a zillion dependencies being installed with cargo, good luck with that if you're actually working on hardware or even system programming where we need security auditing....

    • @nickeldan
      @nickeldan Місяць тому +9

      I said, "I'm not ditching C".

    • @jazzycoder
      @jazzycoder Місяць тому +1

      @@nickeldan Good man!

    • @mrpocock
      @mrpocock Місяць тому +2

      I've done some bare metal rust with no runtime. It was a nice experience. To be honest, compared to python, java, js and friends, the size of the runtime is not big.

    • @nickeldan
      @nickeldan Місяць тому +1

      @@mrpocock Ah, I didn't know that was a thing.

  • @VigneshD25
    @VigneshD25 Місяць тому +1

    Rust feels hard for someone coming from HDL& C/C++ Background. Especially the concept of borrowing and scope which makes people try and drop it quickly before it becomes second nature.

    • @artxiom
      @artxiom 24 дні тому +1

      Borrowing is pretty similar to const references/move-semantics/RAII - pretty standard concepts in C++. The main difference is that the borrowing checker enforces certain invariants, rules that you can't break without using unsafe.

  • @amirmir3244
    @amirmir3244 13 днів тому

    Love your work Travis.

  • @huuhhhhhhh
    @huuhhhhhhh 27 днів тому

    I love Rust but I'm not convinced when using it for things where heavy use of async is required and/or web.
    I've always have this nagging feeling I should be doing parallelism but I haven't learned that yet 🤔
    Maybe be need a "Rust#"?

  • @zxyi9090
    @zxyi9090 Місяць тому +2

    I planning learning rust after getting well versed in functional programming paradigm. What do you think about my plan? Thanks

    • @Eugensson
      @Eugensson Місяць тому +3

      I am learning Rust after F#. The borrow checker is a bitch, other than that, it is okay.

  • @hm_kaiser
    @hm_kaiser Місяць тому +1

    Loving rust since 2018. I've coded various things including embedded and emulators, system libs and rest apis. Best ecosystem and community.

  • @tiaanbasson9092
    @tiaanbasson9092 Місяць тому +3

    I'm comfortable with C++. I don't personally have an issue with Rust. There is just a high chance i won't adopt it. There is a higher chance of me switching to Zig in the future when the third party libraries mature.

    • @jacobwilson8275
      @jacobwilson8275 2 дні тому

      Why not write code that won't crash at runtime?

  • @bernardcrnkovic3769
    @bernardcrnkovic3769 Місяць тому

    yes, installing packages always bothered me for being too slow... /s

  • @bruceritchie7613
    @bruceritchie7613 Місяць тому

    It's amazing to me the number of comments on videos like this one or comments on posts about rust that scream opinions that hardly seemed based in reality. Rust isn't perfect for sure but from my experience it's an improvement over what came before it. I feel that Rust will actually shine in the backend services space going forward as it's a good alternative to GC based languages.

  • @VincentGroenewold
    @VincentGroenewold Місяць тому +5

    I'm assuming that one of the reasons Rust development isn't a huge impact in productivity, is because the programmers are different from those used to Go and other languages. They are likely just more versed in complex, detailed languages and usually these are picked because those developers like the complexity and the language, while other languages are just easier and this created developers that are less versed in general.

  • @DM-pg4iv
    @DM-pg4iv Місяць тому

    Ive been learning it for 2 months and yeah I like it. Ima stick with it

  • @hebozhe
    @hebozhe Місяць тому

    Oh, cool! That thing you only ever have to do once every project is faster with a third-party install. Well, that seals the deal for me.

  • @lucasteo5015
    @lucasteo5015 Місяць тому +4

    I'm a junior kotlin backend dev, I'm really fascinated by kotlin immutability, thus I concluded that I will like rust and I am going learning it, in fact I'm actually half way through their rust book, the language is actually not that bad. yes, there exist some hard to grasp concepts but I think good programmer can overcome that.

    • @maximus1172
      @maximus1172 Місяць тому

      I love rust and was learning it but paused it for the moment and now I am learning Kotlin for job reasons. Will resume with when I am in a more stable position

  • @kelownatechkid
    @kelownatechkid 9 днів тому

    `uv` literally changed my programming life lol. Some extremely wacky package situations would take pip an hour to resolve but uv does it in under 2 seconds...

  • @thunken
    @thunken Місяць тому

    aesthetics are more important than speed?

  • @aucusticguitar8069
    @aucusticguitar8069 18 днів тому

    I feel like learning Rust has improved my C++ code safety tremendously. My ptsd from borrow checker warfare paid off.

  • @deathlife2414
    @deathlife2414 Місяць тому +7

    I am based developer. I like based language golang. Waiting for zig to hit 1.0

    • @r2com641
      @r2com641 Місяць тому

      Hopefully

    • @bionic_batman
      @bionic_batman Місяць тому +1

      > zig to hit 1.0
      Most likely not going to happen anytime soon but my bet it will be already production-ready for most of the use cases once they implement incremental compilation and also ditch LLVM

  • @timwhite1783
    @timwhite1783 Місяць тому

    For the record I love Rust and use it in a lot of my side projects. That being said it feels like I just had shit shoveled into my ears. So many of those metrics sound incredibly stupid. How do you even measure a 2x improvement in productivity? When you say you re-wrote the Go application in Rust and it was faster were benchmarks done? If so what specifically was benchmarked and what method was used? These things are relevant. Also when you say the team took just as much time to write it was it the same team? It's so much easier to write a program to solve a problem you've already solved. If I hired a team to write the same program twice in Java I would expect the second attempt to be faster to write and of higher quality than the first, because the team has learned from their prior mistakes.

  • @BeachFrontSolutions
    @BeachFrontSolutions Місяць тому +9

    The only problem I’ve had with building in Rust since I started in 2020 is convincing my team to write Rust
    This was resolved though once I rebuilt a large portion of our internal tool chain in Rust and increased its stability exponentially haha

    • @r2com641
      @r2com641 Місяць тому +1

      Cool story bro

    • @BeachFrontSolutions
      @BeachFrontSolutions Місяць тому

      @@r2com641 thanks glad you liked it

    • @BeachFrontSolutions
      @BeachFrontSolutions Місяць тому

      @@jazzycoder all code committed today is tomorrows tech debt, every line of code I write I hope will be deprecated in the future. Entire team is writing rust now though so I’ll take my “stunt productivity” to push us forward as a team and organization any day

    • @BeachFrontSolutions
      @BeachFrontSolutions Місяць тому

      @@jazzycoder I feel as though your comments are less about the actual experience I’ve shared here and are more of a projection of a poor experience you’ve had with either a company you’ve worked at or perhaps with team mates that are excited about about Rust.
      However to address your baseless claims against the reality of my teams experience - firstly no one was forced to write rust; in fact as our company trusts our engineers so much there are almost no restrictions placed so strictly on us that there would have been some sort of “YOU MUST WRITE RUST” proclamation - Secondly the literal point of my rebuild of a particularly cumbersome part of our internal tool chain was to show, exactly that rust is production ready within our product stack today and that the benefits can be realized with minimal additional effort.
      To speak to your claim of “10x” decrease in output and delivery; I think that is pretty hyperbolic, but most of my team during their ramp and spike periods with rust did experience a 2x at most decrease to their throughput but that was for maybe 3-4 weeks, which was completely planned for and reasonable. To say this makes our business suffer is pretty false for us also - in the last 8 months since our adoption of Rust as a full team we have released about 1.5x the normal amount of new features and most importantly we’ve seen roughly a 75% reducing is support issues raised post release. This was pretty much a roaring success for us, and again I’m sorry that your experience has not been the same but truly I feel that your criticism has less to do with Rust as a language and more to do with the environment in which you work.

  • @macolul
    @macolul Місяць тому

    How to keep up with the fast IT world

  • @dotfelixb
    @dotfelixb Місяць тому +9

    Zig zag Zig 🎉

    • @AdamFiregate
      @AdamFiregate Місяць тому +1

      Zig is cool as well but it has a long roadmap till it reaches 1.0.

    • @tiaanbasson9092
      @tiaanbasson9092 Місяць тому

      Agreed, I had a good experience with it. Only waiting on libraries to mature

  • @faticovers7892
    @faticovers7892 22 дні тому

    interesting video / thanks for sharing knowledge

  • @artxiom
    @artxiom 24 дні тому +1

    Rust is insanely good - but you need lot's of years of programming experience to appreciate what it's actually doing. I mean it was influenced by a wild mix of languages, like OCaml, C++ and Haskell. It's not easy to explain the "why" to people that just want to write easy/fast code, but once you get it you not only will write better code in Rust but in pretty much every other language.

  • @carsonjamesiv2512
    @carsonjamesiv2512 Місяць тому

    Interesting take on Rust.😃👍🎉

  • @ashrafuzzamankhalid3465
    @ashrafuzzamankhalid3465 18 днів тому

    Hi there. You really explained why rust is not going anywhere. Also, a lot of major companies are pushing it forward.
    Do you think, it can happen to Mojo as well? Or, mojo is or will surpass rust and be the industry standard.(I am not saying Rust is the industry standard right now)
    So, if a programmer with basic knowledge in programming choosing between these two languages. What option should they choose?
    What do you think?!!!

  • @AdilKhan-vf2es
    @AdilKhan-vf2es Місяць тому +3

    You give good advice but each week you tell us to learn something new. This takes weeks of effort. How are you doing this while maintaining a job?

    • @TravisMedia
      @TravisMedia  Місяць тому +5

      Did I say to learn Rust in this video?

    • @manny27392
      @manny27392 Місяць тому

      You do not need to know everything in order to have a job in IT. This video is more of an expression of his passion for IT rather than a full course for future jobseekers.

  • @dandychux
    @dandychux Місяць тому +1

    i’ve only been programming professionally for almost 3 years with JS/TS, Python, and C#. i just started learning Rust recently and i’m really loving it. i get why people say it’s hard but i’ve enjoyed better understanding lower level concepts and i feel like it’s improved my skills with every other language i write now too

  • @doriandd4648
    @doriandd4648 Місяць тому +11

    Wait. Google picked Rust over Go for a project?

    • @ilikegeorgiabutiveonlybeen6705
      @ilikegeorgiabutiveonlybeen6705 Місяць тому

      they do all kinds of shit language is literally an instrument to do the shit
      like when you nail the nails you wont choose a big ass hammer. or when you beat a metal rod into the dirt you will take a bigger hammer now

    • @TehKarmalizer
      @TehKarmalizer Місяць тому +5

      For some projects. A company that large doesn’t use one language for everything.

    • @bionic_batman
      @bionic_batman Місяць тому

      from what I understand Google actually doesn't use Go that much. They build most of their stuff in C++

    • @daniellundqvist2926
      @daniellundqvist2926 Місяць тому

      Of course, there are many cases where a GC is a show stopper.

  • @fojico1234
    @fojico1234 Місяць тому

    Wait a sec, what cargo for python, whoever had a performance issue with pip!!?

  • @ArcWeltraumpert
    @ArcWeltraumpert Місяць тому

    ruff is also written using rust.

  • @rvt9324
    @rvt9324 Місяць тому +1

    I think the syntax is nice 😳

    • @Phantom-lr6cs
      @Phantom-lr6cs Місяць тому +1

      yeah its so amazing ... amazingly crap

  • @sharanchakradhar
    @sharanchakradhar Місяць тому

    Yet, I cannot find a Junior level Rust job from months now. :(

    • @TravisMedia
      @TravisMedia  Місяць тому

      The Rust market isn't junior-friendly, currently.

  • @javadahmadian7782
    @javadahmadian7782 Місяць тому +1

    Sooooo right man , rust is future

  • @jocketf3083
    @jocketf3083 Місяць тому +2

    I find Rust a pleasure to use for web development. Axum is a pretty nice framework. The way parameters, state, and errors are handled leads to a very boilerplate free experience. It's also nice be able to build the whole thing into a single static binary.

  • @michaellatta
    @michaellatta Місяць тому

    It is more performant, and safer. Compiler error messages are great.

  • @antoniomartinez1799
    @antoniomartinez1799 16 днів тому +1

    The problem is that some people take rust like a religion and behave like fanatics.

  • @scottk3292
    @scottk3292 Місяць тому +1

    I'm a Python developer, and I've only lightly dabbled in C# and a litte Java. Now I'm really wanting to write my own real-time audio applications. To that end, I was about to dive in to learn C++ when a SW engineer friend recommended Rust. There is a VST (virtual instrument) library for Rust, so I wouldn't have to be =too= much of a trailblazer.
    Honestly, hearing about C++ memory leaks some 20 years ago really scared me away from the language. I can so easily imagine having finally built my dream synthesizer in C++, only to struggle with it running out of memory after 20 seconds of use.
    I know that for real-time synthesis I'll have to learn to write to audio buffers in the stack, but at least Rust makes me feel a bit safer when venturing into this.

    • @peter9477
      @peter9477 Місяць тому +2

      There's absolutely no need to put your buffers on the stack. Unless you really want to.

    • @scottk3292
      @scottk3292 Місяць тому

      @@peter9477 Interesting... I would've thought that the algorithms would be more limited (slower) if the data was in the heap, but maybe not. Like I said - a whole new world for me. Thanks for the advice, BTW.

    • @peter9477
      @peter9477 Місяць тому +3

      @@scottk3292 You could statically allocate a bunch, or heap allocate in advance. As long as you don't need to keep allocating and deallocating on the fly there will be no significant difference in cost wherever they are. It would be unusual to need to do continuous high performance audio processing (as opposed to recording) yet also require dynamic allocation as the sampling occurred. Precalculate required buffer count in advance.

    • @scottk3292
      @scottk3292 Місяць тому

      @@peter9477 Fantastic... I'm already learning. Thanks for your help, Peter. This makes good sense.

  • @johnmckown1267
    @johnmckown1267 Місяць тому

    Hum, my tool box has a hammer. Don't need those other tools, like a screwdriver or a saw. 😅

    • @jacobwilson8275
      @jacobwilson8275 2 дні тому

      Rust is the toolbox tbh. It's high and low level.

  • @elirane85
    @elirane85 Місяць тому +3

    I think the main thing that makes Rust awesome is that it might be harder to get your code to compile then c/c++, but once it does, it's much harder to shoot yourself in the foot

  • @daphenomenalz4100
    @daphenomenalz4100 Місяць тому

    Rust is great for building something you want to exist for long and be performant even after years.
    Go can be used for the same in most cases as it's also really performant just like rust but faster and easier to write.
    But people probably just love rust more xD, so companies are switching to it.

  • @YannMetalhead
    @YannMetalhead 20 днів тому

    Good video!

  • @srivatsa1193
    @srivatsa1193 Місяць тому +3

    Mojo and Rust can coexist. I want to do all things AI in python -> Mojo and the rest of all my development work in rust. Recently, Microsoft Research released AICI which is an AI tool that sits between the model and the controller in the web framework. I really want to see Rust and AI come together.

    • @llothar68
      @llothar68 Місяць тому +1

      Unless you ever have to deploy your AI in an app to run locally. All this environments are nice but it's such a pain in the arse to make a deployment outside your controlled server world.

  • @HTJUSA
    @HTJUSA Місяць тому

    Great breakdown, thanks Travis!
    Edit: 😮 Just caught your shoutout! 🫡💯

  • @user-tb4ig7qh9b
    @user-tb4ig7qh9b Місяць тому +1

    There is a one point discord uses OTP and writting nif on beam and if the nif error it will crash the beam so that is the most important reason on why using rust in the first placd

  • @SasiKumar-no8mx
    @SasiKumar-no8mx 19 днів тому

    Regardless of whether it is safe or unsafe, Rust's type system is far better than that of any mainstream language you can name (be it C, C++, Java, or Python).

  • @michelnielsen2855
    @michelnielsen2855 18 днів тому

    I dont understand why people are whining about rewrites.. Just imagine how many heart-bleeds et al that are hiding out there that might be discovered by a rewrite, and if we can rewrite using a tool where the computer can pair program with us then even better. To me, a serious type system and type checker is like pair programming with the computer.

  • @joshuasanders4302
    @joshuasanders4302 Місяць тому

    "Why would companies write their stuff in rust, if they think it's gonna go away in 10 years"
    Pearl has left the chat

  • @kqvanity
    @kqvanity 10 днів тому

    Why would you consider rust not good for web backend stuff?

    • @TravisMedia
      @TravisMedia  9 днів тому

      Oh it's good for web. Just not as mature as other decades-old web-tools. Therefore a new learning curve, new tools, etc. Would take more time to build if time is an issue, etc.

    • @kqvanity
      @kqvanity 9 днів тому

      @@TravisMedia I as trying to learn it for backend development, and even though I like rust more, everyone seems to favor go instead, so I'm a bin in a dilemma

  • @zhexymusic
    @zhexymusic Місяць тому

    Okay, let me ask the following: if we already have C and it's fast, why would we need something like Rust? Why not to write necessary libraries to be productive? And the last thing, good LSP with C can act as compiler in Rust and shout at programmer for making some sophisticated mistakes, why not? 🙂

    • @artxiom
      @artxiom 24 дні тому

      Because C/C++ is responsible for the majority of exploits and vulnerabilities maybe? Also C lacks a lot of features, and modern C++ can be as cryptic (if not more so) than Rust.

    • @zhexymusic
      @zhexymusic 24 дні тому

      @artxiom do we need features, if they are predominant way to spawn vulnerabilities? And yet, vulnerabilities mostly are not dependent on the language but rather runtime and environment. So, my question still is - is it the problem of language or, rather, people who design software? Your feedback is appreciated.

  • @olafschluter706
    @olafschluter706 Місяць тому +4

    My experience with Rust after putting some month into learning it: the learning curve is more challenging, but manageable. You may spend more time writing code, but you will almost never be in the need to debug the code, once it got accepted by the compiler, which results in a faster development overall. Rust inspires you to do more FP-like coding. Eventually thinking like the borrow checker becomes natural. Iterators in Rust are extremely powerful and fast. Performance of Rust equals that of C and C++. Multithreading isn't scary anymore. And the trait concept is working surprisingly well. Adding features to foreign types is super-easy in Rust.
    On the job I am working with legacy C code implementing an ipsec vpn stack in my current project. I do not have the budget and time to rewrite any part of that stack in Rust, but I would love to, and I noticed that learning Rust improved my understanding of multi-threading, which helped on occasions debugging the C code.

  • @jeffg4686
    @jeffg4686 Місяць тому

    because the 100 of us that learned it don't want it to be a fad

  • @jamesschmames6416
    @jamesschmames6416 Місяць тому +1

    I can't believe you didn't mention the biggest covert... Linux! If you can win over Linus Torvalds and Linux kernel developers who still use C, you must be doing something right.

    • @Phantom-lr6cs
      @Phantom-lr6cs Місяць тому +2

      linux works without crap rust perfectly . so don't put something crap langauge like ruST XD

  • @usercommon1
    @usercommon1 Місяць тому

    > Rust syntax is kinda ugly
    meanwhile
    template

  • @alejandroioio6784
    @alejandroioio6784 Місяць тому

    Yes it is

  • @dranon0o
    @dranon0o Місяць тому +7

    Cope
    It's because there were no real alternative
    Zig is coming
    Go and Zig works perfectly together
    Rust did so many bad design mistakes and will sadly take the thousand cut way
    I don't want to be part of the people that will have to go back to Rust code in 40 years from now
    Rust is simply not good enough, it is interesting and providing good concepts but not good enough
    C++ was a mistake
    C was too weak and too simple
    At least, Rust started a good conversation in the industry
    But Zig is going to end the conversation

    • @MrTrollland
      @MrTrollland Місяць тому +2

      Name 5 design mistakes in rust

    • @user-qt5hy3vn5p
      @user-qt5hy3vn5p Місяць тому

      ​@@MrTrollland
      1. Rust is not Go
      2. Rust is not Zig
      3. Rust is not primitive as Go
      4. Rust is not primitive as Zig
      5. Rust is harder than Zig and Go. And learning Rust is very hard task for my gomonkey's brain.

  • @ErrUndefinedVariable
    @ErrUndefinedVariable Місяць тому

    Mojo is faster than Rust

  • @johnmckown1267
    @johnmckown1267 Місяць тому +1

    I am a 71 year old programming junky. I just retired after 44 years in IT. I totally agree that Rust is very good, from what I've seen. But it depends on what you're doing. I have done uncountable "one off" projects to quickly produce a time critical report. I used a scripting language, like a Bash script or awk or Perl to get the results to the user. If it turns out that they need the report regularly, then I took the time to reimplement in a more efficient language like C.

  • @kkollsga
    @kkollsga Місяць тому

    Rust is really awesome for developing Python libraries. I’m building a small library for extracting data from spreadsheets and for multiple core cpu’s it’s up to 10-15 times faster than Pandas.

    • @peterradziewicz4685
      @peterradziewicz4685 Місяць тому

      Check out Polars library, it's a pandas-esque data frame lib written in rust

  • @richhenry8004
    @richhenry8004 18 днів тому

    It's basically the inverse of the argument against Python. Python is a slow, sloppy mess but people get stuff done with it and quickly. And you can't make a valid argument against that language if you are going to dismiss that productivity and accessibility out of hand. Or rather you can, but people are going to use it anyways, so what good were your criticisms in the first place?
    In the same vein, Rust is a fast, safe systems language. But you don't get to ignore the ugliness of that lifetime syntax and the productivity costs that come with it. And what good does your cheerleading do if people don't reach for Rust when they write a new application?
    Rust gets used when the benefits outweigh the pain. And for many, many applications it will never reach that threshold.

  • @thunken
    @thunken Місяць тому

    why not make Rust beautiful and then all the python people will come across because aesthetics are important

  • @DirkArnez
    @DirkArnez Місяць тому +1

    When M$ use Rust in their Windows kernel but Windows 11 suck even more

    • @peter9477
      @peter9477 Місяць тому +1

      Correlation does not imply causation.

    • @r2com641
      @r2com641 Місяць тому

      @@peter9477it does according to the explanations from rust fanboys regarding of why we must use it

    • @DirkArnez
      @DirkArnez Місяць тому +1

      @@peter9477 i mean bad Windows product design and vision should harm M$ more than bugs / flaw in Windows kernel hahahaha

    • @peter9477
      @peter9477 Місяць тому +1

      @@DirkArnez Ah, I understand now.

    • @stzi7691
      @stzi7691 Місяць тому +1

      Well, as long as they do not get rid of DOS there is no hope, regardless of the language used 😊

  • @irlshrek
    @irlshrek Місяць тому

    I LOVE rust

  • @delicious_seabass
    @delicious_seabass Місяць тому +29

    Most C devs have nothing to say about Rust because we simply don't care about it. Words cannot express how little we care. 😎

    • @nanonkay5669
      @nanonkay5669 Місяць тому +12

      So why are your fellow C devs hating on rust?

    • @delicious_seabass
      @delicious_seabass Місяць тому

      @@nanonkay5669 They aren't my 'fellows' as we aren't a community, but sounds just like your typical neckbeareds with lisps.

    • @paradoxicalcat7173
      @paradoxicalcat7173 Місяць тому

      Because of what Rust represents: idiots who can't write software who need crutches to stop them doing dumb sh*t. Learn how to write software!!!

    • @AnythingGodamnit
      @AnythingGodamnit Місяць тому +11

      Don't care enough to hang out and shitpost on Rust YT videos 🙄

    • @oserodal2702
      @oserodal2702 Місяць тому +4

      Fair, but my interpretation of the "C people that actively hate Rust" is that they are actually C++ devs in disguise, cause actual C people mostly live under rocks anyways, still using C99.

  • @sandrosandro6430
    @sandrosandro6430 Місяць тому

    Also Linux should be rewritten in Rust

  • @iury664
    @iury664 Місяць тому

    it is not so ugly than Java

  • @stefanalecu9532
    @stefanalecu9532 Місяць тому

    Wait till the Rust soydevs find out about Ada and Spark 😂

  • @one_step_sideways
    @one_step_sideways Місяць тому

    Yes it is. It's cope

  • @imlassuom
    @imlassuom Місяць тому

    💩🦀. 🌹🦎

  • @paradoxicalcat7173
    @paradoxicalcat7173 Місяць тому +1

    Rust may not be a passing fad, but it doesn't change the fact there are too many idiots writing software who shouldn't be.

  • @mrpocock
    @mrpocock Місяць тому

    I can't see rust going anywhere. It is still improving as a language and platform. Even badly written rust is 90% as fast as c. And it is tons safer to code with than c. I can write correct rust. I can't write correct c.

  • @aipujols
    @aipujols Місяць тому +1

    According to MIT technology review:
    "Rust has become one of the hottest new languages on the planet-maybe the hottest. There are 2.8 million coders writing in Rust, and companies from Microsoft to Amazon regard it as key to their future."
    It's really game-changing.

    • @r2com641
      @r2com641 Місяць тому

      OMG. WoooooW really?

  • @saabirmohamed636
    @saabirmohamed636 Місяць тому

    I love rust , in my opinion it should be compulsory learning for devs.
    (it solidifies programming concepts, and you realise how unsafe your code can be.)
    to me its not ugly ... its elegant.
    the one liners are amazing
    as time goes you end up patching and fixing your code ..and the solutions end using rust concepts anyways,
    but in rust you just end up forced to write good code 1st.
    its a bit difficult ...but should be at least learnt.
    definitely not a passing fad

  • @irlshrek
    @irlshrek Місяць тому

    I liked you until you started talking about crypto

  • @tomwilliam7299
    @tomwilliam7299 Місяць тому

    If Microsoft support rust, then Why VS does not support rust 🤔🤔🤔🤔

    • @peter9477
      @peter9477 Місяць тому +3

      Doesn't it though?

    • @tomwilliam7299
      @tomwilliam7299 Місяць тому

      @@peter9477 yes why

    • @pnk4996
      @pnk4996 Місяць тому +1

      What r u talking about bro

    • @tomwilliam7299
      @tomwilliam7299 Місяць тому

      @@pnk4996 If Microsoft support rust, then Why VS does not support rust

    • @tomwilliam7299
      @tomwilliam7299 Місяць тому

      @@jazzycoder Yes you are right that C and C++ will still alive for long time but in my opinion Rust is not a very good language but still better than C++ at least because C++ become a mess and every update for it become more mess one man from C++ standard admit that C++20 has a lot of bad things and they did not experiment it. More over Rust has better environment than C, C++, for example adding a library in C or C++ is a hell while in Rust is so easy, the error message in Rust compiler is much better, the package manager is much better, ... etc. the environment of a language may be more important than the language itself. Actually, I hope big company move to Rust because C++ cannot be fixed at all. for me, even C is better than C++.

  • @sil778
    @sil778 Місяць тому +4

    Dead in a few years? Rust its already dead.
    Rust is 20 years old and hardly find any applications made in rust.

    • @Phantom-lr6cs
      @Phantom-lr6cs Місяць тому

      this people think cuz microsoft and google put some millions in it rust will become loved by everyone WHILE IT HAS CRAP SYNTAX LOLZ .at least c++ gives you everything you want (you can use its own complex syntax or just use functions/classes and structs without its own complex syntax without operator overloadings and etc etc nobody forces anyone to do anything) even its own problems can be fixed easily it's just they care about old code otherwise they could fix c++ in a days and i'd love to see what will happen to this crap RUST then which cannot even live without c/c++ cuz its based on either gcc or LLVM XD

    • @user-qt5hy3vn5p
      @user-qt5hy3vn5p Місяць тому

      Of course it is hardly to find, if you're closed in your tiny C++ hole 😂

    • @joseoncrack
      @joseoncrack Місяць тому +2

      It's true that, considering its whole history, it's almost 20 years old, although the first official version is considered to have been released in 2015, so about 9 years ago. If anything, despite heavy "marketing" and a lot of hype everywhere, it's seeing very slow adoption in practice.
      I don't know what its future holds, as I don't have a crystal ball. My personal opinion at this point is that it's a dead end. And I think people should not touch it for anything serious until it at least getsan official written specification, which it still doesh't have (although I know they're working on it.) On corolloary issue is that if you use Rust, you're 100% tied to the Rust foundation. Most other "mainstream" languages have standards (or at least open specifications) and multiple toolchains from multiple organizations/projects.
      One similar situation was found with Java for a pretty long time, and I think it wasn't good either. Incidentally, Java is declining and soon to be dead IMO.

  • @alcar32sharif
    @alcar32sharif Місяць тому +3

    Rust has great ideas. But the implementation of this ideas is sometimes mediocre.

    • @pnk4996
      @pnk4996 Місяць тому +1

      Name one

    • @stzi7691
      @stzi7691 Місяць тому

      Like in any language 😮‍💨. I think Rust just sucks less so far.

  • @user-gh4lv2ub2j
    @user-gh4lv2ub2j Місяць тому +1

    Here just let me recompile my program and i can't link libs in **30 min later*** "Hello World" but with libs!
    Yeah i'll pass. I am not afraid of memory management because I can actually code.

    • @henrymaddocks984
      @henrymaddocks984 Місяць тому +5

      Ask your mom to buy you a faster computer

    • @peter9477
      @peter9477 Місяць тому +1

      Tell us you've never actually used Rust, even for hello world. It's not that slow compiling, especially after the first time. For hello world maybe a few seconds.

    • @r2com641
      @r2com641 Місяць тому

      Bingo. if programmer is idiot he gonna write bad program in any language. Dumb rust community makes it look like memory problem is the only problem we have today that needs to be solved in programming

    • @r2com641
      @r2com641 Місяць тому

      @@henrymaddocks984I can’t believe that your comment was liked by author of video, that explains his IQ level (and yours)

  • @curio78
    @curio78 17 годин тому

    No rust has a good idea, but the syntax is just plain ugly and unreadable. Only if they kept the urge to make that syntax so ugly it would have caught on much faster. And where is the ide for RUST??? if no one has any interest in building basic IDE for RUST ... it means no one is interested.

  • @greendsnow
    @greendsnow Місяць тому +3

    it is. no body wants to learn it. it's hard and slow to develop. high fail rate.
    if you're a beginner, intermediate level dev, you don't do rust.
    rust is for elites and guess what it's opposite of python.

    • @Flakelolz
      @Flakelolz Місяць тому +3

      I was able to learn how to program when I decided to learn Rust and the Bevy game engine. Actually needing to think about how things work more in-depth helped me tremendously. Previously I was learning with C++, JavaScript, python and C# but never really understood what I was doing. Now I can grasp most languages and their unique features whenever I decide to give them a try since I have a frame of reference with Rust and its features.
      Since Rust is so easy to setup and run I was able to focus and the incredibly helpful compiler errors in my code and understand what was happening under the hood. The official, free Rust Book is super nice for learning as well.

    • @Heater-v1.0.0
      @Heater-v1.0.0 Місяць тому +3

      I don't recognise any of claims as true. Rust is hard in the same way C and C++ are. But those relatively new to programming mange with C and C++ so why not Rust? Also, despite your claims of complexity I have written tones of Rust that is hardly more difficult to understand than Javascript or Python.

    • @pnk4996
      @pnk4996 Місяць тому +1

      I’m a beginner js dev and I had no problem learning it, sounds like a skill issue

    • @pnk4996
      @pnk4996 Місяць тому

      @@jazzycoder oh shit you’ve been watching me code? Bros in the fbi

    • @pnk4996
      @pnk4996 Місяць тому

      @@jazzycoder buddy liked his own comment lol

  • @Vorenus875
    @Vorenus875 Місяць тому +2

    From the guy that just said programming jobs as a whole was a passing fad 😂 I dare you stop making contrarian videos about tech and actually put out in informative videos. You can’t stop bashing people with degrees and grifting or your channel will die.

    • @TravisMedia
      @TravisMedia  Місяць тому +2

      🙄 if you got that conclusion from a past video I can’t help you then.

  • @developerdeveloper67
    @developerdeveloper67 27 днів тому

    There is no reason to write anything in anything but C, unless you are a bad programmer.

  • @user-gh4lv2ub2j
    @user-gh4lv2ub2j Місяць тому +5

    Rust can't be safe and fast. This secret has ruined a few web frameworks. Rust can't run libs unless you put it in unsafe mode; are you a script kiddie? I guess if you've never built a c program and linked in libraries, this seems arcane.

    • @llothar68
      @llothar68 Місяць тому +3

      @@jazzycoder It's a pain in the arse to write a wrapper for a rust library that uses the worldwide accepted C ABI. And then you want to ship this library with your app, setting up the rust environment and compiler again. Figuring out doing rust cross compile to Android and ARM architectures. And then your CTO comes in and ask about what dependencies you pull in. The easyness of cargo and the almost npm like library reuse madness is a failure not a benefit.