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
-
…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 -
…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` -
…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
comment by dymk · 2022-07-15 · in Rust should not have provided `unwrap` -
…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 -
…talking about how GATs were very helpful for Chumsky to model their parsing and combinators. [0] https://github.com/rust-lang/rust/pull/96709
comment by cercatrova · 2022-07-09 · in Chumsky, a Rust parser-combinator library with error recovery -
…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 -
…(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
comment by littlestymaar · 2022-07-04 · in Virgil: A fast and lightweight programming language that compiles to WASM -
…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 -
…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 -
…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 -
…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,…
comment by esjeon · 2022-06-26 · in Linus Torvalds: Rust for the Kernel Could Possibly Be Merged for Linux 5.20 -
https://github.com/rust-lang/rust/issues/20198
comment by aaaaaaaaaaab · 2022-06-25 · in What is `Box<str>` and how is it different from `String` in Rust? -
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? -
…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) -
…Apache 2.0 license[1]. [0]: https://opensource.microsoft.com/pdf/microsoft-contribution-... [1]: https://github.com/rust-lang/rust/blob/master/LICENSE-APACHE...
comment by giaour · 2022-06-16 · in Despite best efforts .NET is still not an open platform -
…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...
comment by cfallin · 2022-06-10 · in Cranelift, Part 4: A New Register Allocator -
…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 -
Yet the original issue is still open: https://github.com/rust-lang/rust/issues/36481
comment by what_the_h321 · 2022-06-08 · in Accidentally Quadratic – Rust hash iteration+reinsertion -
…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 -
…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 -
…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
comment by veber-alex · 2022-06-05 · in Why Rust easily optimizes out smart pointers where C++ cannot? -
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…
comment by steveklabnik · 2022-06-03 · in Rust Is Hard, Or: The Misery of Mainstream Programming -
For more on switching Rust to mold, see https://github.com/rust-lang/rust/issues/94347
comment by epage · 2022-06-03 · in Using the mold linker for fun and 3x-8x link time speedups -
…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...
comment by estebank · 2022-06-03 · in Rust Is Hard, Or: The Misery of Mainstream Programming -
…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
comment by infamouscow · 2022-05-30 · in Dragonflydb – A modern replacement for Redis and Memcached -
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.
comment by FreeFull · 2022-05-21 · in Rustdesk – Remote desktop software, an open source TeamViewer alternative -
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 -
https://github.com/rust-lang/rust/issues/50784
comment by yencabulator · 2022-05-19 · in Rust: A Critical Retrospective -
…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 -
…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 -
…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 -
…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...
comment by est31 · 2022-05-19 · in The Rust Borrow Checker – A Deep Dive -
…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 -
…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 -
…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 -
…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…
comment by est31 · 2022-05-11 · in Converting Integers to Floats Using Hyperfocus -
…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 -
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 -
…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 -
…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) -
…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) -
…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) -
…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 -
…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 -
…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++ -
…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
comment by Arnavion · 2022-04-01 · in RFC 9225: Software Defects Considered Harmful -
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 -
…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 -
…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…
comment by tialaramex · 2022-03-11 · in Toward a better list iterator for the Linux kernel -
…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++