

It will continue to work as before. It’s not like it’s going to disappear or anything 😄
Collecting downvotes since before forums even had thank you’s.


It will continue to work as before. It’s not like it’s going to disappear or anything 😄


This is definitely an argument for a bigger standard library.
bincode is not the best at anything, which is why people should have, and many indeed did move on from it many years ago.
It’s not particularly superfast (like speedy/borsh), doesn’t cover zero-copy use-cases, isn’t a standard (like cbor), and even serde support is gone in v2.
So it’s actually yet another example of why those things SHOULDN’T be in the standard library.
but it’s not official as far as I’m aware.
M$ ad talk now comes with LLM word diarrhea. Great!
Nothing special is discovered or revealed here IMHO. The very first issue was independently found by security scans that don’t come with a marketing budget. The ad itself admits other issues also have been independently reported by others.
The str/pattern stuff validates the position that unicode-validation at construction then keeping everything byte-based wasn’t a good choice. Explicit byte-view and char-view APIs would have been better.
Otherwise, no harm from throwing free tokens at the rust compiler+std. They can still shove their now LLM-generated word diarrhea ad posts where they belong.


A PR fixing the issue has already been submitted (which surfaced another issue, but it doesn’t concern stable).
People likening this to the issue behind cve-rs (which is blocked on a major rework) are clueless, which happens to be par for the course regarding anything Rust. So no surprises there.
The language wouldn’t have lost much without tuples actually. But they do at least have direct pattern destructuring utility. Anonymous enums don’t.
They also don’t pose potential future awkwardness if/when variant types become a thing.
A language feature is not needed because macros exist.
I would even argue that perhaps the most important role macros play is blocking adding endless language features 😉
To add to the other answers. Usually, the easiest way to answer such questions is to click on source. Then in this case, you would immediately see this comment:
// SAFETY: A `Vec` always has a non-null pointer.


But I don’t understand why everyone else has an outdated version number.
Who are you talking about? If it’s AUR uploaders, the version you see is the version in the last uploaded PKGBUILD. AUR itself doesn’t build anything. And PKGBUILD uploaders don’t need to keep uploading to bump the version because it auto-updates when a user builds it. They only need to upload to fix builds if they get broken, or update meta info, …etc.
git (vcs in general) packages always update unless you pass --holdver with makepkg.
And just to be clear, that relates to git sources not the package name. The -git naming is just a convention that has no bearing on functionality.
Maybe its just a placeholder
Mostly yes. You can just put “0” or “1” initially. Build once, and it will be populated anyway.
Remember that this has no runtime cost and is fully type-safe.
For the sake of maximal accuracy, enum size overhead can become relevant sometimes. But a work-around exists (boxing the huge variant), and with or without boxing, the performance would still beat whatever other languages have to offer.
Otherwise, good post (I would have to say that since it mostly rehashes points I made in previous comments 😉).
Who is even the target audience of this post? Beginners (which included all of us once) ask for all sorts of things. But these features didn’t happen in Rust for a reason.
Named parameters are not needed in the age of LSP hints, where this exists as an editor feature (including (neo)vim).
But if you really want named parameters AND optionals/defaults, rust always allowed the args struct pattern:
struct Args<'a> {
a: &'a str,
b: u64,
c: Option<u64>,
}
impl<'a> Default for Args<'a> {
fn default() -> Self {
Self {
a: "hi", // default
b: 3, // default
c: None, // optional default
}
}
}
takes_args(Args{a: "not hi", ..Args::default()})
The builder pattern is more about valid initialization, but does interact with the arg struct pattern when you have non-default (forced) arguments, although even then, you can not use it by having:
struct Args<'a> {
forced_arg1: &'a str,
forced_arg2: u8,
defaults: DefaultArgs, // implements Default
}
So mentioning the builder pattern is out of place.
Overloading is not used because we have traits (and the sound subset of specialization for when that’s needed).
So all in all, those “features” didn’t make it to Rust not because of the backlog, or for simplicity’s sake, but because idiomatic Rust (and even modern tooling in general, a la LSP) have alternatives that give you what you want and more.
Everything mentioned above should be known by anyone who knew Rust for more than a month.


The +nightly syntax is a rustup proxy feature, so a distro-packaged cargo won’t even parse it. Nightly is a different compiler every day.
export RUSTC_BOOTSTRAP=1 and you wouldn’t need rustup or nightly. It will work with your stable distro package.
clap = “4” and anyhow = “1” are ranges, and there’s no Cargo.lock.
you can do clap = "=4.x.x", ditto for all deps, direct and indirect.
Nightly is a different compiler every day.
Nothing about that script is fixed except its text.
Is nix finished free-standing software?


Getting ahead of the curve regarding potential future legislations/regulations around unsafe languages, which may introduce contract conditions, liabilities…etc (See 2:30-4:30 of this talk for an overview).
If they listened to the calls describing this move as premature, and it arguably was, they could have gotten strapped for time later.
An implementation in a good safe fast modern language that developers actually enjoy has other tangible benefits of course. But if people want the “corpo reason”, the above should provide an answer.
Thank you for your detailed reply.
Focusing on x86_64 (and linux), can you expand on what’s missing to reach ABI parity?
And somewhat relatedly, are you leaning towards publishing an std component built with the backend or not?
I’ve been watching the number of failing UI tests shrinking fast with excitement.
Would you expect the backend to be fully ready by the end of the year? Or are there big/complicated blockers that remain, or LLVM-isms that make full or nearly full parity impossible?
Relatedly, cranelift cg early struggles had to do, in part, with intrinsics support. I remember talk of somehow solving the problem systemically and not having to implement all of them in the backends directly? Where did things end up regarding that, and how does this backend deal with this problem?
And finally, using evcxr with :timing enabled, and switching between backends with :codegen_backend, I notice that gcc is the slowest when it comes to compile time. Is that because more IR is given to gcc to generate from, or is gcc/libgccjit itself slower now?
Regarding the rust-glancer announcement itself, I hope the author is aware that lspmux (formerly ra-multiplex) exists, and zram. If lspmux didn’t exist, then yes, editor restarts would have been annoying, but that has been a solved problem for a few years already.
Also, I’m not sure hitting SSD storage too much is good strategy in general, but maybe that’s an overstated concern.
Otherwise, yes, RA could do better in memory consumption and some other aspects. And yes, the LSP protocol itself is not ideal.
In any case, introducing new ideas and approaches is always good, especially when there is no “fragmentation” concerns, which I think is the case here.
Not sure what you’re asking. If it’s about sorting without moving values of big structs around, maybe something like this?
It appears I wasn’t hit, though I easily could have been, as I installed some Rust-based Python packages recently.
I easily could have been
If you’re using good projects that have Cargo.lock checked in (should be about everyone nowadays), an do the right thing using --locked with cargo install, then not really, It wouldn’t have been easy.
Unless both an upstream (auto-)merging a bot PR updating to the malicious version (bad), and you installing that upstream (spectacularly unlucky), happened to coincide within that 86 minutes the malicious crate was up, which is almost impossible. But more importantly, fully traceable and investigable at the ecosystem level. And if we are talking released versions only, then the upstream would have had to cut a release (and maybe publish it too), also within that window.
But yes, this is a historic first, a malicious publishing of a real crate with real dependants.
It was a backhanded complement based on that fact, my friend.
The path of least resistance maybe. But as long as you get access to the timestamp (since epoch) from whatever detetime type used, you can do whatever you want. You can even use a third crate if you prefer. It’s neither a big deal, nor does it take that much effort to do.
And the timestamp is the only data you need on the wire to serialize for most use-cases, except for the few where you need to track time-zone changes alongside the timestamp.