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
20082026
-
Alright, and as a versioned link that'll be: https://github.com/rust-lang/rust/blob/7d8386f05cedf33c7475c... Thank you!
comment by LoganDark · 2023-08-11 · in Fastest branchless binary search -
…It depends on the generic_const_exprs feature which is still, to quote, "highly experimental": https://github.com/rust-lang/rust/issues/76560 Definitely not for production use, but it gives a flavor for where things can head in the medium…
comment by dgacmu · 2023-08-08 · in Candle: Torch Replacement in Rust -
…Either I remembered wrong or it's changed. Now it uses some kind of custom wrapper around Box: https://github.com/rust-lang/rust/blob/master/compiler/rustc... So actually, the Rust compiler itself uses owned children in its AST!
comment by foldr · 2023-08-08 · in Compiler Development: Rust or OCaml? -
…it in nightly but not in stable[1]: https://rust-lang.github.io/rfcs/2294-if-let-guard.html [1] https://github.com/rust-lang/rust/issues/51114
comment by nequo · 2023-08-08 · in Compiler Development: Rust or OCaml? -
…kernel APIs (unshare(CLONE_NEWUSER) for instance) simply cannot be used from regular Go code. [1]: https://github.com/rust-lang/rust/issues/62314 [2]: https://github.com/golang/go/issues/61751
comment by cyphar · 2023-08-07 · in Barco: Linux Containers from Scratch in C -
You would report it on our issue tracker. Here is an example of what that would look like: https://github.com/rust-lang/rust/issues/114324 Even if you can't reproduce it, the backtrace can be enough to figure out the problem, or at least…
comment by estebank · 2023-08-02 · in No telemetry in the Rust compiler: metrics without betraying user privacy -
…step expand into "create an issue and then fill out an elaborate questionnaire"? For instance, https://github.com/rust-lang/rust/blob/master/.github/ISSUE_... isn't... bad for what it is, but it's definitely asking for enough work that it…
comment by yjftsjthsd-h · 2023-08-01 · in No telemetry in the Rust compiler: metrics without betraying user privacy -
…to expect that any alternative service would require some kind of login to cut down on spam. [1]: https://github.com/rust-lang/rust/pull/114128
comment by estebank · 2023-08-01 · in No telemetry in the Rust compiler: metrics without betraying user privacy -
…a pre-filled link with a one-click submit and an optional "contact me at [email]" field. --- [1]: https://github.com/rust-lang/rust/issues/93701 implies they do this too. They made or already had a github account, have run multiple…
comment by Groxx · 2023-08-01 · in No telemetry in the Rust compiler: metrics without betraying user privacy -
…exposing latent LLVM bugs and having to disable them). There’s more that can be done here, see e.g. https://github.com/rust-lang/rust/issues/16515 There are also soundness issues around async/await: https://github.com/rust-lang/rust/issues/…
comment by cwzwarich · 2023-08-01 · in Can you trust a compiler to optimize your code? -
…post[2] which gives a decent intro on the concept and what it could be used for down the line. [1]: https://github.com/rust-lang/rust/pull/107606 [2]: https://cohost.org/oli-obk/post/165584-ranged-integers-via [3]:…
comment by mbStavola · 2023-07-23 · in Why Rust is a great fit for embedded software – 2023 update -
…it wrong" problem. Edit: here is the - still open - issue about higher-ranked lifetime errors: https://github.com/rust-lang/rust/issues/102211
comment by rklaehn · 2023-07-19 · in Local async executors and why they should be the default -
It’s been shipping printers for a few years: https://github.com/rust-lang/rust/pull/72357 Though that “only” dates back to 2020 so people with experience older than that would have had a worse experience, and may have ended once bitten…
comment by masklinn · 2023-07-13 · in Rust 1.71.0 -
…by default for the standard library) to be taking care of this relatively well - e.g. looking at https://github.com/rust-lang/rust/pull/72357 it appears that `HashMap` and `HashSet` have printers. (Raw C++ data structures without some form…
comment by mark_undoio · 2023-07-13 · in Rust 1.71.0 -
…struct accordingly, but that's going to be a painful exercise and a maintainability nightmare. [1] https://github.com/rust-lang/rust/issues/62958 [2] https://github.com/rust-lang/rust/issues/62952 [3] https://github.com/rust-lang/rust/issue…
comment by 10000truths · 2023-07-12 · in Storing Data in Control Flow -
…still extra-unstable, and last I checked, there were issues with generator size optimizations ( https://github.com/rust-lang/rust/issues/59087 ). C++20 coroutines are similarly opaque and cannot be allocated as a contiguous array.
comment by 10000truths · 2023-07-11 · in Storing Data in Control Flow -
…pointers have addresses that are always a multiple of the alignment used for struct layout. [0] https://github.com/rust-lang/rust/issues/112480
comment by LegionMammal978 · 2023-06-30 · in Structures in C: From Basics to Memory Alignment -
> not a struct like `Result` Minor nitpick, but it's an enum. https://github.com/rust-lang/rust/blob/master/library/core/s...
comment by rascul · 2023-06-27 · in Rust fact vs. fiction: 5 Insights from Google's Rust journey in 2022 -
…turning this on because of numerous LLVM miscompilation issues. It was turned on two years ago in https://github.com/rust-lang/rust/pull/82834 but was subsequently rolled back in https://github.com/rust-lang/rust/pull/86036 because of a…
comment by cyber_kinetist · 2023-06-18 · in Rust vs Zig Benchmarks -
…for pools, you can find relevant discussion at [2]. [0] https://github.com/fitzgen/bumpalo [1] https://github.com/rust-lang/rust/issues/32838 [2] https://news.ycombinator.com/item?id=36353145 Edit: formatting.
comment by tw061023 · 2023-06-18 · in Rust vs Zig Benchmarks -
this forgets https://github.com/rust-lang/rfcs/pull/3127 and https://github.com/rust-lang/rust/issues/111540
comment by transportheap · 2023-06-15 · in This Week in Rust 499 -
…https://unix.stackexchange.com/questions/729342/performance-... https://github.com/rust-lang/rust/issues/70108 https://news.ycombinator.com/item?id=23080290 https://vector.dev/highlights/2020-07-09-add-musl-and-glibc-... T
comment by still_grokking · 2023-06-13 · in Debian 12 “Bookworm” -
…eventually the author abandons the linked PR because of a better approach found with ipnsort: https://github.com/rust-lang/rust/pull/100856#issuecomment-1...
comment by gavinray · 2023-06-10 · in A performance analysis of Intel x86-SIMD-sort (AVX-512) -
Eh, the `OsStr` API has warts still, some parts are unstable ( https://github.com/rust-lang/rust/issues/111544 ).
comment by Georgelemental · 2023-06-07 · in Cuneicode, and the Future of Text in C -
I came across this issue in Rust recently: https://github.com/rust-lang/rust/issues/57893 . I thought it was interesting since it lets you easily write transmute in safe Rust: https://zyedidia.github.io/blog/posts/5-safe-transmute/ .
comment by zyedidia · 2023-06-07 · in Counterexamples in Type Systems: programs that crash, segfault or explode (2021) -
Their issue tracker has a label for soundness holes: https://github.com/rust-lang/rust/labels/I-unsound
comment by nequo · 2023-06-06 · in Counterexamples in Type Systems: programs that crash, segfault or explode (2021) -
oh my, hadn't known about this yet - 8 years and still unsolved: https://github.com/rust-lang/rust/issues/25860
comment by mzs · 2023-06-06 · in Counterexamples in Type Systems: programs that crash, segfault or explode (2021) -
…ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the…
comment by Gwypaas · 2023-06-05 · in The Rust I wanted had no future -
…much the process or politics, but allocator_api feels like it is stuck in permanent limbo. https://github.com/rust-lang/rust/issues/32838 -- opened 6 years ago, still pending.
comment by cmrdporcupine · 2023-06-04 · in A not-so-quick introduction to the C++ allocator model -
…and chose not to invest any time into adopting Rust after observing various happenings like this < https://github.com/rust-lang/rust/pull/25585 > PR. Their supposed dedication to being "nice" has ever been bound to degenerate into…
comment by Mikhail_K · 2023-05-31 · in Shepherd's Oasis Statement on Rustconf and Introspection -
According to github rust has been forked 10,819 times... https://github.com/rust-lang/rust/forks
comment by pengaru · 2023-05-30 · in Rust has been forked to the Crab Language -
…the compiler has a specific optimized code path for the (already older) include_bytes! macro: https://github.com/rust-lang/rust/pull/103812#issuecomment-1...
comment by est31 · 2023-05-30 · in Why is Swift so slow (timeout) in compiling this code? (2022) -
…is hard, so it usually isn't worth it. Even random hash order in hashmaps can create problems: see https://github.com/rust-lang/rust/issues/84447 and https://github.com/rust-lang/rust/pull/82272#issuecomment-82... , though this is a very…
comment by armchairhacker · 2023-05-30 · in Why Learn Compilers (2021) -
…was written in OCaml. (I know you know that; I'm just highlighting how apt the analogy was. :) https://github.com/rust-lang/rust/tree/ef75860a0a72f79f97216...
comment by cpeterso · 2023-05-27 · in Oxidizing OCaml: Locality -
…rust compiler is emitting these escape sequences for colours outwith the AIXTerm 16 colour set. * https://github.com/rust-lang/rust/blob/master/compiler/rustc...
comment by JdeBP · 2023-05-24 · in Rio: Terminal app built over WebGPU, WebAssembly and Rust -
…Windows XP support, the fallback code for panic!() in Rust was broken when running on Windows XP ( https://github.com/rust-lang/rust/issues/34538 ).
comment by cesarb · 2023-05-17 · in I Still Use Windows 95 (2008) -
I have put a bug report where my mouth is. https://github.com/rust-lang/rust/issues/111272
comment by ridiculous_fish · 2023-05-06 · in Ask not what the compiler can do for you -
Check this out: https://github.com/rust-lang/rust/issues/111177
comment by Narsagna · 2023-05-05 · in Ask not what the compiler can do for you -
…there is a decent amount of undefined behavior on stack overflow in Rust, due to its use of TLS. https://github.com/rust-lang/rust/issues/43146
comment by ridiculous_fish · 2023-05-05 · in Ask not what the compiler can do for you -
I think you missed "Add support for custom allocators in Vec": https://github.com/rust-lang/rust/pull/78461
comment by iudqnolq · 2023-04-29 · in Microsoft exec says Windows 11 kernel will soon be booting with Rust inside -
…lists: > Has driven changes in upstream Rust: more try_ methods for Vec that don't panic in OOM: https://github.com/rust-lang/rust/pull/95051 I was curious to have a look at that PR, but it seems it was closed after a long discussion…
comment by w-m · 2023-04-28 · in Microsoft exec says Windows 11 kernel will soon be booting with Rust inside -
…but not the other... right? When I say "under-specified", I meant something like this: https://github.com/rust-lang/rust/pull/105300/ quote> I claim it's more correct as well because it fixes #104639. There is no spec. Just a bunch of…
comment by j16sdiz · 2023-04-25 · in GCC 13 and the State of Gccrs -
…all a "sufficiently motivated" attacker would need to do is peruse the unsound bugs on GitHub? https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... Those aren't considered to be security issues. Makes me wonder what the point of…
comment by IshKebab · 2023-04-09 · in PL/Rust 1.0: now a trusted language for Postgres -
…Rust keeps a list of soundness bugs via a tag on github - they're pretty common: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by gpm · 2023-04-09 · in PL/Rust 1.0: now a trusted language for Postgres -
…was put into it. The compiler diagnostics use a very different system than your error types. (eg https://github.com/rust-lang/rust/blob/master/compiler/rustc... ). I think your approach adds a lot of value to a very generic library, but…
comment by iudqnolq · 2023-04-09 · in Modular Errors in Rust -
…issues, the total mess of C++ templates). Rust's generics also have some dark corners (e.g. https://github.com/rust-lang/rust/issues/84857 ).
comment by foldr · 2023-04-08 · in Go 1.21 will (likely) have a static toolchain on Linux -
…flow of their containing function. These two annoyances could be resolved with: - async iterators https://github.com/rust-lang/rust/issues/79024 - an extension trait for iterators over results: https://crates.io/crates/iterr
comment by zamalek · 2023-04-06 · in Rust's Poor Composability -
Some fun ones at https://github.com/rust-lang/rust/blob/master/tests/ui/weird...
comment by scoopr · 2023-03-30 · in Wat [video] (2012) -
> The standard library depends on external crates? Yes: https://github.com/rust-lang/rust/blob/478cbb42b730ba4739351... Of course it is not "some random" crate; all of them is either in the same repository (when `path` is used) or in other…
comment by lifthrasiir · 2023-03-29 · in Rust Is a Scalable Language