laitimes

Musk: I'm a Rust fan, but I choose C for performance

Produced | Open Source China

Director of the | Of Culture

Greg Brockman, CTO of OpenAI, a nonprofit AI research firm, today posted a tweet about the issue of "bugging" in programming and said that one of the least valued skills in programming is writing friendly error messages. Greg believes that good error messages should be self-evident and have three main points: what the user does; what the acceptable input is; and how to solve the problem.

Musk also commented on his opinion in this tweet, which he completely agrees with, and said that the compiler of the programming language can do better because the current investment in the compiler is not enough.

In this regard, some netizens mentioned Rust and said that Rust greatly solves the problem of the compiler.

Musk replied that he is also a fan of Rust and is very much in recognition of Rust's extensibility. However, for maximum performance, the best solution is to use the C language with a custom compiler on specialized hardware. This is important for the max frame rate on the inferred computer on the car. In other scenarios they primarily use C++ and Python. He also stressed that unless you need to optimize for hardware performance, you should never use C!

Musk: I'm a Rust fan, but I choose C for performance
Musk: I'm a Rust fan, but I choose C for performance

According to reports from last year

SpaceX has only used Rust to prototype some new projects before, and has not yet officially used Rust. Now that Musk is so vocal about Rust, it seems that their team is already using Rust deeply within the team.

Read on