Posts: 49
Threads: 6
Joined: Sep 2023
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 ?
Posts: 65
Threads: 10
Joined: Aug 2023
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....
Posts: 449
Threads: 6
Joined: Jun 2023
C++ is better of course, C better than both.
Posts: 49
Threads: 6
Joined: Sep 2023
Posts: 10
Threads: 1
Joined: Sep 2023
Posts: 54
Threads: 4
Joined: Aug 2023
  
09-17-2023, 03:35 PM
(This post was last modified: 09-17-2023, 03:35 PM by Kyrie.)
(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.
Posts: 445
Threads: 30
Joined: Jun 2023
Rust, so you don't need to bother about memoty management / memory leaks!
Posts: 49
Threads: 6
Joined: Sep 2023
(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 ?
Posts: 54
Threads: 4
Joined: Aug 2023
  
09-21-2023, 04:05 PM
(This post was last modified: 09-21-2023, 04:06 PM by Kyrie.)
(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.
Posts: 27
Threads: 0
Joined: Oct 2023
I know both. If you know what you're doing, I'd say C++ over Rust.
|