QCon2016 speech "the core competence of rust Language" Summary and supplement

Source: Internet
Author: User

At the invitation of the editor-in-chief of the Beijing 2016| Global Software Development Conference (Qcon), I (Liigo) made a keynote speech on April 23, 2016 at the conference, "core strengths and core competencies of the Rust Programming language" (PDF presentation). Because it is the first stage, the scene performance is poor, the individual is not very satisfied. Therefore, this paper summarizes and complements this speech.

Core three elements: System programming, 0 runtime, memory security

I summarize the core strengths and core competencies of the Rust programming language as three elements: System programming, 0 Runtime, memory security. Rust is almost the only one in the field of system programming that emphasizes low-level control, while maintaining minimal runtime overhead and high run-time efficiency, as well as modern programming languages that ensure system memory security. These three core elements are filters, raising the threshold for competition, shutting out many opponents, and also a double-edged sword that restricts rust itself to a minority language. (baixing He Shijun's teacher asked at the scene when Rust was going to fire, and I said that Rust was a little low in system programming, and that system programming was only niche in the entire IT industry. The rust learning curve is steep and requires a high degree of programmer programming power, and does not have the potential to become a net red. My presentation at the scene was both wordy and disorganized. )

For system programming, I concluded: System programming is the cornerstone of the software industry, many basic, platform-sized projects, or subordinate to system programming, or rely on system programming, system programming emphasizes the underlying control, operational performance and system security; current mainstream system programming language C/S There is a significant lack of memory security. I think Rust's memory security is a competitive advantage in the fight against Rust and C + +, and its historical position and accumulation is a competitive advantage, and rust has a greater potential in the long run.

For the 0 runtime, I conclude that the design and implementation of the Rust language attaches great importance to runtime performance, strives to avoid any unnecessary runtime overhead, and compromises only when it conflicts with memory security; Rust runs at the same order of magnitude as C/ It was mentioned in the speech that "not paying the price for features not available" is the design principle of C + + and the design principle of rust. Run-time cost analysis is done for no GC, no VM, no interpreter, iterator (Iterator), dynamic static dispatch (Static-,dynamic-dispatch), Ffi,thread,io and so on. In particular, it is emphasized that the rust language does not enforce the use of the garbage collector (GC), and there is no noticeable runtime overhead.

For memory security, first say why memory security is important. It then describes how rust guarantees memory security, which involves ownership (Ownership), Transfer of ownership (move), lease (borrowing), life cycle (Lifetime), and so on.

After the speech of the question link, in addition to the teacher asked fire not fire, there is a friend asked Rust cross-platform performance. I said that the Rust standard library (LIBSTD) is a cross-mainstream operating system platform (UNIX/LINUX/WINDOWS/MAC), while the Rust Core library (Libcore) spans more platforms and even works on bare metals without operating systems (bare metal) In the hardware environment (this is the name of Rust "rust"). The scene was somewhat incoherent.

Another friend asked about the difference between rust and go. I replied that go is a GC language, and Rust does not have gc,rust for system programming and go is not, so they have no competitive relationship in their core applications. Referring to GC I'm also throwing "a big problem with a GC for Go". However, since there is no further elaboration, the result of this conclusion is very pale and unconvincing. I tried to use the site two days ago Baidu Tau Chunhua "Golang in the application of Baidu-frontend" The content of the speech, but a moment to think about the speaker and the title (in fact, already written in my speech), had to give up. In his speech, Tao said that in their application, the issue of upgrading from Go 1.3 to 1.5 1.6,gc was not mitigated; perhaps the go 1.5 1.6, known as "solving the GC Problem", ignored the scenario. My other blog post has other developers who have feedback on the GC issue of Go.

At the end of the speech, ZTE's peers privately consulted me about Rust's successful application and complained about the memory security pain point of C language. I put rust "two and a half" large success stories: Rust compiler, servo browser engine, cargo project build manager, plus redox operating system and MAIDSAFE security network. For a moment, there was, Dropbox's Magic Pocket,piston game engine.

QCon2016 speech "the core competence of rust Language" Summary and supplement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.