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
20082026
-
…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 -
▲ 78
Rustc: Add do yeet expressions to allow experimentation in nightlystory by remexre · 2022-05-06 · 60 comments
-
…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 -
▲ 2
Rust Strict Provenancestory by ibraheemdev · 2022-03-31 · 0 comments
-
…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++ -
…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
comment by nextaccountic · 2022-03-05 · in Heap memory corruption in GitHub's Markdown table parsing extension -
…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…
comment by nextaccountic · 2022-03-05 · in Heap memory corruption in GitHub's Markdown table parsing extension -
…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.…
comment by scottlamb · 2022-02-28 · in Fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid -
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. -
…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) -
…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? -
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? -
…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 -
…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:…
comment by ChrisSD · 2022-02-20 · in The Wild West of Windows command line parsing -
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 -
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 -
…| 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 -
…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 -
…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…
comment by comex · 2022-01-30 · in Uninitialized memory: Unsafe Rust is too hard -
…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 -
▲ 11
Make tidy check for magic numbers that spell thingsstory by ne0phyte · 2022-01-24 · 2 comments
-
▲ 2
Rust: Forbid Pineapple on Pizzastory by dfrey1 · 2022-01-23 · 0 comments
-
…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
comment by caaqil · 2022-01-21 · in Security vulnerability in Rust standard library -
…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 -
…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
comment by roblabla · 2022-01-06 · in In Defense of Async: Function Colors Are Rusty -
…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 -
…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? -
…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? -
(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? -
…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? -
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? -
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? -
…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? -
…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? -
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 -
…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 -
▲ 3
Error: Ferris cannot be used as an identifierstory by oskari · 2021-12-16 · 1 comment