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. …seems reasonable. There is also slice matching on stable, which let's you match on parts of slices: https://github.com/rust-lang/rust/pull/67712/ . It went out in 1.42. It has some stuff which makes binary stuff easier, but not by much.…
    comment by swsieber · 2020-04-30 · in Enigma: Erlang VM Implementation in Rust
  2. …so they can do transformations to it before sending out to users. Rust issue about dealing with it: https://github.com/rust-lang/rust/issues/35968
    comment by fulafel · 2020-04-29 · in How we use Rust in our mobile SDK
  3. …of generic code that actually do not depend on their type parameters, to avoid duplicating it: https://github.com/rust-lang/rust/pull/69749 This could potentially be made into a much finer-grained analysis to reduce the duplication…
  4. You can do this in Rust as well, and it's in fact being done in the compiler: https://github.com/rust-lang/rust/search?p=2&q=TypedArena&un... https://docs.rs/rustc-ap-arena/655.0.0/rustc_ap_arena/struct... In general, there is bad support…
  5. I ran into two issues, one in rustc-serialize broken by https://github.com/rust-lang/rust/issues/35203 (fixable by cargo update -p rustc-serialize) and one in url broken by the move to NLL on the 2015 edition. The second is an important…
    comment by est31 · 2020-04-23 · in Rust 1.43
  6. …being UB (but should not have been). And one of those is just about to get fixed, it looks like =] https://github.com/rust-lang/rust/pull/71269
    comment by tux3 · 2020-04-23 · in Rust 1.43
  7. I am finding it a bit tough to explain concisely, maybe go check out https://github.com/rust-lang/rust/pull/68129/ and it might help?
    comment by steveklabnik · 2020-04-23 · in Rust 1.43
  8. …was a better/supported way to create plugin-style shared libraries. I tried filing a bug with PR ( https://github.com/rust-lang/rust/pull/66204 ) it was determined that it needed to go through the RFC process. The simplest way to see the…
    comment by wireprotocol · 2020-04-23 · in Rust 1.43
  9. …still an area rustc has a lot of room to improve, even given Rust's idioms. E.g. stuff like this: https://github.com/rust-lang/rust/issues/69715
    comment by Rusky · 2020-04-22 · in A possible new back end for Rust
  10. …would require the disambiguation so that it can provide the appropriate suggestion in that case. https://github.com/rust-lang/rust/pull/64700
    comment by estebank · 2020-04-01 · in State Machines in Rust
  11. …for this reason. However, this was fixed, and that means TLS is no longer a requirement here! See https://github.com/rust-lang/rust/pull/68524 for more details.
    comment by steveklabnik · 2020-03-30 · in Writing an OS in Rust: Async/Await
  12. …2015: https://github.com/chef/chef/issues/2894 Someone stumbled on this brokenness in Rust in 2017: https://github.com/rust-lang/rust/issues/41570 And then drums Wed Aug 2 19:12:20 2017 glibc 2.26 released with a patch. Maybe programs can…
    comment by stefan_ · 2020-03-26 · in About Musl
  13. …system linker. A note for macOS users that unfortunately LLD is not supported reliably there yet: https://github.com/rust-lang/rust/issues/39915 https://users.rust-lang.org/t/llvm-lld-linker-fails-on-mac-o... From https://lld.llvm.org/ >…
    comment by modernerd · 2020-03-24 · in Two Years with Rust
  14. …It's not a perfect solution for your case, but should be fairly easy to take advantage of. [0]: https://github.com/rust-lang/rust/pull/69749
    comment by aw1621107 · 2020-03-23 · in Two Years with Rust
  15. …I guess that's because most other languages have much less complex problems to communicate. [1]: https://github.com/rust-lang/rust/issues/64650 Edit: Another data point is https://github.com/rust-lang/rust/issues/60658
    comment by benschulz · 2020-03-23 · in Two Years with Rust
  16. …operations generic code can use on its type parameters, it can do things like "polymorphization": https://github.com/rust-lang/rust/pull/69749 This means the compiler will automatically detect how much duplication is actually needed ahead…
  17. …method which can panic on allocation failure would also have a panic-safe alternative. Example: https://github.com/rust-lang/rust/issues/48043 similarly Vec could gain `try_push`, `try_append`, `try_insert`, `try_split_off`, …
    comment by masklinn · 2020-03-21 · in Secure Rust Guidelines
  18. …the (unstable[0] and obviously unsafe) `Alloc` trait does have a concept of allocation failure. [0] https://github.com/rust-lang/rust/issues/32838
    comment by masklinn · 2020-03-21 · in Secure Rust Guidelines
  19. …an issue (but it's understandable you don't know about it given that there are 10's of thousands!): https://github.com/rust-lang/rust/issues/40273
    comment by quietbritishjim · 2020-03-20 · in How to write documentation for a Rust crate
  20. There's an open issue for indices. https://github.com/rust-lang/rust/issues/40273 And various other open issues to improve styling. I wouldn't call them useless though, clicking the [-] collapses all comments and gives a somewhat useful…
  21. …(Rocket): https://github.com/SergioBenitez/Rocket/issues/19 Stabilize Proc Macro Hygiene (Rust): https://github.com/rust-lang/rust/issues/54727 Partially Stabilize Proc Macro Hygiene (Rust): https://github.com/rust-lang/rust/pull/68717
    comment by swsieber · 2020-03-17 · in How I Start: Rust
  22. …- this feature lets you call procedural macros in more places than you can today. https://github.com/rust-lang/rust/issues/54727#issuecomment-... might be a bit too in-the-weeds, but the TL;DR is that there seems to be a path forward for st
    comment by steveklabnik · 2020-03-17 · in How I Start: Rust
  23. …this hard with the nightly docker images. There's a tracking issue for proc_macro_hygine here: https://github.com/rust-lang/rust/issues/54727 Looks like the last feature is almost stable!
    comment by status_quo69 · 2020-03-17 · in How I Start: Rust
  24. …it's actually not an infinite loop, it's signed integer underflow. Given that, I'll file a bug. [1] https://github.com/rust-lang/rust/issues/28728
    comment by palmtree3000 · 2020-03-16 · in One Word Broke C
  25. …which also contains links to relevant discussion on the LLVM side, including some forward progress: https://github.com/rust-lang/rust/issues/28728 . I believe the current status is that machinery has been added that language frontends can…
    comment by saagarjha · 2020-03-16 · in One Word Broke C
  26. Scratch that, it is actually a planned feature (I thought llvm was already doing it): https://github.com/rust-lang/rust/issues/13707 The idea is to detect large moves and do a pass by reference, much like Swift does. On my personal roadmap…
    comment by estebank · 2020-03-02 · in Rust Ownership Rules
  27. …dependent types down the line. [0] https://en.wikipedia.org/wiki/Software_transactional_memory [1] https://github.com/rust-lang/rust/issues/44580
    comment by dgb23 · 2020-03-02 · in Rust Ownership Rules
  28. https://github.com/rust-lang/rust/issues/49802
    comment by edflsafoiewq · 2020-02-29 · in I Want Off Mr. Golang's Wild Ride
  29. …it does, or it least, it looks like Rust's standard library doesn't implement anything for them: https://github.com/rust-lang/rust/blob/master/src/libstd/sys... At that point, it would be hopelessly difficult to build ripgrep. The right…
  30. Yes, fix this open issue https://github.com/rust-lang/rust/issues/34283 That would help immensely.
  31. …stack space used by all branches instead of just the maximum stack space used by any one branch: https://github.com/rust-lang/rust/issues/34283 . Can you work around this by using separate functions for the branches? This will have other…
  32. …stack space used by all branches instead of just the maximum stack space used by any one branch: https://github.com/rust-lang/rust/issues/34283 . I believe the issue still isn't fixed. That meant that the Rust version quickly overflowed…
  33. …so that's fine for most programs. A TcpStream is just a struct containing the file descriptor ( https://github.com/rust-lang/rust/blob/master/src/libstd/sys... ) and nothing else, so this would be fine: let stream: std::net::TcpStream =…
  34. …cycle before fixing a bug). In fact, you may take a look at "Compatibility notes" sections in https://github.com/rust-lang/rust/blob/master/RELEASES.md . The compatibility breaks tend to be very minor, and unlikely to break stuff. For…
  35. …But the safety that Rust has already is good enough for me. I know that soundness holes exist (c.f. https://github.com/rust-lang/rust/labels/I-unsound%20%F0%9F%... ), but they are very few, and if they’re realistic (most of those are…
    comment by chrismorgan · 2020-02-14 · in Sealed Rust Update
  36. …of how much more info has, so much so that it's brought up bugs in LLVM that are not fixed yet. https://github.com/rust-lang/rust/issues/54878
    comment by PudgePacket · 2020-02-09 · in Flang: The Fortran frontend of LLVM [video]
  37. …ng.org/std/collections/struct.BTreeMap.ht... . The guts of BTreeMap's memory management code is here: https://github.com/rust-lang/rust/blob/master/src/liballoc/c... . (warning: it is some of the most gnarly rust code I've ever come…
    comment by jstrong · 2020-02-05 · in Why Discord is switching from Go to Rust
  38. …on Aug 1 so the date would fit quite well. [1]: https://github.com/rust-lang/cargo/pull/7143 [2]: https://github.com/rust-lang/rust/pull/63181
    comment by est31 · 2020-01-30 · in The Rust Compilation Model Calamity
  39. …blocks. (There are occasional exceptions, such as the infamous floating point cast bug [1].) [1] https://github.com/rust-lang/rust/issues/10184
    comment by quietbritishjim · 2020-01-30 · in Enumerating Core Undefined Behavior
  40. …are "diagnostics" (i.e. error messages) bugs, making it the single largest category (AFAIK): https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
    comment by kibwen · 2020-01-21 · in What is Rust and why is it so popular?
  41. Right now they're disabled, pending patches on the LLVM side. You can keep track here: https://github.com/rust-lang/rust/issues/54878
    comment by kibwen · 2020-01-21 · in What is Rust and why is it so popular?
  42. …allocators in some fashion It's coming, but it's still unstable and being actively developed - https://github.com/rust-lang/rust/issues/32838
    comment by shepmaster · 2020-01-21 · in What is Rust and why is it so popular?
  43. …issue and just following the compiler's lead. As an example, you can see this recently landed PR: https://github.com/rust-lang/rust/pull/68267
    comment by estebank · 2020-01-21 · in What is Rust and why is it so popular?
  44. …temporarily turned off because emitting noalias attributes so much exposed some llvm bug. See: https://github.com/rust-lang/rust/issues/54878 In the long run though, yeah that is an inherent optimizability advantage of Rust vs. C.
    comment by firethief · 2020-01-20 · in Cello – High Level C
  45. …hit large-function-causes-unexpected-behavior situations with even smaller functions sometimes - https://github.com/rust-lang/rust/issues/60753
  46. …have reported these things, and we've tried to fix or help where possible; see the discussion on https://github.com/rust-lang/rust/issues/60294 for example.
    comment by steveklabnik · 2020-01-07 · in Translating Quake 3 into Rust
  47. …> But last I heard Rust wasn't taking advantage of this due to issues with LLVM. That's correct: https://github.com/rust-lang/rust/issues/54878 > The same benefits should also be achievable in C with pragmas. I don't know that any compiler…
    comment by masklinn · 2020-01-07 · in Translating Quake 3 into Rust
  48. …of linking with pthread. Obviously Rust code always wants thread support. Here's the setup code: https://github.com/rust-lang/rust/blob/master/src/libstd/sys... A fair number of the syscalls are to ensure that stack overflow is reported…
    comment by pcwalton · 2020-01-07 · in A Response to Hello World in Go
  49. …are a separate issue, which I apparently shouldn't merely summarize for this discussion. Clone https://github.com/rust-lang/rust and run your git GUI client of choice on it. git and gitk (ugly, buggy, and featureless though it may be)…
    comment by MaulingMonkey · 2020-01-07 · in Is Git Irreplaceable? (2019)
  50. …st-lang.org/nomicon/what-unsafe-does.html [1] https://github.com/rust-lang/unsafe-code-guidelines [2] https://github.com/rust-lang/rust/commit/1975b8d21b21d5ede54... [3] https://github.com/rust-lang/rust/commit/1a254e4f434e0cbb9ff... [4]…
    comment by DSMan195276 · 2020-01-07 · in Hobby x86 kernel written with Zig