Тёмный

Why Rust is NOT a Passing Fad... 

Travis Media
Подписаться 224 тыс.
Просмотров 26 тыс.
50% 1

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.

Наука

Опубликовано:

 

4 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 239   
@Heater-v1.0.0
@Heater-v1.0.0 Месяц назад
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 Месяц назад
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 Месяц назад
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 Месяц назад
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 Месяц назад
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)
@juanantonionavarrojimenez2966
@juanantonionavarrojimenez2966 Месяц назад
One of the most important feature of Rust is that it does not come from Google.
@talwaar007
@talwaar007 17 дней назад
Lol. Hell yeah!
@lufenmartofilia5804
@lufenmartofilia5804 8 часов назад
Or worse, microsoft 😂
@meyou118
@meyou118 Месяц назад
i luv rust and ive been programming for 40+ years
@fabienpenso
@fabienpenso Месяц назад
30y long pro coder here. And love it as well.
@manoharmeka999
@manoharmeka999 Месяц назад
In what use cases?
@fabienpenso
@fabienpenso Месяц назад
@@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?
@j-p-d-e-v
@j-p-d-e-v Месяц назад
Even though Im having a hard time in Rust. As I learn more, Im loving it more.
@raidensama1511
@raidensama1511 18 дней назад
Stick with it and don’t put yourself on any time deadline. Just do better than you did yesterday.
@doomguy6296
@doomguy6296 Месяц назад
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
@SasiKumar-no8mx
@SasiKumar-no8mx Месяц назад
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).
@liquidmobius
@liquidmobius Месяц назад
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 Месяц назад
Not sure if serious or trolling…
@r2com641
@r2com641 Месяц назад
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 Месяц назад
Great to hear your reasoning and perspective.
@stendeter623
@stendeter623 Месяц назад
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 Месяц назад
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 Месяц назад
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.
@sophieedel6324
@sophieedel6324 10 дней назад
Rust makes no sense. Rust is very vulnerable to memory leaks. The checker overhead will often result in a bigger memory footprint and code considerably slower than C. Due to the complex syntax you waste a lot of time (btw, many international users can't even find those symbols on their keyboard, no one seems to realize this because no one field tests this language). A lot of time is wasted due to the slow compile time too. Time that would be better spent in C/C++ where IDE tools are better at catching memory issues than Rust can.
@logicaestrex2278
@logicaestrex2278 День назад
I didnt realize that wow. I like go and nim but I never knew rust had so many problems
@huuhhhhhhh
@huuhhhhhhh Месяц назад
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 Месяц назад
I planning learning rust after getting well versed in functional programming paradigm. What do you think about my plan? Thanks
@Eugensson
@Eugensson Месяц назад
I am learning Rust after F#. The borrow checker is a bitch, other than that, it is okay.
@alexandervantrijffel9435
@alexandervantrijffel9435 Месяц назад
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..
@kevincodes674
@kevincodes674 Месяц назад
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
@talwaar007
@talwaar007 17 дней назад
Been coding Java ever since the first release way back in late 1995. Have decided to learn Rust. Wish me luck!
@curio78
@curio78 12 дней назад
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.
@antoniomartinez1799
@antoniomartinez1799 28 дней назад
The problem is that some people take rust like a religion and behave like fanatics.
@smoked-old-fashioned-hh7lo
@smoked-old-fashioned-hh7lo 9 дней назад
javascript is by far worse but rust does have some toxic people
@nickeldan
@nickeldan Месяц назад
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 Месяц назад
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 Месяц назад
I said, "I'm not ditching C".
@jazzycoder
@jazzycoder Месяц назад
@@nickeldan Good man!
@mrpocock
@mrpocock Месяц назад
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 Месяц назад
@@mrpocock Ah, I didn't know that was a thing.
@artxiom
@artxiom Месяц назад
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.
@tiaanbasson9092
@tiaanbasson9092 Месяц назад
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 14 дней назад
Why not write code that won't crash at runtime?
@kieransweeden
@kieransweeden Месяц назад
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 Месяц назад
It's how I got I to Rust - rewriting a spark pipeline into one based on DataFusion which is Rust based.
@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.
@hm_kaiser
@hm_kaiser Месяц назад
Loving rust since 2018. I've coded various things including embedded and emulators, system libs and rest apis. Best ecosystem and community.
@EhdrianEh
@EhdrianEh 11 дней назад
I'm trying to introduce rust libraries into our company's python APIs where speed matters, and introducing AWS lambdas in rust. I figure that these small codebases and quick wins will find adoption within the company and slowly build a skilled labor pool within the company.
@amirmir3244
@amirmir3244 26 дней назад
Love your work Travis.
@VigneshD25
@VigneshD25 Месяц назад
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 Месяц назад
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.
@ashrafuzzamankhalid3465
@ashrafuzzamankhalid3465 Месяц назад
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?!!!
@deathlife2414
@deathlife2414 Месяц назад
I am based developer. I like based language golang. Waiting for zig to hit 1.0
@r2com641
@r2com641 Месяц назад
Hopefully
@bionic_batman
@bionic_batman Месяц назад
> 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
@bernardcrnkovic3769
@bernardcrnkovic3769 Месяц назад
yes, installing packages always bothered me for being too slow... /s
@VincentGroenewold
@VincentGroenewold Месяц назад
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.
@kaihusravnajmiddinov5413
@kaihusravnajmiddinov5413 Месяц назад
??
@DM-pg4iv
@DM-pg4iv Месяц назад
Ive been learning it for 2 months and yeah I like it. Ima stick with it
@jocketf3083
@jocketf3083 Месяц назад
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.
@thunken
@thunken Месяц назад
aesthetics are more important than speed?
@dotfelixb
@dotfelixb Месяц назад
Zig zag Zig 🎉
@AdamFiregate
@AdamFiregate Месяц назад
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
@lucasteo5015
@lucasteo5015 Месяц назад
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
@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.
@faticovers7892
@faticovers7892 Месяц назад
interesting video / thanks for sharing knowledge
@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.
@macolul
@macolul Месяц назад
How to keep up with the fast IT world
@AdilKhan-vf2es
@AdilKhan-vf2es Месяц назад
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 Месяц назад
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.
@aucusticguitar8069
@aucusticguitar8069 Месяц назад
I feel like learning Rust has improved my C++ code safety tremendously. My ptsd from borrow checker warfare paid off.
@kelownatechkid
@kelownatechkid 21 день назад
`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...
@BeachFrontSolutions
@BeachFrontSolutions Месяц назад
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 Месяц назад
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.
@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.
@Critiquetech
@Critiquetech 7 дней назад
Love or hate? MS using a language developed by Google? forget.
@carsonjamesiv2512
@carsonjamesiv2512 Месяц назад
Interesting take on Rust.😃👍🎉
@jamesschmames6416
@jamesschmames6416 Месяц назад
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 Месяц назад
linux works without crap rust perfectly . so don't put something crap langauge like ruST XD
@fojico1234
@fojico1234 Месяц назад
Wait a sec, what cargo for python, whoever had a performance issue with pip!!?
@rvt9324
@rvt9324 Месяц назад
I think the syntax is nice 😳
@Phantom-lr6cs
@Phantom-lr6cs Месяц назад
yeah its so amazing ... amazingly crap
@YannMetalhead
@YannMetalhead Месяц назад
Good video!
@ArcWeltraumpert
@ArcWeltraumpert Месяц назад
ruff is also written using rust.
@doriandd4648
@doriandd4648 Месяц назад
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 Месяц назад
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.
@dandychux
@dandychux Месяц назад
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
@javadahmadian7782
@javadahmadian7782 Месяц назад
Sooooo right man , rust is future
@michaellatta
@michaellatta Месяц назад
It is more performant, and safer. Compiler error messages are great.
@user-tb4ig7qh9b
@user-tb4ig7qh9b Месяц назад
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
@michelnielsen2855
@michelnielsen2855 Месяц назад
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.
@sharanchakradhar
@sharanchakradhar Месяц назад
Yet, I cannot find a Junior level Rust job from months now. :(
@TravisMedia
@TravisMedia Месяц назад
The Rust market isn't junior-friendly, currently.
@alphonsemarcus3650
@alphonsemarcus3650 Месяц назад
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
@usercommon1
@usercommon1 Месяц назад
> Rust syntax is kinda ugly meanwhile template
@kqvanity
@kqvanity 22 дня назад
Why would you consider rust not good for web backend stuff?
@TravisMedia
@TravisMedia 21 день назад
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 21 день назад
@@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
@srivatsa1193
@srivatsa1193 Месяц назад
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 Месяц назад
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.
@johnmckown1267
@johnmckown1267 Месяц назад
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.
@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
@johnmckown1267
@johnmckown1267 Месяц назад
Hum, my tool box has a hammer. Don't need those other tools, like a screwdriver or a saw. 😅
@jacobwilson8275
@jacobwilson8275 14 дней назад
Rust is the toolbox tbh. It's high and low level.
@Critiquetech
@Critiquetech 7 дней назад
Sometimes they feel like, "I have pliers and I have some nails , why do I need a hammer ? "
@elirane85
@elirane85 Месяц назад
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
@scottk3292
@scottk3292 Месяц назад
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 Месяц назад
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 Месяц назад
@@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.
@olafschluter706
@olafschluter706 Месяц назад
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.
@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 Месяц назад
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 Месяц назад
@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.
@alejandroioio6784
@alejandroioio6784 Месяц назад
Yes it is
@jeffg4686
@jeffg4686 Месяц назад
because the 100 of us that learned it don't want it to be a fad
@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
@ErrUndefinedVariable
@ErrUndefinedVariable Месяц назад
Mojo is faster than Rust
@HTJUSA
@HTJUSA Месяц назад
Great breakdown, thanks Travis! Edit: 😮 Just caught your shoutout! 🫡💯
@TravisMedia
@TravisMedia Месяц назад
🫡
@richhenry8004
@richhenry8004 Месяц назад
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
@sandrosandro6430
@sandrosandro6430 Месяц назад
Also Linux should be rewritten in Rust
@DirkArnez
@DirkArnez Месяц назад
When M$ use Rust in their Windows kernel but Windows 11 suck even more
@peter9477
@peter9477 Месяц назад
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 Месяц назад
@@peter9477 i mean bad Windows product design and vision should harm M$ more than bugs / flaw in Windows kernel hahahaha
@peter9477
@peter9477 Месяц назад
@@DirkArnez Ah, I understand now.
@stzi7691
@stzi7691 Месяц назад
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
@iury664
@iury664 Месяц назад
it is not so ugly than Java
@dranon0o
@dranon0o Месяц назад
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 Месяц назад
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.
@stefanalecu9532
@stefanalecu9532 Месяц назад
Wait till the Rust soydevs find out about Ada and Spark 😂
@curio78
@curio78 12 дней назад
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.
@mythbuster6126
@mythbuster6126 19 часов назад
RustRover is in active development. rust-analyzer for VS Code or neovim does the job just fine. When ir comes to syntax the program written in Rust is way less verbose than in Java / C#.
@curio78
@curio78 15 часов назад
@mythbuster6126 I just stumbled on d-lang. And I have to say, I am sold on it. It will be my language of choice for native compilable application. It's got everything I wished in a language for to native compilation. Java covers the server needs. 1. It's syntax is almost similar to java. 2. It's got the same single inheritance of Java and c#. Solving the issue of c++. 3. It's got Garbage collector just like GO. For memory safety. 4. It's got option for direct memory handling if you want to do that like c/c++ 5. It's language feature complete like c++ and c#. I am not counting Java as complete until they implement universal generics and value type, which should come as part of project Valhalla next year. I am really surprise why no one mentions this language. And even more I donot understand why GO even exists when D lang is already present.
@one_step_sideways
@one_step_sideways Месяц назад
Yes it is. It's cope
@delicious_seabass
@delicious_seabass Месяц назад
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 Месяц назад
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 Месяц назад
Don't care enough to hang out and shitpost on Rust YT videos 🙄
@oserodal2702
@oserodal2702 Месяц назад
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.
@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
@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.
@irlshrek
@irlshrek Месяц назад
I liked you until you started talking about crypto
@imlassuom
@imlassuom Месяц назад
💩🦀. 🌹🦎
@paradoxicalcat7173
@paradoxicalcat7173 Месяц назад
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.
@tomwilliam7299
@tomwilliam7299 Месяц назад
If Microsoft support rust, then Why VS does not support rust 🤔🤔🤔🤔
@peter9477
@peter9477 Месяц назад
Doesn't it though?
@tomwilliam7299
@tomwilliam7299 Месяц назад
@@peter9477 yes why
@pnk4996
@pnk4996 Месяц назад
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 Месяц назад
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 Месяц назад
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.
@eypandabear7483
@eypandabear7483 2 дня назад
Python only reached mainstream adoption in the 2010s, despite being older than Java. I remember it being the “trendy new choice” in scientific computing when I did my PhD. It still is in some areas where people are used to Matlab.
@aipujols
@aipujols Месяц назад
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?
@Vorenus875
@Vorenus875 Месяц назад
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 Месяц назад
🙄 if you got that conclusion from a past video I can’t help you then.
@alcar32sharif
@alcar32sharif Месяц назад
Rust has great ideas. But the implementation of this ideas is sometimes mediocre.
@pnk4996
@pnk4996 Месяц назад
Name one
@stzi7691
@stzi7691 Месяц назад
Like in any language 😮‍💨. I think Rust just sucks less so far.
@greendsnow
@greendsnow Месяц назад
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 Месяц назад
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 Месяц назад
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 Месяц назад
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
@user-gh4lv2ub2j
@user-gh4lv2ub2j Месяц назад
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 Месяц назад
Ask your mom to buy you a faster computer
@peter9477
@peter9477 Месяц назад
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)
@developerdeveloper67
@developerdeveloper67 Месяц назад
There is no reason to write anything in anything but C, unless you are a bad programmer.
@ChrisGoddardKiwi
@ChrisGoddardKiwi Месяц назад
Ok bro 😂
@user-gh4lv2ub2j
@user-gh4lv2ub2j Месяц назад
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 Месяц назад
@@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.
Далее
zig is the future of programming. here's why.
9:34
Просмотров 191 тыс.
I spent six months rewriting everything in Rust
15:11
Просмотров 397 тыс.
Это новый МАЗ X - могут же!
23:40
Просмотров 376 тыс.
КОРОЧЕ ГОВОРЯ, 100 ДНЕЙ В СССР 3
08:45
Why You’ll WASTE The Next 3 Years…
6:06
Просмотров 292 тыс.
Interview with Senior Rust Developer in 2023
9:46
Просмотров 629 тыс.
Do NOT do this when learning to code
6:44
Просмотров 13 тыс.
The Rust Standard Library is SO Confusing...Until Now!
11:45
How Rust rose to dominance (by accident)
11:01
Просмотров 32 тыс.
A.I. is Exploding! Can We Really Trust It?
13:28
Просмотров 9 тыс.
Rust for the impatient
10:43
Просмотров 651 тыс.
[UPDATE] Mojo Is Faster Than Rust - Mojo Explains More
52:09
КАК GOOGLE УКРАЛ ANDROID?
17:44
Просмотров 88 тыс.
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Просмотров 10 млн
How charged your battery?
0:14
Просмотров 3,2 млн
ПК с Авито за 3000р
0:58
Просмотров 1,7 млн