News for hackers. Stuff that matters.
Re:Rustaceans at the border by caslon on Friday April 15, 2022 @03:20AM (#31037402)
It's incredible, isn't it?

Just as web developers, of all people, are finally, after over a decade, coming to the conclusion that arbitrarily-packaged dependencies are a bad idea for so many obvious reasons, Rust developers are trying to replicate NPM in the kernel.

I was told that Rust in the kernel would be a good thing, and that not much would change. If these are the types of people who are writing Rust for the kernel... can we go back? I really want to go back.

Re:Rustaceans at the border by 12baad4db82 on Friday April 15, 2022 @03:28AM (#31037444)
You could argue that there are some crates in the Rust ecosystem that suffer from a deep dependency tree, I don't think you can argue that Rust developers are trying to do this for the kernel.

The article states:

> The Rust-for-Linux developers understand this situation and are not envisioning adding the ability to pull in modules with a tool like Cargo

Re:Rustaceans at the border by nullc on Friday April 15, 2022 @03:52AM (#31037591)
> You could argue that there are some crates in the Rust ecosystem that suffer from a deep dependency tree

Some? Dependency graphs of well over a hundred packages are ubiquitous. I've long since stopped being surprised when I compile a rust package that makes no network connections and see it (indirectly) pulling in multiple HTTPS libraries.

Re:Rustaceans at the border by Grimburger on Friday April 15, 2022 @05:43AM (#31038230)
> well over a hundred packages

Tad understated. Popular rust http frameworks with basic functionality are hitting 300+ deps straight off the bat easily.

For the security conscious, move to vendoring or alias cargo to always run in offline mode.

Re:Rustaceans at the border by 12baad4db82 on Friday April 15, 2022 @05:56AM (#31038326)
Right, great example. I think 'understand the situation' refers to this. I imagine the Rust for Linux developers would be going through any dependencies they pull in with a fine comb, in this case a dependency that pulls in HTTPS libraries for presumably no reason should be rejected. If that particular dependency makes it into the kernel, well, then you can start complaining about it. But right now feels a bit premature.
Re:Rustaceans at the border by Starlevel001 on Friday April 15, 2022 @03:32AM (#31037476)
> Just as web developers, of all people, are finally, after over a decade, coming to the conclusion that arbitrarily-packaged dependencies are a bad idea for so many obvious reasons, Rust developers are trying to replicate NPM in the kernel.

Web developers and Rust developers are the same group

Re:Rustaceans at the border by proto_lambda on Friday April 15, 2022 @03:35AM (#31037497)
I'm sure there are web developers that are also Rust developers and vice versa, but the vast majority of developers I know that belong to either of those groups don't belong to the other.
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @05:44AM (#31038237)
Given it was born at Mozilla, is getting traction at WebAssembly and WebGPU efforts, WGSL is loosely based on its syntax, and some Cloud Native projects are migrating from Go to Rust, I am quite sure there is some overlapping.

Not that I agree with Rust's adoption at that level, as I think languages with automatic memory management make more sense, but that's me.

Re:Rustaceans at the border by kibwen on Friday April 15, 2022 @08:08AM (#31039237)
What people are roundaboutly observing is that the vast majority of developers these days either begin their career or spend at least a part of their career as web developers. That Rust is such a successful onramp to systems development even for people who haven't been classically trained in it is one of the strengths of the language.
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @09:12AM (#31039824)
While it is good that such people are embracing Rust for such purposes, they would have had a similar high level experience with something like Modula-2 or Object Pascal.

If anything, it is the pseudo-macro Assembler approach to C's design that made it a scary experience for some developers.

Re:Rustaceans at the border by sanderjd on Friday April 15, 2022 @11:36AM (#31041400)
Browser developers are not web developers...
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @03:06PM (#31044367)
Silly me thinking browsers are related to the Web.
Re:Rustaceans at the border by sanderjd on Friday April 15, 2022 @04:20PM (#31045313)
"related to" is doing a lot of work there. Browsers are "related to" the web, but surely you don't think Mozilla, if hiring for someone to work on the CSS layout engine or something for Firefox in c++ or rust, would advertise for a "web developer". It's just not the same job in any way.
Re:Rustaceans at the border by estebank on Friday April 15, 2022 @06:14PM (#31046565)
Re:Rustaceans at the border by account-5 on Friday April 15, 2022 @03:31AM (#31037465)
Not any sort of developer myself but if you're writing an OS kernel, and for what it's worth, my opinion is you should know the library's your code relies upon is safe. I have to agree with the part of the article taking about bloat and security problems.