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. …The main issue is that it's very hard to propagate information found through matching . [0]: https://github.com/rust-lang/rust/pull/120131
    comment by demurgos · 2024-03-28 · in A step beyond Rust's pattern matching
  2. …[3] - https://blog.rust-lang.org/2023/11/09/parallel-rustc.html [4] - https://github.com/rust-lang/rust/issues/39915
    comment by nindalf · 2024-03-18 · in Cranelift code generation comes to Rust
  3. …STL but languages and compilers struggle to emit the cmov properly (Rust’s been broken for 6 years: https://github.com/rust-lang/rust/issues/53823 ). Prefetch is an interesting one because while you do optimize the binary search in a micro…
    comment by vlovich123 · 2024-03-16 · in Algorithms for Modern Hardware
  4. …up the details, but IIRC at least Windows? Implementations of the standard library mutexes are here https://github.com/rust-lang/rust/tree/master/library/std/sr... And of course it’s pthreads on Linux.
    comment by steveklabnik · 2024-03-06 · in Dada, an experimental new programming language
  5. …now (hard to tell because it hasn't been close enough to stabilization to be properly documented): https://github.com/rust-lang/rust/pull/68524 As for Polonius changing the underlying mental model, I think this is a natural progression.…
    comment by kibwen · 2024-03-05 · in Borrow checking without lifetimes
  6. …and you can't pass values into resume and get them out from the yield statement in the coroutine ( https://github.com/rust-lang/rust/issues/43122#issuecomment-... ). > and they aren't separate from async, they're the foundation that async…
    comment by logicprog · 2024-03-05 · in Borrow checking without lifetimes
  7. …a thread is spawned before a signal is generated (& right after the signal handler is installed): https://github.com/rust-lang/rust/blob/26907374b9478d84d766a... It doesn't look like there's any UB behavior being relied upon but I could…
  8. …and there is a chance this doesn't get stabilized, but here's hoping it makes it through! [0]: https://github.com/rust-lang/rust/pull/107606 [1]: https://cohost.org/oli-obk/post/165584-ranged-integers-via [2]:…
  9. …for SIGSEGV and checks if the faulting address falls within the range of the stack guards. See https://github.com/rust-lang/rust/blob/411f34b/library/std/s... The stack guards would normally be setup by the system runtime (e.g. kernel in…
  10. …you can e.g. target a RTOS or whatever. It looks like that work started really recently actually: https://github.com/rust-lang/rust/commit/99128b7e45f8b95d962...
  11. The issue in question, https://github.com/rust-lang/rust/issues/49206 , is such an edge case that there are 0 known examples of it causing a problem in practice, despite the issue being around for many years.
  12. …in practice. If there are problems with Rust's type system, they're identified and patched. [1]: https://github.com/rust-lang/rust/issues/25860#issuecomment-...
  13. > unsound issues Apparently there's 84 open issues which the Rust developers consider unsound issues. https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... That's it. Rust's claims are over and done with. How can it be safe if…
  14. https://github.com/rust-lang/rust/issues/25860#issuecomment-... “Similarly, the reason why niko's approach is not yet implemented is simply that getting the type system to a point where we even can implement this is Hard. Fixing this bug…
  15. …constraints like this become explicit but inferred? Sort of like this proposal from the GH issue: https://github.com/rust-lang/rust/issues/25860#issuecomment-... but the "where" clause is inferred at compile time. If so I wouldn't call…
  16. Seems to rely on at least one known compiler bug (admittedly one open since 2015) https://github.com/rust-lang/rust/issues/25860
  17. …regressions and in some cases it may even cause unnecessary stack spilling of sensitive data: https://github.com/rust-lang/rust/issues/88930#issuecomment-...
  18. Mind you that there is a runtime overhead. If we look at access beyond on a slice's boundary: https://github.com/rust-lang/rust/blob/ea37e8091fe87ae0a7e20... This bounds check is what enables Rust code to fail with a panic vs continuing…
  19. There was a similar bug in the past in Rust: Integer overflow causing a buffer overflow: https://github.com/rust-lang/rust/pull/54399/commits/8ac88d3... So the answer is: Not necessarily. I agree though that the memory safety features in…
  20. …of this kind of noise. It's not like heap overflows are impossible in other languages. Consult https://github.com/rust-lang/rust/issues/80894 or consult your preferred CVE database. Would love to know what language the author thinks glibc…
  21. …pay for what you use” when the binaries contained half of H. P. Lovecraft's œuvre. See issue #13871 https://github.com/rust-lang/rust/issues/13871 I exaggerate, point is that we've come a long way and are still getting better. Different…
    comment by weinzierl · 2024-01-24 · in Making Rust binaries smaller by default
  22. …part of code [1] and somehow it is still in the std even though other algorithms now exist [2]. [1] https://github.com/rust-lang/rust/pull/24612 [2] https://github.com/rust-lang/rust/issues/52811
    comment by lifthrasiir · 2024-01-24 · in Making Rust binaries smaller by default
  23. …this by turning on the CPU feature directly, but that doesn't seem to affect codegen in this case. https://github.com/rust-lang/rust/issues/21690 It would be nice to get these intrinsics stabilized, at least. EDIT: oops you figured this…
    comment by steveklabnik · 2024-01-23 · in From slow to SIMD: A Go optimization story
  24. …to work: https://godbolt.org/z/G4Enf59Kb Edit: from what I can tell this is still an open issue??? https://github.com/rust-lang/rust/issues/21690 Edit: relevant SO post: https://stackoverflow.com/questions/76055058/why-cant-the-ru...…
    comment by camel-cdr · 2024-01-23 · in From slow to SIMD: A Go optimization story
  25. Here's the code performing the allocation reuse: https://github.com/rust-lang/rust/blob/25f8d01fd8bda339612d0... It's not supposed to waste more space than a regular `collect()` or `push()` would when growing the capacity exponentially.
  26. …documentation is slightly wrong, and no copies occur. Edit: I submitted a PR to clear up the docs: https://github.com/rust-lang/rust/pull/120110
  27. …it would be interesting to catch regressions before they land. Someone already filed this as a bug: https://github.com/rust-lang/rust/issues/120091
  28. …as a pure language perhaps not, but Rust as an ecosystem, has a standard UEFI alloc/dealloc system: https://github.com/rust-lang/rust/blob/master/library/std/sr... One could, of course, write their own allocator and heap tracking system as…
  29. …o/g/devel/search?p=recentpostdate%2Fsti... Rust also has a basic standard library implementation now: https://github.com/rust-lang/rust/pull/105861
  30. …I happened to be reading the Rust 1.75.0 release notes today and fell into this 50-tab rabbit hole: https://github.com/rust-lang/rust/pull/113053/
  31. Yup! https://github.com/rust-lang/rust/issues/12037
    comment by steveklabnik · 2024-01-16 · in A lowering strategy for control effects in Rust
  32. …got me down this rathole: https://users.rust-lang.org/t/fixing-rusts-webassembly-targe... and https://github.com/rust-lang/rust/issues/83788 I did find older alternative solutions that uses wasm32-unknown-emscripten, like…
  33. Looks like rust is reasonably well working with cygwin/msys2 based on some github issues, https://github.com/rust-lang/rust/issues/79854 . Given that, I'd expect that this rust rewrite should work under them at least. Though it's obviously…
    comment by simcop2387 · 2024-01-16 · in Fishshell rewrite-it-in Rust progress: 100%
  34. See https://github.com/rust-lang/rust/issues/9795 and the linked PR that removed them.
    comment by steveklabnik · 2024-01-16 · in A lowering strategy for control effects in Rust
  35. …unsafe code to implement any non-trivial data structures That seems like a gross overstatement. https://github.com/rust-lang/rust/blob/master/library/std/sr... CTRL-F: unsafe Only one result, an optional utility function: "pub unsafe fn…
  36. …standard library. According to bing.com chat, https://github.com/dotnet/runtime has 3.5M LOC, and https://github.com/rust-lang/rust has 6M LOC. The right panel of https://github.com/dotnet/runtime says 80% of the .NET runtime is written in…
  37. Both (line-buffered stdout, raw stderr) date to the initial implementation 10 years ago: https://github.com/rust-lang/rust/commit/94d71f8836b3bfac337... . The commit message mentions that stderr is no longer buffered (probably as a result…
    comment by loeg · 2024-01-10 · in Why is stdout faster than stderr?
  38. …As far as I know, there is currently no way to deny unsafe code in the output of proc macros. [0] https://github.com/rust-lang/rust/pull/52467
    comment by LegionMammal978 · 2024-01-09 · in totally_safe_transmute, Line-by-Line (2021)
  39. …absolute requirement that "newly added" functions cannot be stabilized. Off the top of my head: https://github.com/rust-lang/rust/issues/111544 `OsStr::as_encoded_bytes` was proposed in 2023-05, finished being implemented in 2023-07,…
    comment by Arnavion · 2023-12-29 · in You can't do that because I hate you
  40. …issues, etc. is a totally separate discussion from "Rust thinks four year old code is new" [0]: https://github.com/rust-lang/rust/commit/c784720f3a2d0b66142...
    comment by shepherdjerred · 2023-12-29 · in You can't do that because I hate you
  41. …the standard tracking issue template that lists any blockers, stabilization steps, etc. (Compare to https://github.com/rust-lang/rust/issues/119364 that happens to be the newest "Tracking issue" atm.) Also since the OP didn't intend for it…
    comment by Arnavion · 2023-12-28 · in You can't do that because I hate you
  42. …to being "newly added". Where did you get this from? The tracking issue says nothing of the sort: https://github.com/rust-lang/rust/issues/61695
    comment by shepherdjerred · 2023-12-28 · in You can't do that because I hate you
  43. …since that point, unfortunately, or if something similar could be applied to C++ somehow. [0]: https://github.com/rust-lang/rust/issues/47317#issuecomment-...
    comment by aw1621107 · 2023-12-19 · in C++ Should Be C++
  44. …https://www.jsdocs.io/package/ts-results-es#package-index [1] https://github.com/rust-lang/rust/issues/66249 [2] https://github.com/lune-climate/ts-results-es
  45. …is supposed to be. It is explicitly not a spec[3], but the project is working on one[4]. 1: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... 2: https://doc.rust-lang.org/reference/introduction.html 3:…
    comment by estebank · 2023-12-19 · in Progress toward a GCC-based Rust compiler
  46. …to verify for yourself without having the risk of being mislead by any person might tell you: https://github.com/rust-lang/rust/tree/master/compiler
    comment by estebank · 2023-12-18 · in Progress toward a GCC-based Rust compiler
  47. …in rustc. One example is generators[1] but there's a longer list in The Unstable Book.[2] [1] https://github.com/rust-lang/rust/issues/43122 [2] https://doc.rust-lang.org/stable/unstable-book/language-feat...
  48. …pairs of method names were considered better. [1] https://github.com/rust-lang/rfcs/pull/2757 [2] https://github.com/rust-lang/rust/issues/64260
  49. `rustc` used to use different terminology than the nomicom, but this is no longer the case: https://github.com/rust-lang/rust/pull/107339
    comment by Georgelemental · 2023-12-05 · in Common Rust Lifetime Misconceptions (2020)
  50. This is not true anymore: https://github.com/rust-lang/rust/pull/107339
    comment by Georgelemental · 2023-12-05 · in Common Rust Lifetime Misconceptions (2020)