Hacker GitHub

← All repos

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

Mentions per year 1,825 mentions · busiest year 2023 (167)
20082026
  1. …in the wrong direction. [0] https://github.com/google/guava/wiki/Release21#user-content-... [1] https://github.com/rust-lang/rust/blob/1c63ec48b8cbf553d291a...
    comment by the8472 · 2022-07-22 · in The trouble with symbolic links
  2. …example, but I hope you know what I mean). Thankfully, there is also a solution to this problem: https://github.com/rust-lang/rust/issues/90091 split_array will eventually allow something like the following, which avoids any explicit…
    comment by proto_lambda · 2022-07-15 · in Rust should not have provided `unwrap`
  3. …for your return type once that feature becomes stable (already possible if you're on nightly) [0] - https://github.com/rust-lang/rust/issues/84277
  4. …https://hirrolot.github.io/posts/rust-is-hard-or-the-misery-... , num-traits, and variance and https://github.com/rust-lang/rust/issues/25860 is absolutely bogging me down. I feel (and observe as people try modeling contracts in traits)…
    comment by nyanpasu64 · 2022-07-09 · in Go generics are not bad
  5. …talking about how GATs were very helpful for Chumsky to model their parsing and combinators. [0] https://github.com/rust-lang/rust/pull/96709
  6. …optimization implemented: https://github.com/rust-lang/rfcs/issues/1230 , or is being worked: https://github.com/rust-lang/rust/issues/46213 . These simple ideas on the surface sometimes can be very hard to implement in reality due to…
    comment by WiSaGaN · 2022-07-08 · in Optimized Enum Sizes in Rust
  7. …(he's still contributor #6 by commit[1] despite not having worked on it for the past 7 years!) [1]: https://github.com/rust-lang/rust/graphs/contributors
  8. …in the PR of what exactly to stabilize [0]. I posted it as its own separate post here [1]. [0] https://github.com/rust-lang/rust/pull/96709 [1] https://news.ycombinator.com/item?id=31939077
    comment by cercatrova · 2022-07-01 · in Rust 1.62.0
  9. …interesting though - surely you would have flagged the equivalent C++ code to what is discussed in https://github.com/rust-lang/rust/issues/93740 , if my understanding is correct - akin to std::unique_ptr<pthread_mutex_t>, as obviously…
    comment by jcelerier · 2022-06-30 · in Rust 1.62.0
  10. …level of unrolling since we deemed it unlikely that large inputs would need case conversions. [0]: https://github.com/rust-lang/rust/pull/97046
    comment by conradludgate · 2022-06-28 · in tolower() in bulk at speed
  11. …code. Is this what you’re talking about? Let me show you two links: 1. Rust version history: https://github.com/rust-lang/rust/blob/master/RELEASES.md 2. GCC changes: https://gcc.gnu.org/gcc-12/changes.html#c-family Compared to Rust, GCC,…
  12. https://github.com/rust-lang/rust/issues/20198
  13. The headline feature of rustc memory management is the use of arenas: https://github.com/rust-lang/rust/blob/10f4ce324baf7cfb7ce2b... //! The arena, a fast but limited type of allocator. //! //! Arenas are a type of allocator that destroy…
    comment by notriddle · 2022-06-23 · in How safe is Zig?
  14. …demands. This is a common misconception which I think is better addressed by Daniel Lamire here: https://github.com/rust-lang/rust/issues/68455#issuecomment-... > - You will still lag behind games, because those use CPU+GPU while this…
    comment by anonymoushn · 2022-06-21 · in Software Disenchantment (2018)
  15. …Apache 2.0 license[1]. [0]: https://opensource.microsoft.com/pdf/microsoft-contribution-... [1]: https://github.com/rust-lang/rust/blob/master/LICENSE-APACHE...
  16. …publish status updates. Over on the Reddit discussion someone pointed to this GitHub issue too: https://github.com/rust-lang/rust/pull/81746#issuecomment-10...
  17. …parser to stay simple. I know there were efforts to remove it, but it appears to be here to stay. https://github.com/rust-lang/rust/blob/master/src/test/ui/pa...
    comment by dnsco · 2022-06-08 · in TC39 Proposal: Type Annotations
  18. Yet the original issue is still open: https://github.com/rust-lang/rust/issues/36481
  19. …though `NonNull`'s API is written in terms of `*mut T`, it is implemented in terms of `*const T`: https://github.com/rust-lang/rust/blob/4ca19e09d302a4cbde14f... . This makes it covariant (`NonNull<T>` for `T: 'long` is a subtype of…
    comment by Rusky · 2022-06-07 · in Trivia About Rust Types
  20. …there have been RFCs kicking around since 2017 aiming to fix these problems. Blergh. Eg: GATs: https://github.com/rust-lang/rust/issues/44265 (This one might land soon!) Async closures: https://github.com/rust-lang/rust/issues/62290 (seems…
    comment by josephg · 2022-06-06 · in Arc and Mutex in Rust
  21. …matter with the removing the allocation here. I opened a bug about this on the rust repo. [1] [1] https://github.com/rust-lang/rust/issues/97751
  22. That one was already reported to the tracker :) https://github.com/rust-lang/rust/issues/32670 (To be clear, I’m not saying that there’s no issues that aren’t in the tracker yet. But there are a bunch of them that are. More will absolutely…
  23. For more on switching Rust to mold, see https://github.com/rust-lang/rust/issues/94347
  24. …what rustc outputs, as some text decoration have been stripped, but that is a lot of text. [2]: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao...
  25. …for me was stable Rust doesn't have fast thread locals[1] nor stack probes for arm64[2]. [1]: https://github.com/rust-lang/rust/issues/29594 [2]: https://github.com/rust-lang/rust/issues/77071
  26. At the very least, I would have used an AtomicBool rather than a static mut. See https://github.com/rust-lang/rust/issues/53639 . As a bonus, AtomicBool doesn't require any unsafe code.
  27. IIRC this is a problem specific to Default, see here: https://github.com/rust-lang/rust/issues/61415#issuecomment-... And here: https://github.com/rust-lang/rust/pull/62435
    comment by steveklabnik · 2022-05-20 · in Rust: A Critical Retrospective
  28. https://github.com/rust-lang/rust/issues/50784
    comment by yencabulator · 2022-05-19 · in Rust: A Critical Retrospective
  29. …not using std need to specify the alloc_error_handler, which you can't do on stable yet: https://github.com/rust-lang/rust/issues/51540
    comment by CryZe · 2022-05-19 · in Rust: A Critical Retrospective
  30. …drift. Sometimes it's also the formatter though that outputs intensely sideways drifting code: https://github.com/rust-lang/rust/blob/1.60.0/compiler/rustc...
    comment by est31 · 2022-05-19 · in Rust: A Critical Retrospective
  31. …crate is stable since 1.36.0: He is referring to the allocator api[1], not the std lib module [1] https://github.com/rust-lang/rust/issues/32838
    comment by celeritascelery · 2022-05-19 · in Rust: A Critical Retrospective
  32. …and match, but no for loops as they are trait based and traits in const are still being developed): https://github.com/rust-lang/rust/blob/master/RELEASES.md#ve...
  33. …great. However, intra doc links have the limitation that you can't link to downstream crates: https://github.com/rust-lang/rust/issues/74481
    comment by est31 · 2022-05-19 · in Rust: A Critical Retrospective
  34. …what the author means by the alloc crate not being stable? The alloc crate is stable since 1.36.0: https://github.com/rust-lang/rust/blob/master/RELEASES.md#ve... Regarding the reproducible builds concern around paths being integrated into…
    comment by est31 · 2022-05-19 · in Rust: A Critical Retrospective
  35. …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
  36. …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…
  37. …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
  38. 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
  39. …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
  40. …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)
  41. …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)
  42. …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)
  43. …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
  44. …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
  45. …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++
  46. …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
  47. 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
  48. …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
  49. …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…
  50. …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++