laitimes

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

author:The road of migrant workers' technology

Hello everyone, I'm a migrant worker!

I have asked a question before: what would happen if there was no operating system? As you can imagine, no matter how good the hardware is, if there is no software to cooperate with it, it is a piece of scrap iron. Users also cannot use the hardware to interact with the machine.

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

The operating systems we are familiar with generally are: Windows, UNIX and Linux, Apple IOS, Android, etc., what language are these operating systems written in?

Windows

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

Early versions were developed primarily in assembly language. Later versions (e.g., Win3.0, 95) were mainly developed in C.

UNIX and Linux

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

The UNIX operating system is written in C. The Linux operating system is mainly developed in C, but also uses a small assembly language.

Apple iOS

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

The system programming languages for iOS are Objective-C, C, and C++. At the 2014 WWDC, Apple announced its new development language, Swift, which runs with Objective-C on Mac OS and iOS platforms for building applications based on the Apple platform.

Android

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

Android is based on the Linux open source operating system, its underlying driver and system kernel use C language and assembly development, the system itself uses Java language, the application layer also uses Java language, and also uses C/C++ native language, in general, it is developed in Java language as a standard.

In recent years, another operating system language has been on the rise: Rust!

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

Introduction to the Rust language

Originally developed by Mozilla employee Graydon Hoare, Rust first made its debut to the masses in 2010. With the help of Mozilla, the development team continued to improve and officially released Rust 1.0 in 2015.

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

Rust is said to be inspired by C++, C#, Erlang, and other programming languages, and has some unique features that other languages don't have. As a modern systems programming language, it is designed to provide memory safety, high performance, and reliability.

Rust's syntax is similar to C++, both are compiled languages, and Rust is better than C++ in terms of memory safety and concurrency.

Pros of the Rust language

Memory safety: This is at the heart of Rust designers' design to ensure memory safety by enforcing memory safety rules to eliminate common bugs and security vulnerabilities.

High performance: Rust is a compiled language, which compiles very quickly and generates code of very high quality. Its performance even surpasses C++ in some respects.

Concurrency: Rust has strong concurrency programming capabilities because it provides a new model, the Green Concurrency Model, which allows developers to write efficient, highly scalable, and reliable code that allows developers to easily create multiple threads to execute tasks concurrently

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

Concise syntax: Rust is a concise, easy-to-read, C++ based language, but it reduces code complexity and redundancy, and improves code readability and maintainability.

Powerful Standard Library: Rust has a powerful standard library that provides developers with many useful features and tools.

Cross-platform: Rust can run on a variety of platforms, including Windows, Linux, and macOS, among others.

Active community: Rust has a very active community, whether it is developers or users, they can quickly find solutions or get help when they encounter problems.

Wide range of use cases: Rust can be used to develop various types of applications, including operating systems, web programming, web frameworks, databases, games, WebAssembly, and more.

The world's major tech giants have entered the game

Amazon uses Rust on performance-sensitive service components such as Lambda, EC2, and S3. In addition, the company openly supports and sponsors the development of the language and its ecosystem. Amazon also has an open-source service, Firecracker VMM, written entirely in Rust, which is a hypervisor originally built for AWS Lambda and AWS Fargate services.

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

Atlassian:在后端使用Rust。

Dropbox:在前后端均使用了Rust。

Facebook: Rewrote the source control tool using Rust.

Google: Rust is used in part in the Fuchsia project.

Microsoft: Rust is partially used on the Azure IoT network. The Rust language was introduced into the Windows 11 operating system to improve the performance and stability of the system.

npm: Rust is used on its core services.

RedHat: Created a new storage system using Rust.

Reddit: Use Rust to handle comments.

Twitter: Use Rust in your build team.

In addition to the above-mentioned companies, there are also some companies such as: Baidu, Samsung, Mozilla, China Mobile, ZTO Express, Palfish, Zhihu, NetEase Games, Meituan, JD Cloud, 360 Cloud, Toutiao, etc. are also using Rust. Alibaba Cloud, the DingTalk team, and Ant Group's confidential computing and database teams are also using Rust. The ByteDance Feishu team uses Rust for cross-platform client component development. Geely Group's digital technology arm is using Rust to build blockchain.

summary

For four years in a row, Rust has been voted the "favorite" programming language by developers on Stack Overflow. Rust now includes a growing number of jobs in databases, gaming, cloud computing, security, science, healthcare, and blockchain.

A new generation of operating system languages is rising, gradually breaking the monopoly of the old king (C/C++)!

The promise of the Rust language seems to be very broad and promising, and it may be used and developed in more fields in the future. Rust, a new star in the programming world, is being embraced!

This new generation of operating system languages is on the rise and is gradually breaking the monopoly of the old king (C/C++)!

That's all for today's sharing, if it helps, welcome to support it with one click triple (like, comment, forward)!

Reader-only group: We sincerely invite you to join the technical exchange group and roll together!

If there are any errors or other problems, please leave comments and corrections. If it helps, welcome to like + forward and share. For more related open source technical articles, please stay tuned!Resource sharing (Xiaobian has carefully prepared various academic Xi materials for 2048G.) Including system operation and maintenance, database, redis, MogoDB, e-book, Java basic course, Java practical project, architect comprehensive tutorial, architect practical project, big data, Docker container, ELK Stack, machine learning Xi, BAT interview intensive lecture video, etc. )

Read on