Musk: Although I'm a fan of Rust, I choose C, followed by C++ and Python

Greg Brockman, CTO of artificial intelligence nonprofit OpenAI, tweeted his thoughts on some of the misinformation in programming. One of the least valued skills in programming, he says, is writing error messages that aren't frustrating. A good error message should be obvious and include: 1. What did the user do; 2. What is the acceptable input; 3. How to fix the problem. This can determine whether you love or hate the library.

Subsequently, "Internet surfer" Musk expressed his approval of Brockman in the comment area, and even discussed the performance of the compiler. Musk said: Compilers can also do better, but not enough effort has been spent on this.

Then, Twitter founder Jack recommended Rust in the comment area: "Rust greatly solves the problem of the compiler". This recommendation piqued Musk's interest, and he replied to Jack: I'm a fan of Rust, and given that Discord uses it, it obviously scales well. However, for best performance, it is best to use strict C with a custom compiler on specialized hardware, which is important for the maximum frame rate of the vehicle inference computer. Other than that, we mostly use C++ and Python.

Source: Twitter

This discussion also attracted Tesla owner enthusiast @WholeMarsBlog, who also discussed compilers with Musk:

@WholeMarsBlog: "But you wouldn't say, developers using C have overhead, and if you're not careful, you can easily kill yourself. That's how modern systems-level languages ​​like Go and Rust came into existence, Go > Rust IMO for web services."

Musk: "Yes, never use C unless optimized for hardware performance!"

Source: Twitter

Musk's "confession" is hard not to be reminiscent of SpaceX's software development project. Because last year, some members of the SpaceX software development team ran an AMA (Ask Me Anything) event on Reddit, which allowed anyone to come and ask them questions about the SpaceX project. At that time, a user asked: Did you use the Rust programming language? Regarding this issue, SpaceX team member Asher said: They are indeed very interested in Rust, because Rust is a language with outstanding advantages in terms of safety, performance and modern tools. Some new projects have already started prototyping with Rust, and this is just the beginning of their Rust journey.

Source: Reddit

So this time Musk's public statement, is it to use the Rust programming language extensively in the next projects? Do you think Rust can become a mainstream programming language for developers? Welcome to leave a message in the comment area~

Reference link:

1.https://twitter.com/elonmusk/status/1496293976692899843

2.https://twitter.com/elonmusk/with_replies?lang=en

3.https://www.reddit.com/r/spacex/comments/ncj4vz/we_are_the_spacex_software_team_ask_us_anything/gy5d7ld/

Guess you like

Origin blog.csdn.net/weixin_64917227/article/details/123116714