Will Rust replace C/C++?

preview_player
Показать описание
In today's video I will be comparing C and C++ to Rust and discussing when it makes sense to use Rust instead of C or C++.

#letsgetrusty #rustlang #c++
Рекомендации по теме
Комментарии
Автор

The argument I always hear for Rust replacing C is: "It's memory safe". My friend, we in fact use the C programming language BECAUSE it's not memory safe and you can manipulate it however you please.

KoltPenny
Автор

Having written c and c++. The pain... Yes... But, Ultimately great languages. However, I have to say writing rust, idiomatic rust... Is a beautiful thing.

jonathanmoore
Автор

C programmers never die. They just fade away. I have been programming C for decades. It has an excellent compiler with either GCC or clang. My only concerns are forgetting some action with matching a free to malloc. Fortunately, valgrind is there for newbies.
I am in the process of looking for a project that I can write with Rust.
What I would like to see is a bidirectional converter to/from C to Rust.
I believe that Rust will not displace C. But today, with very smart editors, it is easy to develop code in faster time using C than in Rust.

lsatenstein
Автор

One area where I see a Rust as a perfect fit is embedded / IOT.

On a language level it's a good fit, because of the slim runtime and control over memory management. And because of Rusts far better static tests compared to C(++), and because of its error model, it will massively reduce the need for longterm debugging.

Whats hurting it there currently is indeed the LLVM support or lack thereof.

SMTM
Автор

The biggest problem I see with C++ is that they are afraid to make breaking changes (and in fact consider this a strength). Learning C++ is a nightmare, because there are 20 different ways to do the same thing, of which 10 are obsolete, only one is correct, but which one it is depends on the circumstances.

rudiwinkelstein
Автор

Hi, im currently learning the Rust programming language because of your channel, thank you for making rust more accessible to new developer's

robert
Автор

From my point of view rust also is attractive because it doesn't have the weird tentacles that Microsoft has managed to get into C++ with Visual Studio etc.

otso
Автор

IMHO nothing really totally replaces another language. It’s just how many people choose one or the other. C, Basic, Cobal, they all still get used decades after alternative solutions came out . I think Rust’s percentage will grow but C++ has nothing to worry about. I don’t use Pascal but it’s easier to get started with than most languages so it’s safe keeping a huge share of programmers for a long time. Rant off

daque
Автор

Oh, you are very right about the none system programmers. I too am from a web background walking with JS and TS. I left in love with rust when I saw the way variables were declared and types were annotated. It looks very similar to TypeScript and above all rust is a beautiful and explicit programming language

marcokuidja
Автор

Imagine smushing them together
Rust × C++ == C* ( Sea Star )

- We still keep the aquatic theme and the 'C' Part.

orter
Автор

I could see rust making big strides in safety critical systems, such as airplanes and power stations. Although a certified compiler is probably still a long way out.

myles
Автор

Rust needs dynamic linked library loading before it can fully replace C/C++. Otherwise there is no technical reason to keep using those languages.

Knirin
Автор

If you have been following RISC-V, you might wonder whether all of those little proprietary microprocessors will be chosen for new designs a few (5?) years from now. The economics of RISC-V are pretty compelling, and it scales from small embedded systems all the way up. I expect to see a steady shift to RISC-V, making a lack of support for those old proprietary architectures irrelevant.

ClearerThanMud
Автор

I think rust is a great language. I'm a java developer primarily and when I say rust is great for REST based micro services I always get met with "it's a systems language, you can't do that". What do y think? Systems language as a term seems a bit fluid to me. There are some great frameworks for web based programming in rust.

ollie
Автор

Dude !!! Ur channel constantly motivates me to become a rusty guy !! This small video did boosted me up !! by the way wht's big thing coming up next !! waiting .... I am from Android dev bckgrnd !! I fall in love with Rust the way it made complex things to look simple.

bjugdbjk
Автор

That was a great video, clear and concise. Is a faster and safer full blown operating system mainly written in Rust a possibility in the long term or are Rust's benefits too small compare to C/C++ to justify such endeavors?

Kevin-jcfx
Автор

On the portability aspect, would you say rust is insufficient to create truly cross-platform compatible applications? Or would I only experience errors when trying to program on architectures that are uncommon?

Ryan-xqkl
Автор

4:30 I also come from TypeScript and just start learning Rust. Do you know can Rust support `Utility Types` like TS? It is a very useful feature.

Ken-S
Автор

I know many have already been triggered seeing C/C++ in the title

parlor
Автор

No, cause that would involve rewriting code with no perceptible user improvement

willinton