rust or c++ ?
by No1can - Saturday September 16, 2023 at 07:53 PM
#1
I asked myself the question " Does rust compete with c++ ? ". I hear more and more that "rust is better than c++" is it true ? What do you think ?
Reply
#2
Rust uses LLVM as backend.
LLVM is the best compiler on World.

The problem on C++ and C is its not standardized.
There are many C++ libraries on github.

Some works on MS Visual Studio some work on GNU compiler.
And it makes so much problem for cross platform development

Also on C++ its not to write memory safe apps.
Well maybe you can be very expert programmer and you can write C++ carefully.
But all developers in these days require external frameworks.
And for security its big concern to use external libraries directly to use on your software.

So these kinds of problems fixed on Rust.
Its better to use modern technologies then old ones....
Reply
#3
C++ is better of course, C better than both.
Reply
#4
Okay thanks !
Reply
#5
C++ is better.
Reply
#6
(09-16-2023, 08:39 PM)eix333 Wrote: Rust uses LLVM as backend.
LLVM is the best compiler on World.

The problem on C++ and C is its not standardized.
There are many C++ libraries on github.

Some works on MS Visual Studio some work on GNU compiler.
And it makes so much problem for cross platform development

Also on C++ its not to write memory safe apps.
Well maybe you can be very expert programmer and you can write C++ carefully.
But all developers in these days require external frameworks.
And for security its big concern to use external libraries directly to use on your software.

So these kinds of problems fixed on Rust.
Its better to use modern technologies then old ones....

This is all wrong. LLVM is a compiler toolchain, and compilers that use it as front or backend (Clang between them) are not much more remarkable than others, and you have compilers built around LLVM for all the languages you mentioned. The claims about C and C++ not being standardized are false as well, both of them have a modern standard (C17 and C++20).

Compiler-specific code is rare, since all compilers must adhere to the standards, and even the existing one can be ported easily. The memory safety concern is valid, and is one of the best features of Rust, but is still not enough to consider it better.

And the whole thing about "external frameworks" is bullshit, every single general purpose language has loads of external frameworks and libraries, programming as a field is so huge that it makes no sense for the developers of a language to try and develop libraries for all use cases, which are close to infinite.
Reply
#7
Rust, so you don't need to bother about memoty management / memory leaks!
Reply
#8
(09-17-2023, 03:35 PM)Kyrie Wrote:
(09-16-2023, 08:39 PM)eix333 Wrote: Rust uses LLVM as backend.
LLVM is the best compiler on World.

The problem on C++ and C is its not standardized.
There are many C++ libraries on github.

Some works on MS Visual Studio some work on GNU compiler.
And it makes so much problem for cross platform development

Also on C++ its not to write memory safe apps.
Well maybe you can be very expert programmer and you can write C++ carefully.
But all developers in these days require external frameworks.
And for security its big concern to use external libraries directly to use on your software.

So these kinds of problems fixed on Rust.
Its better to use modern technologies then old ones....

This is all wrong. LLVM is a compiler toolchain, and compilers that use it as front or backend  (Clang between them) are not much more remarkable than others, and you have compilers built around LLVM for all the languages you mentioned. The claims about C and C++ not being standardized are false as well, both of them have a modern standard (C17 and C++20).

Compiler-specific code is rare, since all compilers must adhere to the standards, and even the existing one can be ported easily. The memory safety concern is valid, and is one of the  best  features of Rust, but is still not enough to consider it better.

And the whole thing about "external frameworks" is bullshit, every single general purpose language has loads of external frameworks and libraries, programming as a field is so huge that it makes no sense for the developers of a language to try and develop libraries for all use cases, which are close to infinite.

Okay but finally, learn Rust or C++, which of this 2 languages is the most effiancy ?
Reply
#9
(09-21-2023, 03:30 PM)No1can Wrote:
(09-17-2023, 03:35 PM)Kyrie Wrote:
(09-16-2023, 08:39 PM)eix333 Wrote: Rust uses LLVM as backend.
LLVM is the best compiler on World.

The problem on C++ and C is its not standardized.
There are many C++ libraries on github.

Some works on MS Visual Studio some work on GNU compiler.
And it makes so much problem for cross platform development

Also on C++ its not to write memory safe apps.
Well maybe you can be very expert programmer and you can write C++ carefully.
But all developers in these days require external frameworks.
And for security its big concern to use external libraries directly to use on your software.

So these kinds of problems fixed on Rust.
Its better to use modern technologies then old ones....

This is all wrong. LLVM is a compiler toolchain, and compilers that use it as front or backend  (Clang between them) are not much more remarkable than others, and you have compilers built around LLVM for all the languages you mentioned. The claims about C and C++ not being standardized are false as well, both of them have a modern standard (C17 and C++20).

Compiler-specific code is rare, since all compilers must adhere to the standards, and even the existing one can be ported easily. The memory safety concern is valid, and is one of the  best  features of Rust, but is still not enough to consider it better.

And the whole thing about "external frameworks" is bullshit, every single general purpose language has loads of external frameworks and libraries, programming as a field is so huge that it makes no sense for the developers of a language to try and develop libraries for all use cases, which are close to infinite.

Okay but finally, learn Rust or C++, which of this 2 languages is the most effiancy ?

Whichever you prefer, both are great. I'd go with C++ just because it is more common.
Reply
#10
I know both. If you know what you're doing, I'd say C++ over Rust.
Reply




 Users browsing this thread: 1 Guest(s)