Rust — another killer c/c++?
Recently I saw a conference on rust and there a bearded guy from Intel said that c/c++ the new Assembly which will replace the rust as well as si assembler.
For fun, I decided on the website hh.ru and rust vacancies less than in assembler, and no jobs for the Junes although the above mentioned assembler language I found almost immediately a job opening for June.
If in 2015, said that the language is not Mature, that's why if he's so good, he did not become a popular language for almost 10 years?
3 answers
No, not the killer. Just another fashion and youth language for the young, but promising team.
Rust better than C/C++ in many (probably almost all) aspects. But compared to C++ and especially C he's too young. The unpopularity of the language is due to the fact that the market is fully Packed with si and minuses millions of lines of code and libraries already written in C/C++. Who will rewrite it?
Also, there was no significant marketing campaign to promote Rust. I heard about this language at Moscow Conf++ Python, I thought that when talking about Rust, I mean the game.
Plus, Rust is a very niche language like C/C++. And this niche is — system or okologischen programming. Operating systems, drivers, high performance system gaming (and any other) engines, embed — that is the lot Rasta. In all of these areas is not accepted, as, for example, in JS'e to change frameworks and version of the language once a week. The community there is extremely conservative.
Besides, Rust has a very high entry threshold. That's very direct. If in the context of C++ joke about the book "learn C++ in 24 hours", in the context of Rust can make fun of books "to learn Rust in a week." Their great paradigm of zero-cost abstractions actually have a cost — the complexity of understanding. In the absence of a garbage collector and need to clean the memory will have to pay many hours of war with the compiler — namely, to borrow the Ohm checker. And that's just one problem
When you begin to understand Rust, everything is going perfectly straight. But until then will have to go through hell and Israel, which C/C++'ers do not want to go. Because they already passed it when I taught C/C++ and it was much worse.
I'd really like to Rust replaced C/C++, it is objectively better. But this is unlikely to happen in the next 10 years
Lol.
How many years there he has "kills"? Five? Good luck.
Find more questions by tags Rust
Yeah, but without the unsafe inserts Stretch anything the system is not able (no driver to write, no core), and with them he turns into an ugly curve clone Crosses, completely losing his only feature - secure memory, but generously vbrasyvaya pack glitches. - Sylvan.Heidenreich commented on April 19th 20 at 12:35
However, driver age is not limited. It is quite possible to write game engines. Here's an example:
https://gitlab.com/veloren/veloren RPG on the Rast. Code unsafe exactly three things:
Or Servo — performance browser engine in rust:
1,250 inserts. Not too much for such amount of code and engine that is aimed at the optimization of the total
- Creola_Treutel33 commented on April 19th 20 at 12:38
I don't know... 2 weeks I have gone to the thoughtful reading of The book of Rust with the testing examples. Then somewhere in the 1st month, I rarely ran across a situation where not met liftime. But it passed quickly. The compiler really helps you, tells you how to resolve the situation, you just have to read what he writes. While it is not necessary to Google, it is all to human readable. Rust of course is not my first JAP, but the path from "I don't know the language very" to "solve language specific problems" with the Rust it took me much less time than with any other JAPANESE that I know. - Alene.Zemlak commented on April 19th 20 at 12:41
- karina.Gerlach commented on April 19th 20 at 12:44