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. …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
  2. …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…
  3. …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.…
  4. 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.
  5. …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)
  6. …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?
  7. 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?
  8. …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
  9. …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:…
  10. 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
  11. 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
  12. …| 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
  13. …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
  14. …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…
  15. …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
  16. …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
  17. …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
  18. …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
  19. …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
  20. …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?
  21. …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?
  22. (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?
  23. …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?
  24. 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?
  25. 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?
  26. …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?
  27. …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?
  28. 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
  29. …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
  30. …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
  31. …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
  32. …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
  33. …-> [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
  34. …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…
  35. …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...
  36. …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…
  37. …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
  38. …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
  39. 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…
  40. 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
  41. 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
  42. …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
  43. …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
  44. …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
  45. …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
  46. https://github.com/rust-lang/rust/issues/77960 I think.
    comment by mrec · 2021-09-05 · in Fast Rust Builds
  47. 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
  48. …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
  49. …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.
  50. …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…