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. https://github.com/rust-lang/rust/issues/131154 has some discussion about all the possibilities. It's pretty subtle, but I think everyone agrees that the current behavior of if let is unintuitive. Beyond that there are a bunch of…
    comment by sunshowers · 2024-11-13 · in Rust's Sneaky Deadlock With `if let` Blocks
  2. …than mutexes that don't. In this case this is a Rust bug that will be fixed in the next edition: https://github.com/rust-lang/rust/issues/124085
    comment by sunshowers · 2024-11-13 · in Rust's Sneaky Deadlock With `if let` Blocks
  3. Funny you say that: https://github.com/rust-lang/rust/issues/131154 Looks like this is getting fixed in Rust 2024 :)
  4. This is going to be fixed in Rust 2024: https://github.com/rust-lang/rust/issues/124085
    comment by sunshowers · 2024-11-13 · in Rust's Sneaky Deadlock With `if let` Blocks
  5. …to assume alignment.) If you want more evidence, here is a test for the improper_ctypes lint: https://github.com/rust-lang/rust/blob/b91a3a05609a46f73d23e... You can see that it's quite conservative about what can be passed through extern…
    comment by comex · 2024-11-08 · in Perhaps Rust Needs "Defer"
  6. So I did a catalyst build of EX a while back (which is where https://github.com/rust-lang/rust/issues/106021 came from) - but rather anticlimactically the end result looked almost identical to the normal iOS app when running under macOS; I…
    comment by Arathorn · 2024-11-03 · in Matrix 2.0 Is Here
  7. Until 2012, Rust 0.6 required a postfix `.` on enum variants: https://github.com/rust-lang/rust/commit/04a2887f879 And here's a 2013 bug for the ambiguity: https://github.com/rust-lang/rust/issues/10402
    comment by pornel · 2024-11-03 · in Rust's Most Subtle Syntax
  8. …that even simple examples like you wrote could have had problems. Here's a similar bug but for GCC: https://github.com/rust-lang/rust/issues/54878#issuecomment-... . I fully expect MSVC to be full of such bugs. I'm sure there were probably…
  9. Of course: https://github.com/rust-lang/rust/issues/54878#issuecomment-... TLDR: 0-5% faster with noalias optimizations on. You can always try running some benchmarks by building code with -Zmutable-noalias=no.
  10. …eg I observed with Rust for a prior project when I started fiddling with the read buffer size: https://github.com/rust-lang/rust/issues/49921 The other issue that I see is that their I/O is implicitly synchronous and requires a memory…
  11. …it, and it does not seem like the type system is proven, yet, though the issue itself is closed: https://github.com/rust-lang/rust/issues/9883 Per https://blog.rust-lang.org/2023/01/20/types-announcement.htm... there is a roadmap for…
    comment by _flux · 2024-10-18 · in Smart pointers for the kernel
  12. …not. Now I do think it will be eventually fixed, but given how long it has taken it must be thorny. https://github.com/rust-lang/rust/issues/25860
    comment by im3w1l · 2024-10-18 · in Smart pointers for the kernel
  13. https://github.com/rust-lang/rust/issues/48043 They've been working on it for a while so they can get rust into the linux kernel
  14. https://github.com/rust-lang/rust/issues/131374
    comment by 0942v8653 · 2024-10-13 · in Apple macOS 15 Sequoia is officially Unix
  15. …by default, but it's still WIP. ( https://github.com/rust-lang/rfcs/blob/master/text/2011-gene... https://github.com/rust-lang/rust/issues/44838 )
  16. ▲ 3
    macOS Crash with UnixDatagram
    story by q3k · 2024-10-09 · 1 comment
  17. ▲ 11
    macOS Crash with `UnixDatagram`
    story by todsacerdoti · 2024-10-08 · 0 comments
  18. Already done. https://github.com/rust-lang/rust/pull/116352
    comment by glandium · 2024-10-06 · in Playing with BOLT and Postgres
  19. This gem comes to mind: https://github.com/rust-lang/rust/pull/95508/files/76cf1e1e4... Reads almost like a haiku struct Simba { - mother: u32, - father: u32, + parent: u32, + parent: u32, } "I don't think this will compile"
  20. …violation. > being the final descision maker of the latest core::time [Citation needed] I've seen https://github.com/rust-lang/rust/issues/127343#issuecomment... That's just notes from the meeting. Do you have proof he was the deciding…
    comment by Ygg2 · 2024-10-03 · in Code Generation in Rust vs. C++26
  21. …that's two years ago . The current work was in 2024. Here's the 2024 rework of Windows Mutex: https://github.com/rust-lang/rust/pull/121956/ Edited to add: Since we're going back and forth I read the blame log, the Linux implementation,…
    comment by tialaramex · 2024-10-02 · in The Fastest Mutexes
  22. …like Mara also did the work to make it const-constructible, so it's still her implementation, no? https://github.com/rust-lang/rust/pull/97647
    comment by lilyball · 2024-10-02 · in The Fastest Mutexes
  23. …A while ago there was also a giant thread related to improving Rust's mutex implementation at https://github.com/rust-lang/rust/issues/93740#issuecomment-... . What's interesting is that there's a detailed discussion of the inner workings…
    comment by kccqzy · 2024-10-02 · in The Fastest Mutexes
  24. …in my opinion. [1] - https://lang-team.rust-lang.org/roadmaps/roadmap-2024.html#t... [2] - https://github.com/rust-lang/rust/issues/53667
    comment by wokwokwok · 2024-09-26 · in Rewriting Rust
  25. …be done". Some are things that will never be stable, because they're not a feature; as an example, https://github.com/rust-lang/rust/issues/90418
    comment by dwattttt · 2024-09-26 · in Rewriting Rust
  26. …using std::thread::scope.[4] [1]: https://doc.rust-lang.org/std/thread/#the-threading-model [2]: https://github.com/rust-lang/rust/blob/7042c269c166191cd5d8d... [3]: https://github.com/rust-lang/rust/blob/7042c269c166191cd5d8d... [4]:…
  27. …vital for a systems language. One feature they have taken to is throwing panics on OOM conditions: https://github.com/rust-lang/rust/issues/43596 These "panics" can unwind the stack and be caught with panic::catch_unwind, but with the…
    comment by netbsdusers · 2024-09-14 · in Safe C++
  28. Rust was bootsrapped in OCaml. https://github.com/mozilla/rust/tree/ef75860a0a72f79f97216f8...
    comment by itishappy · 2024-09-12 · in Why Haskell?
  29. > See the somewhat recent troubles in Rust: https://github.com/rust-lang/rust/security/advisories/GHSA-q... FYI this started out as a vulnerability in yt-dlp [1]. Later it was found to impact many other languages [2]. Rust, along with…
    comment by SkiFire13 · 2024-09-09 · in Windows NT vs. Unix: A design comparison
  30. …written by Microsoft have different interpretations. See the somewhat recent troubles in Rust: https://github.com/rust-lang/rust/security/advisories/GHSA-q...
  31. https://github.com/rust-lang/rust/pull/128271 This one was fun too: https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html Basically, anything that gets a .1 or .2 type release. Also, shout out to the Rust community for maintaining and…
  32. …greatly benefits from the SSO, so the lack of SSO in Rust is less important compared to C++. [1] https://github.com/rust-lang/rust/issues/4991 [2] https://github.com/rust-lang/rust/issues/20198 [3] https://github.com/rust-lang/rfcs/pull/299…
    comment by lifthrasiir · 2024-09-04 · in An Optimization That's Impossible in Rust
  33. …in their suggestions, or have proposals for better output in specific cases, please file a ticket: https://github.com/rust-lang/rust/issues?q=is%3Aissue+label%...
    comment by estebank · 2024-08-30 · in Rust's Ugly Syntax (2023)
  34. …syntax because that will be too verbose. [1] https://doc.rust-lang.org/reference/keywords.html [2] https://github.com/rust-lang/rust/issues/39412
    comment by lifthrasiir · 2024-08-30 · in Rust's Ugly Syntax (2023)
  35. …and a PR I sent in for the Rust compiler to speed it up for some low hanging fruit: https://github.com/rust-lang/rust/pull/110477 I'll have to revisit this blog at some point and see what I should update, as well as a "From Rust to Julia"…
    comment by miguelraz · 2024-08-29 · in From Julia to Rust (2021)
  36. …to go through u32/from_bits, but apparently that feature is still behind feature gate in Rust https://github.com/rust-lang/rust/issues/91399 That is despite the fact that it is a IEEE-754 required operation! C and friends have equivalent…
    comment by zokier · 2024-08-29 · in Floating points between zero and one
  37. …any special options which the official builders might not be passing. Hopefully not. See also: https://github.com/rust-lang/rust/issues/75362
    comment by comex · 2024-08-26 · in Writing a Rust compiler in C
  38. …clang is for C/C++? The rustc source tree currently includes LLVM, GCC, and Cranelift backends: https://github.com/rust-lang/rust/blob/c6db1ca3c93ad69692a4c... (Cranelift itself is written in Rust.)
    comment by mbrubeck · 2024-08-26 · in Writing a Rust compiler in C
  39. …that aren't ever used but the linker isn't capable of removing the corresponding debug info. https://github.com/rust-lang/rust/issues/56068
    comment by khuey · 2024-08-24 · in I sped up serde_json strings by 20%
  40. …just ran across simdutf8 and realized the pr for simd-enabled uft8 parsing is coming up on 5 years: https://github.com/rust-lang/rust/issues/68455
    comment by spense · 2024-08-23 · in I sped up serde_json strings by 20%
  41. …the compiler expectedly panicked. this is a feature. > = note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-...
    comment by xcdzvyn · 2024-08-23 · in Python’s Preprocessor
  42. "green threads" as discussed in TFA don't require a runtime. The relevant issues are maybe https://github.com/rust-lang/rust/issues/33368 and https://internals.rust-lang.org/t/what-is-the-current-safety...
  43. …to gauge its actual impact. [1] https://internals.rust-lang.org/t/type-inference-breakage-in... [2] https://github.com/rust-lang/rust/issues/127343 [3] https://hackmd.io/xS913qb6QFCGHrdHB0uhBw#nominated-rusttf127... [4]…
    comment by lifthrasiir · 2024-08-21 · in Rust 1.80.0 breaks existing code
  44. …Again, you're gonna have to cite what you're talking about because Rust definitely has unit tests: https://github.com/rust-lang/rust/blob/master/library/core/t... > Parts of Qt. The Vala programming language, Ada GNAT... and many others.…
    comment by dataflow · 2024-08-19 · in Algorithms we develop software by
  45. …reddit.com/r/cpp/comments/1b55686/maybe_possible... Here's the Rust change which was merged for 1.78: https://github.com/rust-lang/rust/pull/121956/
    comment by tialaramex · 2024-08-14 · in Rust Atomics and Locks (2023)
  46. …you like them or not. (This is also why the list is not as exhaustive, as it needn't to be.) [1] https://github.com/rust-lang/rust/pull/92469/files
    comment by lifthrasiir · 2024-08-13 · in 0xCAFEBABE & 0xFEEDFACE (2003)
  47. …magic numbers like these edit: yes, 0xCAFEBABE is a warning but 0xFEEDFACE is not: 3405691582 https://github.com/rust-lang/rust/blob/d0ea1d767925d53b2230e...
    comment by novagameco · 2024-08-13 · in 0xCAFEBABE & 0xFEEDFACE (2003)
  48. …lead to UB The only thing that comes to mind that this could be referring to are the open bugs at https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... . Are these what you're referring to? > this infernal 'internal compiler…
    comment by estebank · 2024-07-30 · in Translating All C to Rust (TRACTOR)
  49. ▲ 1
    weird-exprs.rs
    story by kyuri · 2024-07-29 · 1 comment
  50. …https://doc.rust-lang.org/1.26.0/std/vec/struct.Vec.html#met... https://github.com/rust-lang/rust/issues/27779#issuecomment-...