Hacker GitHub

← All repos

rust-lang/rust

View on GitHub ↗ ★ 121,043 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

Mentions per year 1,825 mentions · busiest year 2023 (167)
20082026
  1. …change was implemented in 1.47.0 in 2020 where a bunch of traits were made work on all array sizes: https://github.com/rust-lang/rust/blob/master/RELEASES.md#ve... It took a few releases, until 1.51.0 in 2021, until custom traits could be…
    comment by est31 · 2022-05-19 · in Rust: A Critical Retrospective
  2. …Another resolved issue is that u128::MAX is not representable as f32, and thus the cast was UB: https://github.com/rust-lang/rust/issues/41799 . The routines have been rewritten/refactored multiple times since, and I had zero involvement…
  3. ▲ 78
    Rustc: Add do yeet expressions to allow experimentation in nightly
    story by remexre · 2022-05-06 · 60 comments
  4. …features so unstable and private that you can't even enable them with flags on nightly builds. [0] https://github.com/rust-lang/rust/pull/96709#issuecomment-11... [1] https://sabrinajewson.org/blog/the-better-alternative-to-lif...
    comment by legerdemain · 2022-05-06 · in Bugs that the Rust compiler catches for you
  5. That's experimental syntax that means something like "maybe const" -- https://github.com/rust-lang/rust/issues/67792
    comment by CUViper · 2022-05-03 · in An O(1) Generic Blog Post About Rust
  6. …your code to be bug free because the code written by someone else told you so is also dumb https://github.com/rust-lang/rust/issues/38899 who to trust in that case? -- educate and trust developers, use tools to audit your code when needed
    comment by Shadonototra · 2022-04-25 · in The Hare programming language
  7. …emitting aligned loads, getting Clang and GCC to stop emitting aligned loads might be trickier. https://github.com/rust-lang/rust/issues/27060
    comment by notriddle · 2022-04-20 · in The x86 architecture is the weirdo (2004)
  8. …is not valid utf-8. This means that at least one of the three functions must be marked unsafe. [1] https://github.com/rust-lang/rust/blob/027a232755fa9728e9699...
    comment by aliceryhl · 2022-04-11 · in What Is Rust's Unsafe? (2019)
  9. …use `static mut`. It's dangerous[1]. In nightly you now have `SyncUnsafeCell`[2] to avoid it. [1] https://github.com/rust-lang/rust/issues/53639 [2] https://github.com/rust-lang/rust/pull/95438
    comment by afdbcreid · 2022-04-11 · in What Is Rust's Unsafe? (2019)
  10. …to enable llvm assertions, but it needs to be set at compile time (of the compiler) in config.toml: https://github.com/rust-lang/rust/blob/1f7fb6413d6d6c0c929b2... I don't know how these checks compare to what clang is doing.
    comment by est31 · 2022-04-11 · in Achievement unlocked: rustc segfault
  11. …to rust is that this happens with rust compiled binaries also at run-time, in pony very rarely. https://github.com/rust-lang/rust/issues?q=is%3Aissue+SIGSEG... => 87 + 291 vs https://github.com/ponylang/ponyc/issues?q=is%3Aissue+SIGSEG...…
    comment by rurban · 2022-04-10 · in Achievement unlocked: rustc segfault
  12. …compiler hack [2][3], but this really needs proper support in rust. Something like “AliasCell”. [1] https://github.com/rust-lang/rust/issues/63818 [2] https://github.com/rust-lang/rust/pull/82834 [3] https://github.com/tokio-rs/tokio/pull/3…
    comment by celeritascelery · 2022-04-03 · in Lifetime Annotations for C++
  13. …done something wrong. Of course there was the one time when it was an actual compiler bug, heh. https://github.com/rust-lang/rust/issues/51117
  14. FWIW, Rust does have fast thread locals, but only in nightly. https://github.com/rust-lang/rust/issues/29594
    comment by roblabla · 2022-03-31 · in The wild world of non-C operating systems
  15. …other excellent performance improvements like Google's SwissTable and pattern-defeating quicksort. https://github.com/rust-lang/rust/issues/29594 https://matklad.github.io/2020/10/03/fast-thread-locals-in-r...
    comment by infamouscow · 2022-03-31 · in The wild world of non-C operating systems
  16. ▲ 2
    Rust Strict Provenance
    story by ibraheemdev · 2022-03-31 · 0 comments
  17. …improved during consensus making because there isn't any points scoring. For example look at https://github.com/rust-lang/rust/pull/93208 -- The proposer initially wanted to offer Add<T> for Wrapping<T> but is it really clear this always…
  18. …rationale for Rust [4] was also similar: D's inline assembly DSL only works in x86 and x86-64. [1] https://github.com/rust-lang/rust/issues/5853 [2] https://github.com/rust-lang/rfcs/issues/602 [3] https://internals.rust-lang.org/t/better-c…
    comment by lifthrasiir · 2022-03-11 · in CXX – safe interop between Rust and C++
  19. …and https://internals.rust-lang.org/t/synchronized-ffi-access-to... and https://github.com/rust-lang/rust/issues/27970 Note that for many well behaved programs, environment variables are read only at program startup (before creati
  20. …by untrusted, potentially malicious input. And as said in the other comment, this can lead to UB: https://github.com/rust-lang/rust/issues/32670 (it's Linux here that is at fault, really, for offering a hugely unsafe API through the…
  21. …provide, but my understanding is that you can get in trouble by implementing it yourself. [1] https://github.com/rust-lang/rust/issues/89522#issuecomment-... [2] editing to add: or at least a more concrete expression of the problem.…
  22. https://github.com/rust-lang/rust/issues/40180 was the first one; and Phil has created a pre-RFC a few days ago: https://internals.rust-lang.org/t/pre-rfc-interrupt-calling-... (That said you're right that naked functions still have a…
    comment by steveklabnik · 2022-02-25 · in Rust 1.59.0 with inline assembly support etc.
  23. …https://ebarnard.github.io/2019-06-03-rust-smaller-trait-imp... https://github.com/rust-lang/rust/issues/32976 A little confusing but it looks like you can get to it.
    comment by Dylan16807 · 2022-02-24 · in The prospects for 128 bit processors (1995)
  24. …large heap arrays (because it has to stack-allocate the array, then memcpy to the heap), eg. https://github.com/rust-lang/rust/issues/53827 . I haven't encountered this firsthand though. > It also again boils down to a case of premature…
    comment by nyanpasu64 · 2022-02-24 · in Is C++ Doomed?
  25. Rust has the same exception safety issues. Eg Vec::retain_mut: https://github.com/rust-lang/rust/blob/532d3cda90b8a729cd982...
    comment by edflsafoiewq · 2022-02-23 · in Is C++ Doomed?
  26. …example[0] showing how much of a discussion is required for a relatively simple QoL feature. [0]: https://github.com/rust-lang/rust/issues/62358
    comment by sinistersnare · 2022-02-21 · in Chris Lattner left Swift core team
  27. …to get the raw command line string and then attempts to parse it in the same way as modern C/C++. https://github.com/rust-lang/rust/blob/3b186511f62b0ce20e72e... The rules themselves are officially documented here:…
  28. https://github.com/rust-lang/rust/issues/9795 and the various things linked from it (prs, commits, etc) are the best way to get the context.
    comment by steveklabnik · 2022-02-15 · in Structurally-Typed Condition Handling
  29. The changelog is also worth a read. It goes all the way back to 0.1 in 2012: https://github.com/rust-lang/rust/blob/master/RELEASES.md
    comment by nicoburns · 2022-02-13 · in Rust started as a personal project in 2006
  30. …| Key::Char('q')) => break, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information error[E0658]: or-patterns syntax is experimental -->…
    comment by asimjalis · 2022-02-12 · in Show HN: Jless, a command-line JSON viewer
  31. …alias rules. I remember Rust emitted proper noalias IR to LLVM, only for it to be promptly ignored. https://github.com/rust-lang/rust/issues/54878
    comment by Ygg2 · 2022-02-07 · in Nim vs Rust Benchmarks
  32. …reason it can’t support partial initialization too. Indeed, there’s an open issue for it: https://github.com/rust-lang/rust/issues/54987 But there are a lot of desired features with open issues, so don’t expect this to be implemented…
  33. …used with bools. [2][3] [1] https://doc.rust-lang.org/std/mem/union.MaybeUninit.html#ini... [2] https://github.com/rust-lang/rust/issues/53491 [3] https://doc.rust-lang.org/std/mem/fn.uninitialized.html
    comment by TheCycoONE · 2022-01-30 · in Uninitialized memory: Unsafe Rust is too hard
  34. ▲ 11
    Make tidy check for magic numbers that spell things
    story by ne0phyte · 2022-01-24 · 2 comments
  35. ▲ 2
    Rust: Forbid Pineapple on Pizza
    story by dfrey1 · 2022-01-23 · 0 comments
  36. …even though the Security Response WG didn't realize the severity of the issue at the time. See: https://github.com/rust-lang/rust/issues/48504
  37. …only started hearing about it when it became close to stabilization (around November last year?). https://github.com/rust-lang/rust/pull/90473/
    comment by lmkg · 2022-01-14 · in Format Strings in Rust 1.58
  38. …code). The effort is currently on hold, but it's possible that it will resume in the future. [0]: https://github.com/rust-lang/rust/pull/56410
  39. …calls CreateFile on Windows, not libc open. Isn't CreateFile correct Kernel32.dll API to call? https://github.com/rust-lang/rust/blob/master/library/std/sr...
    comment by sanxiyn · 2022-01-04 · in Porting Rust's Std to Rustix
  40. …found out the problem, I took the time to fill a bug report. I don't know if anyone looked at it. https://github.com/rust-lang/rust/issues/73026
    comment by ogoffart · 2021-12-31 · in Why is my Rust build so slow?
  41. …executed, only relevant on fresh compiles). The regression was (partly) fixed by adding caching: https://github.com/rust-lang/rust/pull/90423/files and if I recall correctly was introduced by a feature change that fixed a bunch of…
    comment by estebank · 2021-12-31 · in Why is my Rust build so slow?
  42. (The underlying issue is https://github.com/rust-lang/rust/issues/91598 .)
    comment by Smaug123 · 2021-12-31 · in Why is my Rust build so slow?
  43. …to see what was what, instead through I don't quite remember which chain got me to issue 91598 ( https://github.com/rust-lang/rust/issues/91598 ). Added a follow to the issue and various PRs proposed for it, and locked the project to 1.56.
    comment by masklinn · 2021-12-31 · in Why is my Rust build so slow?
  44. If you encounter incomprehensible error messages, I would encourage you to file a ticket at http://github.com/rust-lang/rust/issues . We consider them bugs and are diligent about dealing with them.
    comment by estebank · 2021-12-31 · in Why is my Rust build so slow?
  45. https://github.com/rust-lang/rust/pull/90132#issuecomment-95... It depends on whether what you're stabilizing is an output format or a set of functionality. I think it's reasonable to do the latter. (If you'd like to talk about that…
    comment by JoshTriplett · 2021-12-31 · in Why is my Rust build so slow?
  46. …as proposed, is a bad idea in my opinion. I'm sad that the concerns have not been addressed: https://github.com/rust-lang/rust/pull/90132#issuecomment-94...
    comment by est31 · 2021-12-31 · in Why is my Rust build so slow?
  47. …it fast. I mean, if this were a higher priority, Rust issue #26600 would have been fixed years ago. https://github.com/rust-lang/rust/issues/26600
    comment by sanxiyn · 2021-12-31 · in Why is my Rust build so slow?
  48. The AVR codegen bug is discussed here: https://github.com/rust-lang/rust/issues/82242#issuecomment-... Seems to be due to the LLVM-AVR patchset somehow expecting gcc-compatible compiler intrinsics (for division), whereas Rust provides…
    comment by zozbot234 · 2021-12-29 · in This Year in Embedded Rust
  49. …unsound under the proposed Stacked Borrows rules. And I just found a LLVM codegen soundness issue: https://github.com/rust-lang/rust/issues/63787 .
    comment by nyanpasu64 · 2021-12-19 · in Thread Safety in C++ and Rust
  50. ▲ 3
    Error: Ferris cannot be used as an identifier
    story by oskari · 2021-12-16 · 1 comment