Survivalist Pro
Photo by Arya Kratos Pexels Logo Photo: Arya Kratos

Why is Rust so hard to learn?

Rust is difficult. It has a complex syntax and a steep learning curve. It is designed to uniquely solve some very challenging problems in programming. However, as a beginner, using Cuda or MPI on Rust is not very simple compared to the other options like Swift and Go.

Can you hear after dying?
Can you hear after dying?

The important findings, along with observations of long-time palliative care doctors and nurses, show: Brain activity supports that a dying patient...

Read More »
Does off-grid mean no internet?
Does off-grid mean no internet?

If your home isn't connected to cable, phone, or even electricity, it doesn't mean you're cut off from the internet. As long as you have a source...

Read More »

Listen to this story

Google engineers recently introduced ‘Carbon’, an open source programming language hailed as the possible successor of C++. With the new ‘experimental’ language being the talk of the internet, conversations around why ‘Rust’ didn’t become the official successor of C++ have also surfaced. With its own community of people called ‘Rustaceans’ who use, contribute and are interested in the development of the language, Rust is a statically-typed programming language for performance and safety, especially safe concurrency and memory management. Its syntax is similar to that of C++. The open-source project was originally developed at Mozilla Research. In 2021, the Rust Foundation took the torch and drove the development of the language. In his presentation at CPP North, Google engineer Chandler Carruth advised those using ‘Rust’ to continue using it. Carbon is for developers with large codebases in C++, which are difficult to convert into Rust. Carbon is specifically what Carruth called a ‘successor language’, built atop an already existing ecosystem, C++ in this case. According to a StackOverflow survey, Rust is considered to be one of the fastest-growing programming languages and has been ranked as the most liked language by its users. But, programmers say otherwise.

A good language should be safe, fast and easy to program. But is Rust?

Rust is difficult. It has a complex syntax and a steep learning curve. It is designed to uniquely solve some very challenging problems in programming. However, as a beginner, using Cuda or MPI on Rust is not very simple compared to the other options like Swift and Go. Moreover, it is slow. Rust is a snail compared to other languages. Even for small projects, the compile times are painfully long, and runtime measurements show that Rust is less efficient than the C programs. Imagine rewriting C libraries that have had decades of scrutiny applied only to introduce new bugs. Bugs in code are programmers’ nightmare. While it does save developers from some mistakes, it does not stop them from unintentionally writing bugs. Another issue are the constant warnings appearing over parentheses, especially over if statements and while loops. Rust is therefore a lot more complicated and inefficient and may soon be superseded by said tooling.

What virus attacks your brain?
What virus attacks your brain?

Encephalitis is most commonly due to viruses, such as herpes simplex, herpes zoster, cytomegalovirus, or West Nile virus. It can occur in the...

Read More »
What are the 6 defenses?
What are the 6 defenses?

These are six conventional approaches to defending people from criminal prosecution. Affirmative Defense. Coercion and Duress. Abandonment and...

Read More »

Not so unpopular after all?

Even though first-hand experiences tell a different story, most big techs are already using Rust, while others plan to do so. Recently, Rust joined Meta’s panel of officially supported server-side programming languages. The list previously included C++, Hack and Python. “There’s a rapidly increasing Rust footprint in our products and services, and we’re committing to Rust long-term and welcome early adopters”, says Eric Garcia, a Meta software engineering manager. Dropbox uses Rust for some mission-critical bits of its programming. Other internet companies would probably choose Rust when they need good security, multi-threading, and to reduce the amount of hardware. For example, a highly efficient web service written in Rust can save millions of dollars in hardware for a company running thousands of servers. Google also plans to use Rust in the Linux kernel after bringing support for the systems programming language Rust to Android. To reiterate, the aim is to reduce security flaws. Meanwhile, Microsoft too has turned to Rust to reduce memory-related bugs in Windows components. Currently, there are 25 repositories on GitHub of the public work Microsoft is doing with Rust. Most of them have occasional commits, which is minuscule compared to 317 C++ repositories. In 2020, Linux kernel developers proposed rewriting new Linux kernel code in Rust. The idea was to add new code in Rust to the originally written Kernel in C. However, this idea is still in the development stage, described as experimental. In the future, Rust could become a top favourite language for the Internet of Things (IoT) devices with tiny processors and little RAM but need a high level of security. Moreover, considering its relationship with big techs, it would probably become a favourite language for internet companies that need to offer web services to millions of users.

What night cream does the Queen use?
What night cream does the Queen use?

Though a certain amount of mystery surrounds what has gone into retaining that royal radiance, there is one product Her Majesty is said to have...

Read More »
How high will food prices go in 2022?
How high will food prices go in 2022?

In 2022, all food prices are predicted to increase between 9.5 and 10.5 percent, food-at-home prices are predicted to increase between 11.0 and...

Read More »
Is gas still cheaper than electricity 2022?
Is gas still cheaper than electricity 2022?

No. When it comes to using energy, gas is typically cheaper than electricity. Looking Ofgem's price cap rates, gas has gone up to 10.3p per kWh...

Read More »
What happens if I stop eating for a month?
What happens if I stop eating for a month?

Without any nutrients, you could experience severe convulsions. Your heartbeat could become irregular, and you could hallucinate. But at this...

Read More »