News for hackers. Stuff that matters.
Re:AWS hires Rust compiler team co-lead Felix Klock by steveklabnik on Saturday November 28, 2020 @09:06AM (#25237564)
> My impression was that they were mainly motivated by advancing their language rather than, you know, implementing a browser.

It is true that the folks working on Rust are focused on "advancing the language," yes. I don't see why it would be any other way?

> Apart from kernels and drivers (where Rust seems an outright no-go),

Rust works great in these scenarios. We'll see about some higher profile examples, like Linux. Work there is ongoing. Only one way to find out.

> C is traditionally used for higher-level language runtimes and compilers/interpreters/VMs. But Rust's borrow checker is a bad fit for just about any text book algorithm and technique in that space.

There are a ton of projects in this space. After all, the Rust compiler, for example, is one of the two OG massive Rust codebases. But there's also tons and tons of projects here.

> Hell, even Rust devs themselves say implementing a DOM is about the worst use case for Rust.

Sort of, but also not really. Implementing a DOM would be easier if Rust had inheritance, is usually what is claimed. Yet, Servo was still built, and nobody would suggest that the DOM was a hard blocker here.

Re:AWS hires Rust compiler team co-lead Felix Klock by kzhukov on Saturday November 28, 2020 @01:19PM (#25239311)
There are fields such as automotive and aerospace where absence of Rust's standard is a showstopper for using Rust. Those areas require that all tools that are being used to build software must be certified (ISO 26262 for automotive for example) to ensure that software is safe to use and doesn't kill anybody. And nobody would do that for a language that adds new features every 6 weeks, because such certification is a long expensive process which you have repeat every time when the tool changes.

It's not possible for open source project to do such certifications by themselves. In C/C++ world there are companies that implement certified compilers. Usually, these are pretty shitty compilers that implement only previous standards like C++14.

And here is the problem for Rust. If there is no standard for the language and library, how such companies could implement an alternative compiler? Current Rust editions is not an option because they feel like a bottom line and don't answer the question to what extent the compiler has to be implemented to be called "compliant with Rust 2015".

And those fields aren't small. Usually hundreds of million lines of C/C++ power modern vehicle.

I find it's pretty funny that language, which positions itself as safe replacement for C/C++, can't be used in safety critical applications.

Re:AWS hires Rust compiler team co-lead Felix Klock by steveklabnik on Saturday November 28, 2020 @01:24PM (#25239364)
> There are fields such as automotive and aerospace where absence of Rust's standard is a showstopper for using Rust.

"fields" is a bit too broad. Not all applications in those fields require a standard or certification. That being said, you're absolutely right that in some cases, it is required.

> In C/C++ world there are companies that implement certified compilers.

That is true. In Rust, this is what we're seeing too; the first certification effort is being led by a company, in concert with the language team itself. This is still ongoing.

> I find it's pretty funny that language, which positions itself as safe replacement for C/C++, can't be used in safety critical applications.

This is overloading the word "safe." Rust has been about memory safety. Not about every possible meaning of the word "safe." Yes, Rust is not yet mature enough for industries with those kinds of requirements. Yes, they are not small fields. They are still smaller than the sum of all fields that do not require them. Rust doesn't have to be applicable for every possible use at the earliest stages of its life to matter.

We'll see how it goes.

Re:AWS hires Rust compiler team co-lead Felix Klock by yawaramin on Saturday November 28, 2020 @08:50PM (#25242278)
> Usually hundreds of million lines of C/C++ power modern vehicle.

And I find that highly problematic. If anything, Ada would be a much better choice for these safety-critical applications.

Re:AWS hires Rust compiler team co-lead Felix Klock by tannhaeuser on Saturday November 28, 2020 @09:33AM (#25237712)
> It is true that the folks working on Rust are focused on "advancing the language," yes. I don't see why it would be any other way?

That wasn't the argument. What's problematic is that Rust developers are focused on their language above anything else, to the detriment of the primary product they're developing. When the product - a web browser to stand against Chrome - is much more important than yet another programming language. It's about obsessing on your tools and being in love with a programming language; I call it "thinking with your fingers".

Re:AWS hires Rust compiler team co-lead Felix Klock by steveklabnik on Saturday November 28, 2020 @09:38AM (#25237749)
> to the detriment of the primary product they're developing

I guess this is the core of it. It is hard for me to understand why you'd think people working on a language would have "the primary product" be something other than the language. There isn't even a single coherent other project to be associated with. Why would "a browser" be special here? It’s even in the name: the Rust developers. We develop Rust.

Do you fault the C standards body for working on C? Or the Ruby core team for working on Ruby? What language do the developers of the language consider something other than the language as their primary product?

Now, of course, as a tool maker, you have to make sure the tool is fit for purpose. You want to enable the people who are working on projects like a browser to be able to do their job. But that's their job, not our job. It seems like you're suggesting that the primary job of Rust developers is to improve Firefox, and it's very confusing to me why you'd say that, when nobody would say that about any other language. Or at least, I've never come across that sentiment before.

Re:AWS hires Rust compiler team co-lead Felix Klock by tannhaeuser on Saturday November 28, 2020 @10:36AM (#25238153)
Maybe we're really talking past another, but for example, last week's announcement for Servo's new home page reads

> The Servo Project is excited to announce that it has found a new home with the Linux Foundation. Servo was incubated inside Mozilla, and served as the proof that important web components such as CSS and rendering could be implemented in Rust, with all its safety, concurrency and speed.

This is clearly written by someone who sees Servo as a showcase for Rust above anything else rather than what tf it is, such as a state-of-the-art rendering engine. But the developers addressed as readers, such as me, care about the state and coverage of the actual layout engine, CSS parsing/matching, rendering and rendering targets, font handling, and the like.

I'm not the only one bringing this up; when the announcement was discussed [1], there were similar sentiments. For me, a programming language is a means to an end for creating machine code, not an end in itself. This focus (and Mozilla and developers walking away from it) also hints at Servo not being all that useful (or incomplete?) for actual rendering; we don't really know. Anyway, the take away for me is that diving into Servo and Rust is probably not worth my time investment.

[1]: https://news.ycombinator.com/item?id=25125325

Re:AWS hires Rust compiler team co-lead Felix Klock by steveklabnik on Saturday November 28, 2020 @10:49AM (#25238238)
Yeah, I think we are.

I think the issue here is that this post makes sense to me, but it's about Servo and/or Mozilla. But your initial post was complaining about "the Rust developers." These are two (or three) effectively disjoint sets of people. I think that's where we got off the rails.

If you had said "Mozilla" in your post, I would still disagree, but for completely different reasons. Complaining about a "focus" on a team of ~20ish people in an organization of 1500 people doesn't make a ton of sense to me.

And I'm still not clear why you're drawing conclusions about Rust generally from one single project, that's not even its most popular or widely used exemplar project.

Re:AWS hires Rust compiler team co-lead Felix Klock by damnyou on Saturday November 28, 2020 @10:46AM (#25238220)
> Anyway, the take away for me is that diving into Servo and Rust is probably not worth my time investment.

You're the best judge of your time, but making a claim about Servo and then, in the last sentence of your post, broadening it to all of Rust, is a bit odd. Servo's not even in production, unlike plenty of other Rust code.