905 points by mbStavola 8 days ago | 321 comments | View on ycombinator
nirinor 8 days ago |
n_u 8 days ago |
> warning: unused dependency `tracing-subscriber` --> Cargo.toml:23:1 | 23 | tracing-subscriber.workspace = true | ^^^^^^^^^^^^^^^^^^ | = note: `cargo::unused_dependencies` is set to `warn` by default help: consider removing the dependency on `tracing-subscriber`
Heck yes
ammar_az 8 days ago |
- bool::toggle() https://doc.rust-lang.org/stable/std/primitive.bool.html#met...
- Box::map() https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#m...
- str::trim_prefix(), str::trim_suffix, Path::trim_prefix()
jadbox 8 days ago |
steveklabnik 8 days ago |
ashvardanian 7 days ago |
Huge thanks to everyone making this happen! I’ve only been on the consuming end so far, but hopefully I’ll find something useful to contribute myself. Pointer provenance might be a nice next challenge :)
ComputerGuru 8 days ago |
levkk 7 days ago |
ustad 8 days ago |
pmichaud 8 days ago |
mkl 7 days ago |
Why is that? It seems like that makes min-publish-age much less effective.
fluffiac 8 days ago |
when can we expect `Result::into_ok` and `Result::into_err` to land? the blog post includes the `infallible_unwrap` demo which is the exact functionality these two functions implement. i wonder why they didn't release these at the same time as never?
nbardy 7 days ago |
It seems like the AI can really write safe types and fast, efficient code in rust that beats anything else.
I've moved basically all my projects over to it. And I don't really know how it compares to other fast languages. My personal langue preference was always for readable languages like Clojure or Ruby, but at this point I'm not reading any code and just want performance.
uncivilized 7 days ago |
esFran 7 days ago |
I have to choose: what would you recommend? I think C++ could be the perfect fit, but it keeps me out of Linux kernel development. With LLMs, is the safety advantage of Rust's borrow checker mitigated?
lukax 8 days ago |
I just spent last few days fixing arena leaks (Bumpalo doesn't call drop) and had to use allocator-api2 for Vec::new_in which is now available in stable Rust.
einpoklum 7 days ago |
For comparison, C has had, say, 4 versions, and C++ 7 had versions (depending on how you count). But - Java has had 27 main versions and probably more than a 100 if you count minor versions/updates.
AndruLuvisi 7 days ago |
wpollock 8 days ago |
As this release seems to include breaking changes, shouldn't the major version number have been bumped, as per semver?
Has the Rust book(s) been updated to include the new APIs?
Panzerschrek 7 days ago |
It's not a proper solution. A malicious crate can just contain a time-based switching mechanism in order to be undetected some time (let's say a couple of months) in order to become widespread.
superlupo 7 days ago |
karavelov 8 days ago |
shevy-java 8 days ago |
Is that the raven that says Ni?
Alien1Being 7 days ago |
Is this good for AI vibecoding ?
Human intelligibility and coherence does not seem to matter any more, for current software development.
hobofan 8 days ago |
jokoon 7 days ago |
sawirricardo 7 days ago |
kinfish 7 days ago |
unvalley 7 days ago |
badmonster0 7 days ago |
dharmasthan 7 days ago |
AtreusS 7 days ago |
yoy0721 7 days ago |
joshsyn 7 days ago |
joshsyn 7 days ago |
theapiartist 8 days ago |
Surac 8 days ago |
KolmogorovComp 8 days ago |
Sol- 7 days ago |
129486799 7 days ago |
grommz 8 days ago |
fallingmeat 8 days ago |
- Stabilize never type
- Stabilize custom allocators
- Introduced minimum publish age configurations, also known as dependency cooldowns. When the relevant config is set, the resolver ignores versions published more recently than that, unless they are already in Cargo.lock. (RFC 3923) docs #17335
- cargo-install: now uses the existing lockfile in the .crate tarball by default. --locked in cargo install becomes a no-op. #17388