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. …available in nightly[2]. [1]: https://rust-lang.github.io/rfcs/3107-derive-enum-default.ht... [2]: https://github.com/rust-lang/rust/pull/86735
  2. …don't know if there is any plans for exposing that trait, but it would be a nice thing to see. [0]: https://github.com/rust-lang/rust/blob/master/library/alloc/... [1]: https://github.com/rust-lang/rust/blob/master/library/alloc/...
  3. …by a memset when compiled. godbolt: https://godbolt.org/z/8bM7zz4E7 the specific specialization: https://github.com/rust-lang/rust/blob/master/library/alloc/...
  4. …of output, whereas other languages like Python tend to buffer larger blocks before flushing. [2] https://github.com/rust-lang/rust/issues/60673
    comment by jlledo · 2021-08-09 · in How to write slow Rust code – Part 2
  5. …understand the real problem and apply the real fix yourself. I would appreciate bug reports at https://github.com/rust-lang/rust/issues/ when encountering these kind of situations. If there's something worse than missing suggestions is…
  6. Relevant PR (merged): https://github.com/rust-lang/rust/pull/82834
    comment by juancampa · 2021-07-29 · in Rust 1.54.0
  7. …have to contend with the fact that you can't even set a debugger checkpoint where an error occurs: https://github.com/rust-lang/rust/issues/54144 Obviously people wouldn't be asking for that if the type and borrow checkers caught all the…
    comment by oalae5niMiel7qu · 2021-07-27 · in What's bad about Julia?
  8. https://github.com/rust-lang/rust/issues/44650 (Nothing to do with unicode. I haven't got a Windows machine to test, but I assume WinMain will behave the same as main wrt quotes and spaces.) (Note that Rust doesn't use CLTAW any more; it…
    comment by Arnavion · 2021-07-25 · in Windows Command-Line Obfuscation
  9. …mainline rustc [2], supports building for MIPS. [1] https://github.com/antoyo/rustc_codegen_gcc [2] https://github.com/rust-lang/rust/pull/87260 Can you give it a try?
    comment by geofft · 2021-07-24 · in Rust for Linux redux
  10. …(albeit calling `open64` rather than `fopen`), you can see it in the source for the stdlib here https://github.com/rust-lang/rust/blob/master/library/std/sr...
    comment by clappski · 2021-07-24 · in Modern C++ for C Programmers (2018)
  11. …are already feature gated for OOM handling so might not be implemented for String. [0] https://github.com/rust-lang/rust/blob/master/library/alloc/... [1] Note that the compiler knows about it to provide better diagnostics to the user, but…
    comment by Measter · 2021-07-20 · in A GPIO Driver in Rust
  12. …goto cleanup, and break/continue let you emulate any structured uses of goto. (I live in hope that https://github.com/rust-lang/rust/issues/48594 will one day land, so you can use break to skip the remainder of a labelled block, no loop…
    comment by chrismorgan · 2021-07-17 · in Linux: Using goto In Kernel Code (2003)
  13. …most famous bug in the standard library exposing an unsound construction is the “leakpocalypse”: https://github.com/rust-lang/rust/issues/24292
    comment by littlestymaar · 2021-07-17 · in Is Rust Used Safely by Software Developers?
  14. …they do happen. For fun, here's an example of the Rust stdlib itself working around such things: https://github.com/rust-lang/rust/blob/74ef0c3e404cc72c08b2d...
  15. …is where it's handy to have a decent standard library instead of learning all of this the hard way: https://github.com/rust-lang/rust/blob/b9197978a90be6f757074...
    comment by pornel · 2021-07-15 · in Overflowing timeout
  16. …are only incorrect in combination, like global value numbering causing miscompilations[1][2])? [1]: https://github.com/rust-lang/rust/issues/45839 [2]: https://bugs.llvm.org/show_bug.cgi?id=35229 EDIT: > the critical detail about…
    comment by nyanpasu64 · 2021-07-12 · in Updating the Go Memory Model
  17. …ahead-of-time compilation), as an alternative to LLVM for the standard Rust compiler ("rustc" aka https://github.com/rust-lang/rust ). This allows reusing all the logic inside the Rust compiler for compiling code, checking types and…
  18. …exhaustiveness checks has extensive explanations on how it works and what it was inspired by. https://github.com/rust-lang/rust/blob/master/compiler/rustc...
    comment by estebank · 2021-07-08 · in Compiling Rust is NP-hard
  19. https://github.com/rust-lang/rust/pull/84266 We have been excising this with a new opt-out mechanism so there are no allocations behind your back but the same abstractions are notheless used as the rest of the Rust ecosystem.
    comment by Ericson2314 · 2021-07-06 · in Linux Rust Support
  20. …hopeful that this effort could improve the situation for everyone. My small contribution to this, https://github.com/rust-lang/rust/pull/84266 , is supposed to be just that!
    comment by Ericson2314 · 2021-07-06 · in Linux Rust Support
  21. In what way? Rust seems to be proving itself as a reliable mainstay in systems development https://github.com/rust-lang/rust The git repo has over 150,000 commits, 3,000 contributors, and 9 years of release history. The last 6 years of…
    comment by eejjjj82 · 2021-07-06 · in Linux Rust Support
  22. …in a sane pattern such as MVU. FWIW, I have been working towards this for the past year. [1] https://github.com/rust-lang/rust/blob/master/src/librustdoc...
  23. Implemented in https://github.com/rust-lang/rust/pull/37429 ; his website seems to be https://ahicks.io/
    comment by kzrdude · 2021-06-28 · in Deserializing Binary Data Files in Rust
  24. Ok, teach me about https://github.com/rust-lang/rust/issues/82457 then. Unchecked alloca() calls have a pretty bad reputation with non-rust folks. But this is the preferred allocation scheme in Rust. I'm sure our understanding of memory…
  25. Then maybe lookup "stack overflow" in rust, and you will be delighted. https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... 583 closed, 156 open. That much to "memory safety" in rust.
  26. …would allow for async fns directly in traits, but that is probably a long way off [2]. [0]: https://github.com/rust-lang/rust/issues/63063 [1]: https://github.com/rust-lang/rust/issues/44265 [2]: http://smallcultfollowing.com/babysteps/blog…
    comment by ibraheemdev · 2021-06-10 · in Rocket v0.5 Release Candidate
  27. …// string.len() doesn't work in GDB Debuggin rust still involves a lot of println! or debug! https://github.com/rust-lang/rust/issues/33014
    comment by Popegaf · 2021-05-31 · in GCC Rust Monthly Report #6 May 2021
  28. …equivalent to upper_bound(), and it got improved recently. The PR of the improvement: https://github.com/rust-lang/rust/pull/74024 Polkadot's postmortem: https://polkadot.network/a-polkadot-postmortem-24-05-2021/
  29. …N times to initialize an array. This basically brings the array-init functionality into std. https://github.com/rust-lang/rust/pull/75644
  30. It was stabilized in 2019 by accident: https://twitter.com/m_ou_se/status/1396827152859942921 https://github.com/rust-lang/rust/pull/79270
  31. …implementation is still limited to N ≤ 32, for technical reasons that haven’t yet been overcome. ( https://github.com/rust-lang/rust/pull/74254 is relevant info that I’ve found on a quick search—I think the trouble is that [T; N] normally…
    comment by chrismorgan · 2021-05-24 · in Methods for Array Initialization in Rust (2018)
  32. …[1] and rustc's cg_clif [2]. 1: https://github.com/bytecodealliance/wasmtime/tree/main/crane... 2: https://github.com/rust-lang/rust/pull/77975
  33. …today (the original language when the team started to work on it was a bit different to 1.0). https://github.com/rust-lang/rust/graphs/contributors?from=2... The work since 1.0 can be classified as a massive refinement project, which also…
    comment by est31 · 2021-05-22 · in Rust heads into the kernel?
  34. …a similar interface that existed in std, until it was found to be unsound, is totally fascinating: https://github.com/rust-lang/rust/issues/24292 . (Prior to that, std::mem::forget was marked unsafe!) Another detail that's worth clarifying…
  35. …cores to the fullest? I don't use Rust, but a quick search returned for example this issue: https://github.com/rust-lang/rust/issues/64913
  36. I'd like to add the "Bastion of the Turbofish", which is my personal favorite: https://github.com/rust-lang/rust/blob/master/src/test/ui/ba...
    comment by Zababa · 2021-05-14 · in Rust Weird Expressions
  37. …comment is present, and the rust compiler defaults to the 2015 edition if none was specified. [0]: https://github.com/rust-lang/rust/blob/69b352ef7749825abde2d... [1]: https://github.com/rust-lang/rust/blob/69b352ef7749825abde2d...
    comment by est31 · 2021-05-14 · in Rust Weird Expressions
  38. Yeah. I'd assume a 2018 specific one would show up below https://github.com/rust-lang/rust/tree/master/src/test/ui/ru... if needed.
    comment by phaylon · 2021-05-14 · in Rust Weird Expressions
  39. …The "C-tracking-issue" issues are ones that are open and tracking an RFC that's in implementation, https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... ("C" is short for "Category". These prefixes are... well the original ones…
    comment by steveklabnik · 2021-05-11 · in The Plan for the Rust 2021 Edition
  40. …as, exactly as you say, basically nobody else has forged through these paths in LLVM before. [0]: https://github.com/rust-lang/rust/pull/82834 [1]: https://github.com/rust-lang/rust/issues/84958 [2]: https://stackoverflow.com/a/57259339
    comment by nathankleyn · 2021-05-08 · in ABI Mistakes
  41. …performance benefits of adding a push-model complement to Rust's usual pull-model Iterator trait: https://github.com/rust-lang/rust/pull/42782#issuecomment-30... ) But, you can get the same natural-looking output from the pull model if you…
    comment by Rusky · 2021-05-01 · in Query Engines: Push vs. Pull
  42. There's an RFC to add the minimum rust version supported. It was merged! The tracking issue is here: https://github.com/rust-lang/rust/issues/65262
    comment by swsieber · 2021-04-29 · in A brief history of Rust at Facebook
  43. Relying to myself to mention another thing: https://github.com/rust-lang/rust/issues/64796 is adding support for a #[cfg(version(x.y))] tag that will allow crates to more easily provide additional feature when using newer compiler, while…
    comment by ogoffart · 2021-04-29 · in A brief history of Rust at Facebook
  44. …of date compared to what most of the ecosystem expect. However there is hope for a better future: https://github.com/rust-lang/rust/issues/65262 will allow crates to specify a minimum supported rust version (MSRV), this way, we can imagine…
    comment by ogoffart · 2021-04-29 · in A brief history of Rust at Facebook
  45. …for creating maintainable large-scale software. Here's the original elevator pitch from 2010: https://github.com/rust-lang/rust/blob/d6b7c96c3eb29b9244ece... Note the text about "programming in the large".
    comment by brson · 2021-04-22 · in Green vs. Brown Programming Languages
  46. …even account for someone writing `-> Trait` and suggest all the appropriate changes. I just filed https://github.com/rust-lang/rust/issues/84346 to account for some cases brought up and I completely agree with your last sentence. It is…
    comment by estebank · 2021-04-19 · in What's in the Box?
  47. …this case in particular where the result would be !Sized and also suggest Boxing. Edit: filed https://github.com/rust-lang/rust/issues/84346 It is also somehow unfortunate that `impl Trait` in locals isn't yet in stable, but once it is it…
    comment by estebank · 2021-04-19 · in What's in the Box?
  48. I think because split-debuginfo is recently stabilized (Nov 2020). https://github.com/rust-lang/rust/pull/79570 Maybe the default will be switched in the future.
  49. The `A-LLVM` issue label is probably a good starting point. https://github.com/rust-lang/rust/labels/A-LLVM
    comment by mrec · 2021-04-16 · in LLVM 12
  50. …information. This affects Rust, for instance, and might net 0-5% better run-time performance: https://github.com/rust-lang/rust/issues/54878#issuecomment-...
    comment by myrmidon · 2021-04-16 · in LLVM 12