Earlier quoted context omitted.
It's not "node" or "Javascript" the problem, it's this convenient packaging model. This is gonna ruffle some feathers, but it's only a matter of time until it'll happen on the Rust ecosystem which loves to depend on a billion subpackages, and it won't be fault of the language itself. The more I think about it, the more I believe that C, C++ or Odin's decision not to have a convenient package manager that fosters a ca…
Just a last month someone was trying to figure the cargo tree on which Rust package got imported implicitly via which package. This will totally happen in rust as well as long as you use some kind of package manager. Go for zero or less decencies.
Shai-Hulud Returns: Over 300 NPM Packages Infected
241–250 of 797 posts
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#242Earlier quoted context omitted.
The problem isn't specific to node. NPM is just the most popular repo so the most value for attacks. The same thing could happen on RubyGems, Cargo, or any of the other package managers.
NPM has about 4 million packages, Maven Central has about 3 million packages. If this were true, wouldn't there have been at least one Maven attack by now, considering the number of NPM attacks that we've seen?
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#243Earlier quoted context omitted.
NPM has about 4 million packages, Maven Central has about 3 million packages. If this were true, wouldn't there have been at least one Maven attack by now, considering the number of NPM attacks that we've seen?
Okay then, explain to me why this is only possible with NPM? Does it have a hidden "pwn" button that I don't know about?
Perhaps its package owners do.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#244I guess you should never use the latest versions of libraries.
But you also need the latest versions to avoid zero-day attacks.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#245Why can't package managers enforce attestations backed by a transparent log for each commit made to a public repository?
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#246Earlier quoted context omitted.
I wouldn't call the Rust stdlib "small". "Limited" I could agree with. On the topics it does cover, Rust's stdlib offers a lot . At least on the same level as Python, at times surpassing it. But because the stdlib isn't versioned it stays away from everything that isn't considered "settled", especially in matters where the best interface isn't clear yet. So no http library, no date handling, no helpers for writing ma…
Network without async works fine in std. However, rand, serde, and num_traits always seem to be present. Not sure why clap isn't std at this point.
Too big for many cases, there is also a lot of discussion around whether to use clap, or something smaller.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#247Earlier quoted context omitted.
I've worried about this for a while with Rust packages. The total size of a "big" Rust project's dependency graph is pretty similar to a lot of JS projects. E.g. Tauri, last I checked, introduces about 600 dependencies just on its own. Like another commenter said, I do think it's partially just because dependency management is so easy in Rust compared to e.g. C or C++, but I also suspect that it has to do with the si…
This is a reason why so many enterprises use C#. Most of the time you just use Microsoft made libraries and rarely brings in 3rd party.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#248Earlier quoted context omitted.
That's the goal, but it's not feasible in e.g. professional settings. Much easier said than done, unfortunately.
My code editor works in a sandbox. It's difficult because Linux doesn't provide it and one has to write it manually using shell scripts, random utilities. For example, I had also to write a limited FUSE emulation of /proc to allow code editor work without access to real /proc which contains lot of unnecessary information. And if it's a "professional" setting, the company could hire a part-time developer for writing t…
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#249Is there a terminal AI assistant that doesn't have heaps of depenedancies and preferably no node? Claude and codex both require node. I'm a fan of the lightweight octofriend. But also node. I do not like installing node on systems that otherwise would not require it.
Just `git clone git@github.com:openai/codex.git`, `cd codex-rs`, `cargo build --release` (If you have many cores and not much RAM, use `-j n`, where n is 1 to 4 to decrease RAM requirements)