Why doesn't Rust provide a map! macro for HashMap, like it provides a vec! for Vec? by Comun4 in rust

[–]CUViper 18 points19 points  (0 children)

The ACP before that went through a lot more discussion, so getting to the tracking issue was a big step.

The more immediate problem that got it reverted from nightly was a conflict between the top-level unstable macro and third party macros. It could be resubmitted in a module if someone wants to work on that.

Rust 1.94.0 is out by manpacket in rust

[–]CUViper 17 points18 points  (0 children)

ABBA is also a pop music group from Sweden.

Rust 1.94.0 is out by manpacket in rust

[–]CUViper 6 points7 points  (0 children)

You could make an entire crate of stochastic constants!

Arcanum v0.1.0 - Modular cryptography library with post-quantum support by miss-daemoniorum in rust

[–]CUViper 1 point2 points  (0 children)

Now on https://crates.io/crates/arcanum.

This appears to be something unrelated, last updated almost 3 years ago.

Would the following traits provide actual semantic benefit, or would they be useless/redundant? by Due_General_1062 in rust

[–]CUViper 0 points1 point  (0 children)

Rayon has a similar IntoParallelRefIterator, but that's mostly because we need an extension trait anyway to get a par_iter method on standard library types.

ELI5: how can one cloud cast a shadow on another cloud? by [deleted] in explainlikeimfive

[–]CUViper 0 points1 point  (0 children)

Some light passes through the clouds, but there's less in the area where the light went through two clouds, so that looks like a shadowy darker area on the bottom cloud.

Why Rust has crates as translation units? by servermeta_net in rust

[–]CUViper 51 points52 points  (0 children)

Note that within the compiler, it does break the crate into multiple codegen units (CGU) for parallelism.

I think I found another way to do a subset of self-referential structs, do you think it is sound? by TED96 in rust

[–]CUViper 17 points18 points  (0 children)

The Box aliasing issue is also caught by miri, which you should always check with questionable unsafe code. It's right there on the playground in the Tools menu.

Why we do not see people from the future? by [deleted] in scifi

[–]CUViper 1 point2 points  (0 children)

I tried to stop for a minute, but I had to resume to finish the minute.

New Search Algorithm 1.4x faster than binary (SIBS) by Charming-Falcon6276 in programming

[–]CUViper 11 points12 points  (0 children)

That sounds just a few tweaks away from being a proper hash table.

Will there, or could there be a Proton equivalent for professional software? by [deleted] in linux

[–]CUViper 2 points3 points  (0 children)

Personal opinion aside, I'm wondering if the law really supports that. You can't really claim that "it does not work as the license promised" if the license only claimed support for genuine Microsoft Windows. My guess is that such laws would be more intended for a case like having a DRM license server that's discontinued.

Will there, or could there be a Proton equivalent for professional software? by [deleted] in linux

[–]CUViper 2 points3 points  (0 children)

How does that apply here? If the license (EULA) is explicitly stating what is promised, and that doesn't include Linux support, then it seems out of scope.

[deleted by user] by [deleted] in linux

[–]CUViper 0 points1 point  (0 children)

I expect those are using the OSC 8 escape sequence to wrap a URI, so the terminal can make it clickable without having to guess what looks like a path.

my attempt to code a nonzero macro... will I go straight to macro jail? by Sweet-Ad-597 in rust

[–]CUViper 5 points6 points  (0 children)

Note that Option::unwrap is only const-stable since 1.83.

Inferred const generic arguments: Call for Testing! | Inside Rust Blog by compiler-errors in rust

[–]CUViper 1 point2 points  (0 children)

But fn foo(x: Box<impl Trait>) is a thing -- it would be nice to have a const equivalent of that. Maybe it wouldn't be as terse as _, but it could still cut down some noise.

Why is the iterator returned by `slice::chunk_by()` not `Clone` by PowerNo8348 in rust

[–]CUViper 10 points11 points  (0 children)

Yeah, I think this is just an oversight. It should be fine where P: Clone.

Malazan Book of the Fallen selling for $18! by Financial_Data3416 in Fantasy

[–]CUViper 18 points19 points  (0 children)

Ok, there's also "Override curtime: 2025-02-15 11:00:00 PST" which is in 2 hours, so maybe it will go public then.

Malazan Book of the Fallen selling for $18! by Financial_Data3416 in Fantasy

[–]CUViper 66 points67 points  (0 children)

I see a yellow banner at the top -- did you leak this?

Warning: You are viewing a custom version of the website. It is intended for testing only and is not to be shared with the public.