rust-lang/rust
View on GitHub ↗ ★ 121,011 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
-
…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 -
▲ 2
Rust 1.71.0 Is Releasedstory by sedatk · 2023-07-14 · 0 comments
-
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 -
▲ 30
Rust – 350MB-long type name regression in 1.46story by nethunters · 2023-07-10 · 1 comment
-
…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 -
▲ 3
Rust lang adding privacy and reproducibility to compiler by defaultstory by transportheap · 2023-06-13 · 0 comments
-
…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 -
▲ 2
Tracking Issue for experimental yeet expressions (Rust)story by enricozb · 2023-04-28 · 0 comments
-
…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 -
Further down that GitHub issue, it mentions the problem has been fixed: * https://github.com/rust-lang/rust/issues/71871#issuecomment-... * https://github.com/rust-lang/rust/pull/79998 Weirdly though, there's another issue (opened prior)…
comment by justinclift · 2023-03-25 · in The tug-of-war over server-side WebAssembly -
…compiled to Wasm. Since I was surprised to learn this, and to save everyone else the search, it's https://github.com/rust-lang/rust/issues/71871
comment by Arnavion · 2023-03-24 · in The tug-of-war over server-side WebAssembly -
something about linking to rustc https://github.com/rust-lang/rust/issues/27812 i didn't look any futher.
comment by calvinmorrison · 2023-03-17 · in The birth of a package manager -
…take a card, drop the &mut and then take the second player. At some point in the future I could use https://github.com/rust-lang/rust/issues/104642 to get_many_mut. I ended up with a pretty inefficient version of get_many_mut that fully…
comment by phamilton · 2023-03-14 · in Switching from C++ to Rust -
…the try operator) In the interest of full and strict accuracy: see the enum’s full definition at https://github.com/rust-lang/rust/blob/d610b0c514b9ccb0dad5d... . There are a few points of specialness about Option that you can’t use…
comment by chrismorgan · 2023-03-13 · in Overhead of Returning Optional Values in Java and Rust (2021) -
…seemingly no reason. There is a very good reason for this. Behold, the Bastion of the Turbofish. https://github.com/rust-lang/rust/blob/master/tests/ui/parse...
comment by q3k · 2023-03-07 · in Zig as an alternative to writing unsafe Rust -
…pointers or branch on invalid values (same case in Rust), not have invalid values at all. [0]: https://github.com/rust-lang/rust/issues/94133 [1]: https://gist.github.com/Darksonn/1567538f56af1a8038ecc3c664a... [2]:…
comment by kprotty · 2023-03-07 · in Zig as an alternative to writing unsafe Rust -
…*mut [u8]) {}` is legal while `fn f(a: *mut [u8]) { a.len(); }` doesn't compile on stable due to https://github.com/rust-lang/rust/issues/71146 . Looks like raw slice pointers aren't fully baked yet.
comment by nyanpasu64 · 2023-03-07 · in Zig as an alternative to writing unsafe Rust