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
-
…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 -
…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 -
…form of higher kinded types as a native language feature are pretty close to being stabilised now https://github.com/rust-lang/rust/issues/44265 As always with Rust, work is released on an "when it's done" basis but estimates are pointing…
comment by nicoburns · 2021-12-10 · in Higher Kinded Types in Rust -
…was recently stabilized in rustc as a result of m68k support landing in LLVM ( https://github.com/rust-lang/rust/blob/master/RELEASES.md#co... ), which has been one of the previous sticking points for Rust packaging on Linux distros, som
comment by lambda · 2021-12-08 · in Rust support in the Linux kernel -
…Here's an example of a contributor adding a new platform at tier 3: https://github.com/rust-lang/rust/pull/79608
comment by steveklabnik · 2021-12-08 · in Rust support in the Linux kernel -
…-> [u8; Self::LENGTH]; } However it turns out that this kind of usage is not quite supported yet: https://github.com/rust-lang/rust/issues/60551
comment by ekimekim · 2021-11-29 · in Endianness, API Design, and Polymorphism in Rust -
…constructions to result in segfaults despite not containing `unsafe` blocks . These are tracked at https://github.com/rust-lang/rust/issues?q=label%3AI-unsound .) On the topic of application-level code quality (rather than foundational…
comment by nyanpasu64 · 2021-11-28 · in Rust maintainer perfectionism, or, the tragedy of Alacritty (2020) -
…work if you compare `b == a`. Apparently[0] it's something to do with avoiding code bloat. [0] https://github.com/rust-lang/rust/blob/e4c23daeb461ac02413eb...
comment by Measter · 2021-11-12 · in Rust Is the Future of JavaScript Infrastructure -
…nightly, so it is included in the linked benchmark. It will ship to stable in the 1.57.0 release: https://github.com/rust-lang/rust/pull/88243 Rustc supports running with LLVM versions other than 13.0, which some distros enable, but the…
comment by est31 · 2021-11-12 · in The Rust compiler has gotten faster again -
…language? LLVM has shown regressions wich is what Rust uses to compile code. 2sec search on google: https://github.com/rust-lang/rust/issues/24194
comment by Thaxll · 2021-11-11 · in Rust Is the Future of JavaScript Infrastructure -
…foundation's communication skills so far. [1] https://www.rust-lang.org/policies/media-guide [2] https://github.com/rust-lang/rust
comment by mjw1007 · 2021-11-09 · in Arm Joins the Rust Foundation -
https://github.com/rust-lang/rust/issues/28979 plenty of discussion here on Unicode including homoglyph attacks. This is for Rust but has links to Go and Zig. The Unicode standard also has extensive discussion, for example…
comment by ximeng · 2021-11-01 · in ‘Trojan Source’ Bug Threatens the Security of All Code -
How do you review a WebAssembly binary? Are builds reproducible? I just found this about Rust: https://github.com/rust-lang/rust/labels/A-reproducibility It would be nice to be able to run them on multiple CIs and compare the SHAs.
comment by benatkin · 2021-10-26 · in Next.js 12 -
They're referring to the use of PGO when building the compiler itself: https://github.com/rust-lang/rust/pull/88069
comment by mastax · 2021-10-22 · in Rust 1.56.0 and Rust 2021 -
…I think it's exactly that commit and not just one close to it. I heard it was a big improvement. https://github.com/rust-lang/rust/commit/63cc2bb > Enable new pass manager with LLVM 13 > https://github.com/rust-lang/rust/pull/88243
comment by kzrdude · 2021-10-21 · in Rust 1.56.0 and Rust 2021 -
…but still appreciated, Iterator::map_while [2], which is going to be in Rust 1.57. [2]: < https://github.com/rust-lang/rust/pull/89086 >
comment by yakubin · 2021-10-21 · in Rust 1.56.0 and Rust 2021 -
…on embedded now. Also Rust gets rustc_codegen_gcc[1], so you will be able to use it everywhere. [1] https://github.com/rust-lang/rust/tree/master/compiler/rustc...
comment by glowmeg · 2021-10-16 · in Implementing Hash Tables in C -
…been fixed. > You can read more details on the new implementation in the pull request description: https://github.com/rust-lang/rust/pull/86761 There's some pretty big speed improvements there. 3x-10x in the most normal cases, 1600x on…
comment by Twirrim · 2021-09-09 · in Rust 1.55.0 -
https://github.com/rust-lang/rust/issues/77960 I think.
comment by mrec · 2021-09-05 · in Fast Rust Builds -
LLVM does have an m68k backend, and there's an open PR on rustc to add it https://github.com/rust-lang/rust/pull/88321
comment by steveklabnik · 2021-08-31 · in GCC Rust Monthly Report #9 August 2021 -
…The current state of it is "someone needs to write up an RFC." If you want the full gory details: https://github.com/rust-lang/rust/pull/65875
comment by steveklabnik · 2021-08-31 · in Async Overloading -
…a too old versions of rust. In the future, one will be able to give a nice error when this happen ( https://github.com/rust-lang/rust/issues/65262 ) But now it's true that it can be hard to know what the problem is.
comment by varajelle · 2021-08-17 · in Psst: Fast Spotify client with native GUI, without Electron, built in Rust -
…so it'd be unsafe to store any elements 125 | | } | |_____^ | = note: for more information, see https://github.com/rust-lang/rust/issues/49146 error[E0658]: `if` is not allowed in a `const fn` --> ~/.cargo/registry/src/github.com-1ecc6299db…
comment by pacifika · 2021-08-17 · in Psst: Fast Spotify client with native GUI, without Electron, built in Rust