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/blob/master/src/libstd/sys... Looks like it’s relying glibc for lock elision. Mind you the parking_lot::Mutex in the article is not the stdlib implementation, documented here:…
    comment by bluejekyll · 2020-01-04 · in Mutexes are faster than Spinlocks
  2. https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... is the list of soundness bugs. They are considered major, but they’re more compiler bugs than something broken in the language itself. They are taken seriously, but bugs will…
  3. …), and did the upstream work in GDB to get it to understand things. (There's also more work to do: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... ) That being said, yes, we see integration into the parent platform as being…
    comment by steveklabnik · 2019-12-29 · in Why are my Go executable files so large?
  4. …for this, I think. It seems like Rust also needs this, either through linker magic or extern C: https://github.com/rust-lang/rust/search?utf8=%E2%9C%93&q=er...
  5. …made (as the > policy notes though, we are inclined to accept such a request). > regards, > Niko https://github.com/rust-lang/rust/issues/53287 This thread in the project's (hyperbola) issue tracker seems silly and needlessly exclusive,…
  6. This proposal has been made in the tracking issue already, yet it hasn't been picked up on yet: https://github.com/rust-lang/rust/issues/44109#issuecomment-...
    comment by est31 · 2019-12-19 · in Rust 1.40
  7. …make such checks possible for #[non_exhaustive] as well but it seems that nothing has happened yet: https://github.com/rust-lang/rust/issues/44109#issuecomment-...
    comment by est31 · 2019-12-19 · in Rust 1.40
  8. …I'm curious about as I really thought it would have segfaulted. It's a signal handler, of course: https://github.com/rust-lang/rust/blob/d8bdb3fdcbd88eb16e1a6...
    comment by saagarjha · 2019-12-19 · in Make CPython segfault in 5 lines of code
  9. …printf line causes everything after it in the file to be recompiled without there being a need: https://github.com/rust-lang/rust/issues/47389
    comment by est31 · 2019-12-11 · in Speeding Up the Rust Compiler
  10. …codegen on the user's computer. But that's still complex, and not necessarily much faster. See https://github.com/rust-lang/rust/issues/38913 .
    comment by GrayShade · 2019-12-11 · in Speeding Up the Rust Compiler
  11. Worth noting that support for custom allocators in standard collections is not finalized yet: https://github.com/rust-lang/rust/issues/32838 The (awesome) bumpalo crate that you link to gets around this by providing ported implementations…
    comment by dunkelheit · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig
  12. …I am still waiting for RFC0066[1] to be fixed. It is from 2014-05-04! Here is its GitHub Issue: https://github.com/rust-lang/rust/issues/15023 . Backstory: I started writing a relatively simple Rust program many years ago when I ran into…
    comment by johnisgood · 2019-12-08 · in GCC-Rust: Rust frontend for GCC
  13. …again ) was found in both LLVM and GCC (they made a C reproducer, so they could test in both). See: https://github.com/rust-lang/rust/issues/54878 (rustc) https://bugs.llvm.org/show_bug.cgi?id=39282 (LLVM)…
    comment by cesarb · 2019-12-08 · in GCC-Rust: Rust frontend for GCC
  14. …is done on collections of objects instead, the problem can be tackled more easily I think. [1]: https://github.com/rust-lang/rust/issues/53488 [2]: http://smallcultfollowing.com/babysteps/blog/2018/04/16/rust...
  15. …like `Pin` would have to have been proven on its own in an ad-hoc way not covered by RustBelt. [0] https://github.com/rust-lang/rust/labels/I-unsound%20%F0%9F%... [1] https://gitlab.mpi-sws.org/iris/lambda-rust/tree/popl18
    comment by lidHanteyk · 2019-11-29 · in Unsoundness in Pin
  16. …I'm not entirely sure yet about the impact of this one, will have to read the thread I guess. [1]: https://github.com/rust-lang/rust/issues/62149#issuecomment-...
    comment by est31 · 2019-11-29 · in Unsoundness in Pin
  17. …not needed any more, but currently support is still in the compiler. This is a PR to remove it: https://github.com/rust-lang/rust/pull/65703
  18. …generally [1] can't be converted to a function pointer as it requires both code and state. [1] https://github.com/rust-lang/rust/issues/39817
    comment by mmastrac · 2019-11-25 · in Neat Rust Tricks: Passing Closures to C
  19. …org/?version=stable&mode=release&edit... [1]: https://doc.rust-lang.org/src/std/f64.rs.html#724-726 + https://github.com/rust-lang/rust/blob/bc0e288ad02ef362b5a6c... Edit: Actually, I can't reproduce the author's situation on godbolt. The…
    comment by Arnavion · 2019-11-12 · in Floating point oddity
  20. An important bugfix in 1.39.0 that wasn't mentioned in the release announcement is probably: https://github.com/rust-lang/rust/pull/63402 It's important because unless rustfmt is available, bindgen would put everything onto one line:…
    comment by est31 · 2019-11-07 · in Rust 1.39
  21. …note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
  22. There is an example of indexed vecteur in the rustc source code https://github.com/rust-lang/rust/blob/master/src/librustc_i...
    comment by likeliv · 2019-11-01 · in Typestates in Rust (2018)
  23. You can see here some discussion of that question: https://github.com/rust-lang/rust/issues/32255 https://github.com/rust-lang/rust/issues/59567
    comment by winstonewert · 2019-10-31 · in Typestates in Rust (2018)
  24. …a particularly "fun" instance of this sort of Makefile weirdness back when we used Make for Rust... https://github.com/rust-lang/rust/blob/efec34a95a76212b2324d... (Discussed on HN: https://news.ycombinator.com/item?id=13655081 )
    comment by steveklabnik · 2019-10-29 · in Evaluating Bazel for building Firefox
  25. …down to -ffast-math, right? Is there an equivalent in Rust? Edit: After some search I found these: https://github.com/rust-lang/rust/issues/21690 https://doc.rust-lang.org/core/intrinsics/fn.fadd_fast.html Writing a wrapper around f64 that…
  26. …of the error, in format file.rs:line:column, eg main.rs:5:10 There are a few example errors here: https://github.com/rust-lang/rust/issues/36611 Are the annotated code snippets after the first line useless with screen readers? I wonder if…
    comment by DougBTX · 2019-10-21 · in Elm 0.19.1
  27. …to Rust's libstd recently for vxworks [0]. Expect it to be a bit buggy until Rust 1.42 or so. [0]: https://github.com/rust-lang/rust/pulls?utf8=%E2%9C%93&q=is%...
  28. There is an issue for that: https://github.com/rust-lang/rust/issues/54878
  29. > Too bad it‘s so broken in LLVM :( TBF it wasn't just LLVM: in https://github.com/rust-lang/rust/issues/54878 "nikic" and "comex" provided C test cases which failed in both clang[0] and gcc[1]. Though GCC has since fixed the issue while…
    comment by masklinn · 2019-09-12 · in Why is Rust slightly slower than C?
  30. …defined in Rust. This is even an issue for C, because `while(1) {}` is a valid in C but UB in C++. https://github.com/rust-lang/rust/issues/28728
    comment by CodesInChaos · 2019-09-12 · in Why is Rust slightly slower than C?
  31. …the mix of unrolled loops, inlined functions and restrict annotations which triggers the issue. [0] https://github.com/rust-lang/rust/issues/54462 [1] https://github.com/rust-lang/rust/issues/54878
    comment by masklinn · 2019-09-12 · in Why is Rust slightly slower than C?
  32. …easiest example I can find of this is in the buffered IO code [1], but there have been others [1]: https://github.com/rust-lang/rust/blob/f0b58fcf03391a91f7422...
    comment by shepmaster · 2019-09-11 · in Why is Rust slightly slower than C?
  33. …be communicated. To express this better in the type system, Rust would need an effect system. [1] https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
  34. …[2] https://kyren.github.io/2018/09/14/rustconf-talk.html [3] https://github.com/rust-lang/rust/pull/45225
  35. …have a very fast SIMD round instruction but its behavior doesn't exactly match libc round. See https://github.com/rust-lang/rust/issues/55107 for a deeper discussion.
  36. …references ever alias. Things have been held up for a while on this LLVM bug, though[0]. [0] https://github.com/rust-lang/rust/issues/54878
    comment by lytigas · 2019-08-27 · in Incrementing vectors
  37. …(LLVM equivalent of __restrict). Unfortunately, this feature is disabled due to an LLVM bug: https://github.com/rust-lang/rust/issues/54878 On the other hand, if you use the more idiomatic `&mut [u8]`, that passes the pointer and size by…
    comment by comex · 2019-08-27 · in Incrementing vectors
  38. …issue that is not being taken seriously I think. I raised the issue about platform size in June: https://github.com/rust-lang/rust/issues/61978 and its actually gotten worse since then, significantly worse. In the 2 months since then the…
    comment by svnpenn · 2019-08-21 · in Thoughts on Rust bloat
  39. Rust platform size has recently increased by 50%: https://github.com/rust-lang/rust/issues/61978 which puts it at over double the size of Go. Worse is seems to be no impetus to fix this. Also notable is Rust still doesnt have a Map…
    comment by svnpenn · 2019-08-15 · in Rust 1.37.0
  40. Depending on your profiency : - you can actually contribute to the compiler itself : https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... - you can contribute to the low-level abstracting graphics library :…
    comment by rvdca · 2019-08-15 · in Rust 1.37.0
  41. Seems like async/await is going to slip into Rust 1.39 instead: https://github.com/rust-lang/rust/pull/63209#issuecomment-52...
    comment by pietroalbini · 2019-08-15 · in Rust 1.37.0
  42. …anyone else is curious, async/await isn't part of this release but should be in the next (1.38): https://github.com/rust-lang/rust/issues/62149
    comment by eyeinthepyramid · 2019-08-15 · in Rust 1.37.0
  43. …and secure languages, toolchains, even OS themselves into IoT, IIoT, and even RTOS worlds. [1] https://github.com/rust-lang/rust/pull/61946
  44. …LLVM and GCC both miscompile the same numerical code involving mildly tricky aliasing constraints. https://github.com/rust-lang/rust/issues/54878#issuecomment-... I think I'd prefer that safety-critical code be written in languages that…
  45. …disabled their use of the buggy features, Rust/LLVM was producing _numerically incorrect_ code. https://github.com/rust-lang/rust/issues/54878#issuecomment-...
  46. …get monomorphization-free iterator libraries, but until then Rust isn't perfect for wasm. [1]: https://github.com/rust-lang/rust/issues/46477
  47. …empty enum.[1] There is also a RFC for unions, but that doesn't seem to have gone anywere.[2] [0]: https://github.com/rust-lang/rust/issues/57012 [1]: Such as https://crates.io/crates/void which also provides helpers for safely coercing…
    comment by Nullabillity · 2019-07-19 · in Notes on a Smaller Rust
  48. Nah. The Rust compiler's warnings are wonderful, as ever: https://github.com/rust-lang/rust/blob/master/src/librustc/i...
    comment by _nhynes · 2019-07-18 · in Rust Solved Dependency Hell
  49. …model. It has even been relaxed recently, so you can go from a &Cell<[T]> to a &[Cell<T>]: https://github.com/rust-lang/rust/pull/61620 The same could be done for struct fields if the type system knew about it, and the whole thing could…
    comment by Rusky · 2019-07-04 · in Announcing Rust 1.36.0
  50. …automatic regression test to ensure it so the ability comes and goes. Here's the tracking issue: https://github.com/rust-lang/rust/issues/34902
    comment by kibwen · 2019-07-04 · in Announcing Rust 1.36.0