News for hackers. Stuff that matters.
Re:Linux kernel in-tree Rust support by josephcsible on Saturday July 11, 2020 @11:13AM (#23802742)
It sounds like you're saying that you should never use any programming language until it's supported by at least 2 compilers. Is that accurate?
Re:Linux kernel in-tree Rust support by codingstream on Saturday July 11, 2020 @12:11PM (#23803194)
Without a language specification for Rust, any compiler that isn't the reference implementation, by definition, cannot be correct. Put another way, how is a compiler writer supposed to know what is and is not a bug in the reference implementation?
Re:Linux kernel in-tree Rust support by steveklabnik on Saturday July 11, 2020 @12:14PM (#23803219)
Most languages do not have a specification, and it works out fine.

Rust's is in-progress. There are some things that are well-specified, and there are some things that are still up in the air.

Re:Linux kernel in-tree Rust support by moreaccountspls on Saturday July 11, 2020 @12:38PM (#23803418)
Right, which is why it's a poor choice for the kernel at this time.
Re:Linux kernel in-tree Rust support by yjftsjthsd-h on Saturday July 11, 2020 @03:28PM (#23805065)
Not for anything important, no. For a fun side project, 1 compiler is fine. For a business that depends on a build chain, it's sensible to at least have a plan for switching. For a major OS kernel, even 2 compilers is too low for my comfort.
Re:Linux kernel in-tree Rust support by josephcsible on Saturday July 11, 2020 @08:31PM (#23807513)
Should businesses who exclusively build iOS apps still be using Objective-C then, since Swift only has one compiler?
Re:Linux kernel in-tree Rust support by yjftsjthsd-h on Saturday July 11, 2020 @11:37PM (#23808590)
Honestly, that would give me pause if I were targeting iOS. It helps that if you're targeting iOS you already live and die at Apple's whim, so maybe that's a sunk cost; on the other hand, that's the kind of thing that would make me nervous about living in Apple's walled garden in general.
Re:Linux kernel in-tree Rust support by moreaccountspls on Saturday July 11, 2020 @11:56AM (#23803099)
For the Linux kernel? Absolutely. Rust is way too unstable right now for such an important piece of software. Give it 20 years and a standard, then we can talk.
Re:Linux kernel in-tree Rust support by nilkn on Saturday July 11, 2020 @03:31PM (#23805095)
Based on what? The relevant folks and decision makers are already talking, so it doesn’t sound like they think there’s a need to wait 20 years to at least start the conversation.
Re:Linux kernel in-tree Rust support by moreaccountspls on Saturday July 11, 2020 @10:31PM (#23808236)
Writing some optional, non-essential piece != rewriting a piece that will require taking rust as a dependency for the rest of time.

The kernel folks just did a lot of work to remove the strict dependency on GCC. To think any of the big players [Red Hat et al] want to turn around and make their shining star dependent on a language that's been 1.0 for less than 5 years is just not realistic.