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
-
…passes that turn out to be broken because they're not really used by the broader C/C++ community ( https://github.com/rust-lang/rust/issues/54878 ).
comment by vlovich123 · 2023-02-28 · in Will Carbon Replace C++? -
…unsafe trait in the standard library and will likely never be stabilized in its current form. [0] https://github.com/rust-lang/rust/blob/f540a25745e03cfe9eac7...
comment by the8472 · 2023-02-27 · in Zig's multi-sequence for loops -
…type (like your "MyRange" example), there has been some experimentation in this direction in Rust: https://github.com/rust-lang/rust/pull/107606
comment by Georgelemental · 2023-02-27 · in Idris 2 0.6.0 is now available for the JVM -
It's notable that Elektrobit seems to work on getting Rust on QNX: https://github.com/rust-lang/rust/pull/106673
comment by xvilka · 2023-02-23 · in Mercedes-Benz previews its operating system MB.OS -
This is the commit in the Rust repository that achieves the speedup by reducing branch misprediction: https://github.com/rust-lang/rust/commit/b7089e0dd3e988270f3... Do I understand correctly why this works? In the `if` condition on line…
comment by nequo · 2023-02-22 · in Speedup Rust's heapsort by 1.5x by making it branchless -
▲ 4
Speedup Rust's heapsort by 1.5x by making it branchlessstory by pykello · 2023-02-21 · 1 comment
-
GitHub works great for it, for diagnostic tickets in particular you can file them at https://github.com/rust-lang/rust/issues/new?assignees=&labe... Even if it is an "it hurts when I do this" without more context it can be useful to bring…
comment by estebank · 2023-02-17 · in I love building a startup in Rust but wouldn't pick it again -
▲ 2
Miscompilation: Equal pointers comparing as unequal · Issue #107975 · rust-langstory by todsacerdoti · 2023-02-15 · 0 comments
-
…quality as a product and its future. [1] https://www.rust-lang.org/policies/code-of-conduct [2] https://github.com/rust-lang/rust/blob/d0ea1d767925d53b2230e...
comment by throwthisawayhn · 2023-02-14 · in Rust went from side project to world’s fastest growing language -
…it was broken anyway to the point where the Rust compiler had to disable it because of LLVM bugs. https://github.com/rust-lang/rust/issues/54878#issuecomment-... https://news.ycombinator.com/item?id=25624538
comment by imtringued · 2023-02-14 · in Rust went from side project to world’s fastest growing language -
…to run as a pure macOS app (albeit with the iPad layout) on both Apple Silicon and Intel, once https://github.com/rust-lang/rust/issues/106021 is fixed. Unfortunately making it a "real" macOS app is much harder, as the UI is currently uses…
comment by Arathorn · 2023-02-13 · in Matrix 2.0: How we’re making Matrix go voom -
…are serious about the development. Sanitizers are part of official documentation in Rust [2]. [1] https://github.com/rust-lang/rust/issues/39699 [2] https://doc.rust-lang.org/unstable-book/compiler-flags/sanit...
comment by menaerus · 2023-02-11 · in Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022) -
…are stabilized, it might help build lower cost and performant stackless coroutines in Rust.[3] [1] https://github.com/rust-lang/rust/issues/43122#issuecomment-... [2] https://github.com/rust-lang/rust/issues/43122#issuecomment-... [3]…
comment by RedPanda250 · 2023-02-10 · in Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022) -
…code design. Any useful programming language will always have the ability to mishandle data. [1] https://github.com/rust-lang/rust/issues
comment by bArray · 2023-02-08 · in Can sanitizers find the two bugs I wrote in C++? -
Rust doesn't even have support for custom allocators in the language/stdlib. Still waiting on https://github.com/rust-lang/rust/issues/42774 . bumpalo doesn't cut it. Funny thing is that boring and sensible Go just came out with arenas…
comment by lenkite · 2023-02-05 · in The pool of talented C++ developers is running dry -
…(ASan, TSan, UBSan, etc.) though? The last time I've checked it was still a work in progress ( https://github.com/rust-lang/rust/issues/39699 ).
comment by cyber_kinetist · 2023-02-05 · in I use C when I believe in memory safety -
Using mold might help in this case. https://github.com/rui314/mold https://github.com/rust-lang/rust/issues/94347
comment by scns · 2023-02-04 · in Improving Rust compile times to enable adoption of memory safety -
…/software/make/manual/html_node/Job-Slots... [2]: https://github.com/rust-lang/cargo/issues/1744 [2]: https://github.com/rust-lang/rust/pull/42682 `nice cargo build` will run all threads at low priority, but this is generally a good idea…
comment by mbrubeck · 2023-02-03 · in Improving Rust compile times to enable adoption of memory safety -
…Linux/Windows monotonic clocks are broken in some scenarios and will go back or just not increase. https://github.com/rust-lang/rust/pull/56988
comment by 323 · 2023-01-30 · in Determine durations with monotonic clocks if available -
…proposal! I don't understand all the implications, but it seems to be in the right direction https://github.com/rust-lang/rust/pull/105586 [0] https://rustwasm.github.io/docs/wasm-bindgen/
comment by grantjpowell · 2023-01-30 · in Swift Achieved Dynamic Linking Where Rust Couldn't (2019) -
I think I might have been the first person who reported this in 2019: https://github.com/rust-lang/rust/issues/59087 It’s a pretty interesting problem. While everyone assumed that futures are lightweight and thereby more efficient than…
comment by Matthias247 · 2023-01-28 · in The Size of Rust Futures -
…suite named "Bastion of the Turbofish" to pin down an example of the problem case, complete with https://github.com/rust-lang/rust/blob/43192ca3d72ed0ca42ba9...
comment by ssokolow · 2023-01-27 · in Rust's Ugly Syntax -
…got stuck even after the "internal" iterator that accepts a closure has long gone. [1] https://github.com/rust-lang/rust/issues/1864
comment by lifthrasiir · 2023-01-27 · in Rust's Ugly Syntax -
…1_i32.rem_euclid(-10) = 1 [src/main.rs:3] -1_i32.rem_euclid(10) = -1 I found only this issue https://github.com/rust-lang/rust/issues/87970 but has no details Here's the discussion that lead to the implementation of those functions, from…
comment by nextaccountic · 2023-01-27 · in Modulo of negative numbers (2011) -
…quite nicely over the past few years after reaching a nadir of volunteer motivation in 2019; https://github.com/rust-lang/rust/pulse/monthly tells me that 178 discrete authors have contributed to just the rust-lang/rust repo over the past…
comment by kibwen · 2023-01-26 · in Thoughts on what a next Rust compiler would do -
…ability to deliver in future - has been expressed publicly by high profile past core contributors: https://github.com/rust-lang/rust/pull/96709#issuecomment-11... I don't think Rust should tackle any ambitious project to rewrite the…
comment by thagsimmons · 2023-01-26 · in Thoughts on what a next Rust compiler would do -
Not mentioned in the release notes but the rust compiler now supports the Playstation 1 as a target. https://github.com/rust-lang/rust/pull/102689/
comment by Narishma · 2023-01-26 · in Rust 1.67.0 released -
…is is a way to execute code. As an example, the Rust compiler has some [60+ open unsoundness bugs]( https://github.com/rust-lang/rust/labels/I-unsound ), meaning that there are many, many ways that a sequence of ostensibly safe code could…
comment by nneonneo · 2023-01-25 · in Apple issues security update for the almost 10-year-old iPhone 5S -
…I have read GATs (Generic Associated Types) are a deliberate choice to not have to introduce HKTs. https://github.com/rust-lang/rust/pull/96709#issuecomment-11...
comment by Gwypaas · 2023-01-21 · in Rust in 2023: Growing Up -
…more stuff than you could do manually. A great example is the Rust compiler UI test suite ( https://github.com/rust-lang/rust/tree/master/tests/ui ). It doesn't have to be that your tests have large amounts of noise, like compiler UI tests…
comment by cormacrelf · 2023-01-17 · in “Expect tests” make test-writing feel like a REPL session -
…by cargo check. Looks like monomorphization part is not caught during cargo check according to https://github.com/rust-lang/rust/issues/49292 Reporter of the bug says: > All of those happens somewhere inside librustc_mir, most of them…
comment by menaerus · 2023-01-13 · in A practical comparison of build and test speed between C++ and Rust -
…version we can have realistically, and yes it provides net positive value in this current state". https://github.com/rust-lang/rust/pull/96709#issuecomment-12...
comment by pas · 2023-01-10 · in Microfeatures I'd like to see in more languages -
▲ 2
Rust intends to force unsafe blocks in unsafe functionsstory by Subsentient · 2023-01-07 · 1 comment
-
…in the official Rust docs, but looks like 128bit atomics have landed (on supported architectures): https://github.com/rust-lang/rust/blob/19bc8fb05ab083a315ee4...
comment by elfprince13 · 2023-01-06 · in Rust Atomics and Locks: Low-Level Concurrency in Practice -
…ugly and footgun-filled UnsafeCell and raw pointers, unsafe confusing (and currently unsound, see https://github.com/rust-lang/rust/issues/63818 ) Pin, or experimental ghost cells ( https://plv.mpi-sws.org/rustbelt/ghostcell/paper.pdf ,…
comment by nyanpasu64 · 2023-01-06 · in A practical comparison of build and test speed between C++ and Rust -
…help with incremental builds. And for repeated clean + full build cycles there's sccache[1]. [0] https://github.com/rust-lang/rust/pull/84762 [1] https://github.com/mozilla/sccache
comment by the8472 · 2023-01-06 · in A practical comparison of build and test speed between C++ and Rust -
…code, on principle Not on principle, but an incomplete/unstable feature called specialization: https://github.com/rust-lang/rust/issues/31844
comment by duped · 2023-01-04 · in Get Started with Rust: Generics -
…aims to expose a nicer way to glue rust idioms to similar or equivalent idioms in other languages. https://github.com/rust-lang/rust/pull/105586
comment by ysleepy · 2023-01-02 · in The year of C++ successor languages -
▲ 210
Experimental Rust Feature: Safer Interoperable ABIstory by mvelbaum · 2022-12-27 · 86 comments
-
…(checked_add_signed[1]), but the subtraction one it looks like you'd need to roll your own. [1]: https://github.com/rust-lang/rust/issues/87840
comment by raphlinus · 2022-12-19 · in Checked integer arithmetic in the prospect of C23 -
…the specific scenario I was interested in, but it doesn't improve anything for LLVM itself. [0] - https://github.com/rust-lang/rust/issues/88252
comment by bpye · 2022-12-17 · in AVR-GCC Compiler Makes Questionable Code -
Yup. Rust was originally written in OCaml https://github.com/rust-lang/rust/tree/ef75860a0a72f79f97216...
comment by phplovesong · 2022-12-16 · in OCaml 5.0 Multicore is out -
…it always works with the newest version of rust and is already nearly complete after less work. ¹ https://github.com/rust-lang/rust/tree/master/compiler/rustc...
comment by skitter · 2022-12-14 · in Rust front-end merged in GCC trunk -
…this topic was the Rust discussion on improving mutex and related types in their standard library: https://github.com/rust-lang/rust/issues/93740 A few posts later someone was discussing the implementation of various lock implementations…
comment by kccqzy · 2022-12-08 · in Fine-grained locking with two-bit mutexes -
…=> maybe 1 grapheme cluster. Hope that helps either you, or someone else reading this. [0] https://github.com/rust-lang/rust/pull/24428
comment by guitarbill · 2022-12-06 · in Learning Rust with ChatGPT, Copilot and Advent of Code -
https://github.com/rust-lang/rust/pulls?q=is%3Apr+author%3Ae... The aesthetics of syntax is a personal matter, but when the critique of a language focuses exclusively on its syntax, it tells me that the critique is skin deep. Semantics are…
comment by estebank · 2022-12-01 · in Memory Safe Languages in Android 13 -
> Edit: if you downvote, reply with a link to the last compiler you wrote. https://github.com/rust-lang/rust/
comment by pcwalton · 2022-12-01 · in Memory Safe Languages in Android 13 -
…`allow_internal_unsafe` which allows you to use unsafe code inside a macro. But after this PR( https://github.com/rust-lang/rust/pull/57467 ) was merged, you can no longer use this attribute when unsafe code is forbidden. So how can you…
comment by kxxt · 2022-11-27 · in Safe Rust Code That Segfaults -
…of Vec have an example, which is doctested, and yet Vec still has an extensive suite of unit tests: https://github.com/rust-lang/rust/blob/master/library/alloc/... Technically you could use doctests as a literate-ish test framework…
comment by masklinn · 2022-11-27 · in Doctests in R -
…{ fn foo(&self, t: T); } > Multiple if let cases They are a work in progress, available in nightly: https://github.com/rust-lang/rust/issues/53667 But they do require an extra level of parens in some cases, though I think that's…
comment by pitaj · 2022-11-26 · in Choosing Nim out of a crowded market for systems programming languages