rust-lang/rust
View on GitHub ↗ ★ 120,971 Rust
Empowering everyone to build reliable and efficient software.
1,825 mentions on Hacker News by 819 people: 158 stories, 1,667 comments · first 2012-01-20 · latest 2026-10-22
20082026
-
FWIW this future lint `non_exhaustive_omitted_patterns` will help a bit: https://github.com/rust-lang/rust/issues/89554
comment by Thom2000 · 2026-10-22 · in Rust Style Guide -
…ways also significantly more complex than C++, believe it or not. rustc is also awfully shoddy. https://github.com/rust-lang/rust/issues/164348#issuecomment...
comment by eddifyoppor · 2026-10-16 · in C++26 Contracts: Introduction to Preconditions and Postconditions -
…quality project, with lots of eyes on it and lots of effort put into it. And then this shows up. https://github.com/rust-lang/rust/issues/164348#issuecomment... A bug as careless as can be. Relying wantonly on hashing for equality…
comment by raddikal · 2026-10-16 · in Show HN: Proa – A Rust web framework with fast SSR and multi-target rendering -
…deliberately write code that doesn't compile. You don't need 'static to trigger the bug [0] [0]: https://github.com/rust-lang/rust/issues/164250#issuecomment...
comment by aw1621107 · 2026-10-14 · in 11 year old unsoundness bugs found in Rust borrow checker -
…or something. Here's the current list of similar (unsoundness-causing) open compiler bugs in Rust: https://github.com/rust-lang/rust/issues?q=state%3Aopen%20la...
comment by yencabulator · 2026-10-13 · in 11 year old unsoundness bugs found in Rust borrow checker -
…was missing. My guess was just that maybe someone didn't think it was necessary for soundness. [0]: https://github.com/rust-lang/rust/issues/164250#issuecomment...
comment by LoganDark · 2026-10-13 · in 11 year old unsoundness bugs found in Rust borrow checker -
From TFA: > How on earth was this not found before this??? https://github.com/rust-lang/rust/issues/164250#issuecomment... > Assigning P-high https://github.com/rust-lang/rust/issues/164250#issuecomment... In general I agree with fg137's…
comment by akoboldfrying · 2026-10-13 · in 11 year old unsoundness bugs found in Rust borrow checker -
You got my upvote and this one decade old issue: https://github.com/rust-lang/rust/issues/25860
comment by wg0 · 2026-10-13 · in 11 year old unsoundness bugs found in Rust borrow checker -
"I" stands for "issue" https://github.com/rust-lang/rust/labels?q=unsound
comment by pas · 2026-10-13 · in 11 year old unsoundness bugs found in Rust borrow checker -
…some point, will the superintelligence fix all the bugs autonomously? When is that going to happen? https://github.com/rust-lang/rust/issues https://github.com/python/cpython/issues What about new features? In every thread about Rust,…
comment by chubot · 2026-10-12 · in The gap in shared understanding of LLM capability is widening -
…so it might not hurt to tag onto the bug report the author will (hopefully) eventually submit. [0]: https://github.com/rust-lang/rust/pull/117727 [1]: https://github.com/rust-lang/rust/pull/118031 [2]:…
comment by aw1621107 · 2026-10-07 · in Rust's derive often implies inline -
…dependency management in Rust [1] and Python [2] sometimes uses references that work similar to https://github.com/rust-lang/rust/commit/ec999ed [3] to suggest one particular version of the project, authored by the specified maintainer.…
comment by edelbitter · 2026-10-02 · in Git 3.0's upcoming SHA-256 default will be a costly mistake -
…front, but I haven't kept up to date on the current status of that. There was a PR showing promise https://github.com/rust-lang/rust/pull/129102 (later landed as https://github.com/rust-lang/rust/pull/145354 , 10% on a specific serde-heavy…
comment by estebank · 2026-10-01 · in How to speed up the Rust compiler in September 2026 -
…trait: https://doc.rust-lang.org/std/ops/trait.Index.html#tymethod.... Vec implements Index here: https://github.com/rust-lang/rust/blob/d080e7dff1b0fc5454154... Vec's Index defers to slice's: https://github.com/rust-lang/rust/blob/d080e7df…
comment by OptionOfT · 2026-09-28 · in Rusty thoughts on "Parse, don't validate" -
This actually fixes a case that became a problem for Rust implementations: https://github.com/rust-lang/rust/issues/28728 So yes, it is good for Rust.
comment by layer8 · 2026-09-18 · in C++26: Trivial infinite loops are no longer undefined behaviour -
…in Rust for a time, where `loop {}` is a valid way to implement a diverging function: https://github.com/rust-lang/rust/issues/28728
comment by kibwen · 2026-09-18 · in C++26: Trivial infinite loops are no longer undefined behaviour -
…uses) needs better support for musttail (e.g. some architectures just don't support it [2]). [1] https://github.com/rust-lang/rust/issues/112788 [2] https://github.com/rust-lang/rust/issues/153827 By-default guaranteed tail calls really…
comment by gpm · 2026-09-14 · in Ubuntu 26.10 completes transition to Rust-based coreutils -
…what that something ought to be in order to produce a valid program. Currently it expands to this: https://github.com/rust-lang/rust/blob/98fd715edd3a0a5aa8f20... , which is a function with a return type of `!`, which has indicated a…
comment by kibwen · 2026-09-13 · in Stabilizing Rust's Never Type -
…and enums. I fixed some of that for the standard containers by writing some natvis files for std: https://github.com/rust-lang/rust/issues?q=state%3Aclosed%20... . Admittedly, they broke a few times. They also weren't automatically…
comment by MaulingMonkey · 2026-09-10 · in Rust is tier-1 language at Microsoft -
I'm not super certain you're interested in answers, but assuming good faith: > https://github.com/rust-lang/rust/blob/main/library/core/src ... How large a percentage of the logic code there is inside of an unsafe block? The claim isn't…
comment by dwattttt · 2026-08-31 · in Zig: Pointer Stability for ArrayLists -
…( https://hackmd.io/nNHdKkp1TTK7jat0I-ABqA ) and the implementation has been updated to match ( https://github.com/rust-lang/rust/pull/157428 ). The stabilization PR is just waiting on final approval by the relevant team members, with no…
comment by kibwen · 2026-08-28 · in Saving 100 terabytes of memory by optimizing 1.1.1.1's DNS cache -
…ps://news.ycombinator.com/item?id=48743462 - It's not me, it's the compiler (2026-07-01, 26 comments) https://github.com/rust-lang/rust/issues/158206
comment by omoikane · 2026-08-23 · in Rust 1.98 got a P-critical miscompilation -
…topic of RNG, the functionality of the getrandom crate is getting ready to be exposed from libstd: https://github.com/rust-lang/rust/pull/157168
comment by kibwen · 2026-08-21 · in Malicious Rust crate Arrayref runs a build-time payload -
…it looks interesting, but I am not sure about the details of it. This is the tracking GitHub issue https://github.com/rust-lang/rust/issues/139076 . There is also the challenge of backwards compatibility, which makes the feature harder to…
comment by modularitynew · 2026-08-20 · in Canonical backs new project to translate large C codebases into safe Rust -
It is a part of the rust codebase: https://rustc-dev-guide.rust-lang.org/offload/internals.html https://github.com/rust-lang/rust/issues/131513
comment by supermatt · 2026-08-17 · in GPU Offload in Rust: Portable, Safe, and Fast -
> Rust has stated they do not intend to fix cve-rs. Huh? That joke repo seemed to ride on https://github.com/rust-lang/rust/issues/25860 which is certainly considered a bug. Here's an actually useful list of known soundness issues, all of…
comment by yencabulator · 2026-08-17 · in The Case Against Formal Verification, 50 Years Later -
…will also gives us a syntax that looks like programming not math (I'm looking at you, Creusot): https://github.com/rust-lang/rust/issues/128044
comment by yencabulator · 2026-08-17 · in The Case Against Formal Verification, 50 Years Later -
https://github.com/rust-lang/rust/issues/159298 is the tracking issue for the unstable feature
comment by LoganDark · 2026-08-12 · in Rust SIMD on the GPU -
…by default, but consider such a change unlikely unless "something materially changes" [0]. [0]: https://github.com/rust-lang/rust/issues/47739#issuecomment-...
comment by aw1621107 · 2026-08-11 · in Faster floating point math with Rust's new API -
…to everything ever. [0]: https://doc.rust-lang.org/std/primitive.slice.html#method.as... [1]: https://github.com/rust-lang/rust/issues/130366 [2]: https://github.com/rust-lang/rust/pull/151603 [3]: https://github.com/rust-lang/rust/pull/152…
comment by LoganDark · 2026-08-11 · in Rust SIMD on the GPU -
…leads to a bad experience, and the latter is insufficient. A recent example of looking at this is https://github.com/rust-lang/rust/pull/159689 , where `Arc::new(RwLock::new(HashMap<i32, i64>::default()));` currently produces error[E0423]:…
comment by estebank · 2026-08-07 · in Parsers don't have to be complicated -
…Rust could at least adopt Haskell GHC's model of incrementality, which is currently file-level: https://github.com/rust-lang/rust/issues/2369#issuecomment-1... This would already help a lot. I recommend anybody who's interested in…
comment by nh2 · 2026-07-28 · in Zig's Incremental Compilation Internals -
…I don't believe I've constructed cvs-rs's hole by accident. cve-rs's code links to https://github.com/rust-lang/rust/issues/25860 , which is admittedly still open after a decade. Progress appears to still be ongoing though! Related: •…
comment by MaulingMonkey · 2026-07-25 · in Fil-C: Garbage In, Memory Safety Out [video] -
…mentioning that Rust's long-awaited `Allocator` trait is perilously close to stabilizing; watch for https://github.com/rust-lang/rust/pull/157428 to be merged, then the stabilization PR to progress here:…
comment by kibwen · 2026-07-16 · in How Our Rust-to-Zig Rewrite Is Going -
For instance, rust doesn't support PAC yet https://github.com/rust-lang/rust/issues/73628 . Support for PAC wasn't even in upstream LLVM for a while (it now is, but lld still doesn't support it).
comment by glandium · 2026-07-16 · in Reynard: A real Firefox web browser for iOS 13 or later -
…Also, Zig is still in beta. [1] https://codeberg.org/ziglang/zig/issues?state=open&type=all&... [2] https://github.com/rust-lang/rust/issues?q=is%3Aissue%20stat...
comment by shirol · 2026-07-13 · in Zig Creator Calls Spade a Spade, Anthropic Blows Smoke -
…unstable in Rust right now is a standardized interface for generically working with allocators (see https://github.com/rust-lang/rust/pull/157428 for the most recent progress), including support for the containers provided by the stdlib.
comment by kibwen · 2026-07-12 · in Understanding the Odin programming language -
I'm not sure about the details of Rust, but this is a good approximation https://github.com/rust-lang/rust/graphs/contributors Why do you want to know?
comment by gus_massa · 2026-07-11 · in Segfault on Rust 1.97.0 -
…busy loops instead of waiting on the main thread. See the comment in the Rust source here: https://github.com/rust-lang/rust/blob/77a4fb62f70c6ea05e182... This means that if care is taken to avoid any other code that makes the main thread…
comment by kettlecorn · 2026-05-27 · in Theseus: Translating Win32 to WASM -
…would have to check for panic strategy to maintain the correct behaviour after optimisation. [0] https://github.com/rust-lang/rust/issues/92327
comment by gobdovan · 2026-05-26 · in Performance of Rust Language [pdf] -
…problem stems from rust's early decision to requiring concrete types at interface boundaries. https://github.com/rust-lang/rust/issues/63063
comment by josephg · 2026-05-24 · in .NET (OK, C#) finally gets union types -
…about a codebase. Since it does it anyway I added dossier pages to it as well https://searchcode.com/repo/github.com/rust-lang/rust Which is useful for humans, and shows what the system is creating. Best part is that I get to use the tools…
comment by boyter · 2026-05-10 · in Ask HN: What are you working on? (May 2026) -
…a mess across platforms and ABIs, but that can be solved by treating all NaNs as identical.) [0] https://github.com/rust-lang/rust/issues/114479
comment by LegionMammal978 · 2026-05-08 · in Floats Don't Agree with Themselves -
…issue in TFA's introduction. [0] https://rust-lang.github.io/rfcs/3514-float-semantics.html [1] https://github.com/rust-lang/rust/issues/114479
comment by LegionMammal978 · 2026-05-08 · in Floats Don't Agree with Themselves -
It depends: https://github.com/rust-lang/rust/pull/155403#issuecomment-4...
comment by slanterns · 2026-05-05 · in Zig → Rust porting guide -
GitHub have some quite nice feeds If you want all the commits from a repo you can do something like: https://github.com/rust-lang/rust/commits/main/.atom And if you now only is interested in the num module you can do:…
comment by erk__ · 2026-05-04 · in Introduction to Atom -
…Someone above mentioned that such an API is being considered for inclusion in libstd in this issue: https://github.com/rust-lang/rust/issues/120426
comment by kibwen · 2026-04-29 · in Bugs Rust won't catch -
…://github.com/tialaramex/nook/blob/main/src/balanced.rs 2: https://github.com/rick-de-water/nonany 3: https://github.com/rust-lang/rust/issues/135996
comment by wongarsu · 2026-04-27 · in Box to save memory in Rust -
…one part of async Rust that I think will need somewhat painful changes is Stream/AsyncIterator ( https://github.com/rust-lang/rust/issues/79024#issuecomment-... ), but those aren't yet stable, so hopefully some transition pain is tolerable…
comment by oconnor663 · 2026-04-25 · in What async promised and what it delivered -
…that fixes that mistake As part of the runtime/stdlib or as a third-party library? [0]: https://github.com/rust-lang/rust/issues/17325 [1]: https://without.boats/blog/why-async-rust/
comment by aw1621107 · 2026-04-25 · in What async promised and what it delivered