rust-lang/rust
View on GitHub ↗ ★ 121,043 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
-
…would allow for async fns directly in traits, but that is probably a long way off [2]. [0]: https://github.com/rust-lang/rust/issues/63063 [1]: https://github.com/rust-lang/rust/issues/44265 [2]: http://smallcultfollowing.com/babysteps/blog…
comment by ibraheemdev · 2021-06-10 · in Rocket v0.5 Release Candidate -
…// string.len() doesn't work in GDB Debuggin rust still involves a lot of println! or debug! https://github.com/rust-lang/rust/issues/33014
comment by Popegaf · 2021-05-31 · in GCC Rust Monthly Report #6 May 2021 -
…equivalent to upper_bound(), and it got improved recently. The PR of the improvement: https://github.com/rust-lang/rust/pull/74024 Polkadot's postmortem: https://polkadot.network/a-polkadot-postmortem-24-05-2021/
comment by xnhbx · 2021-05-30 · in Rust's improvement on slice.binary_search_by() caused OOM on Polkadot -
▲ 2
Rust's improvement on slice.binary_search_by() caused OOM on Polkadotstory by xnhbx · 2021-05-30 · 1 comment
-
…N times to initialize an array. This basically brings the array-init functionality into std. https://github.com/rust-lang/rust/pull/75644
comment by CryZe · 2021-05-24 · in Methods for Array Initialization in Rust (2018) -
It was stabilized in 2019 by accident: https://twitter.com/m_ou_se/status/1396827152859942921 https://github.com/rust-lang/rust/pull/79270
comment by m-ou-se · 2021-05-24 · in Methods for Array Initialization in Rust (2018) -
…implementation is still limited to N ≤ 32, for technical reasons that haven’t yet been overcome. ( https://github.com/rust-lang/rust/pull/74254 is relevant info that I’ve found on a quick search—I think the trouble is that [T; N] normally…
comment by chrismorgan · 2021-05-24 · in Methods for Array Initialization in Rust (2018) -
…[1] and rustc's cg_clif [2]. 1: https://github.com/bytecodealliance/wasmtime/tree/main/crane... 2: https://github.com/rust-lang/rust/pull/77975
comment by hexane360 · 2021-05-24 · in Rustc_codegen_GCC can now run libcore’s tests and pass most of them -
…today (the original language when the team started to work on it was a bit different to 1.0). https://github.com/rust-lang/rust/graphs/contributors?from=2... The work since 1.0 can be classified as a massive refinement project, which also…
comment by est31 · 2021-05-22 · in Rust heads into the kernel? -
…a similar interface that existed in std, until it was found to be unsound, is totally fascinating: https://github.com/rust-lang/rust/issues/24292 . (Prior to that, std::mem::forget was marked unsafe!) Another detail that's worth clarifying…
comment by oconnor663 · 2021-05-20 · in Things you can’t do in Rust (and what to do instead) -
…cores to the fullest? I don't use Rust, but a quick search returned for example this issue: https://github.com/rust-lang/rust/issues/64913
comment by NicoJuicy · 2021-05-17 · in How M1 Macs feel faster than Intel models: it’s about QoS -
I'd like to add the "Bastion of the Turbofish", which is my personal favorite: https://github.com/rust-lang/rust/blob/master/src/test/ui/ba...
comment by Zababa · 2021-05-14 · in Rust Weird Expressions -
…comment is present, and the rust compiler defaults to the 2015 edition if none was specified. [0]: https://github.com/rust-lang/rust/blob/69b352ef7749825abde2d... [1]: https://github.com/rust-lang/rust/blob/69b352ef7749825abde2d...
comment by est31 · 2021-05-14 · in Rust Weird Expressions -
Yeah. I'd assume a 2018 specific one would show up below https://github.com/rust-lang/rust/tree/master/src/test/ui/ru... if needed.
comment by phaylon · 2021-05-14 · in Rust Weird Expressions -
▲ 248
Rust Weird Expressionsstory by linkdd · 2021-05-14 · 162 comments
-
…The "C-tracking-issue" issues are ones that are open and tracking an RFC that's in implementation, https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... ("C" is short for "Category". These prefixes are... well the original ones…
comment by steveklabnik · 2021-05-11 · in The Plan for the Rust 2021 Edition -
…as, exactly as you say, basically nobody else has forged through these paths in LLVM before. [0]: https://github.com/rust-lang/rust/pull/82834 [1]: https://github.com/rust-lang/rust/issues/84958 [2]: https://stackoverflow.com/a/57259339
comment by nathankleyn · 2021-05-08 · in ABI Mistakes -
▲ 3
Regression: Miscompilation due to bug in “mutable noalias” logicstory by ingve · 2021-05-05 · 1 comment
-
…performance benefits of adding a push-model complement to Rust's usual pull-model Iterator trait: https://github.com/rust-lang/rust/pull/42782#issuecomment-30... ) But, you can get the same natural-looking output from the pull model if you…
comment by Rusky · 2021-05-01 · in Query Engines: Push vs. Pull -
There's an RFC to add the minimum rust version supported. It was merged! The tracking issue is here: https://github.com/rust-lang/rust/issues/65262
comment by swsieber · 2021-04-29 · in A brief history of Rust at Facebook -
Relying to myself to mention another thing: https://github.com/rust-lang/rust/issues/64796 is adding support for a #[cfg(version(x.y))] tag that will allow crates to more easily provide additional feature when using newer compiler, while…
comment by ogoffart · 2021-04-29 · in A brief history of Rust at Facebook -
…of date compared to what most of the ecosystem expect. However there is hope for a better future: https://github.com/rust-lang/rust/issues/65262 will allow crates to specify a minimum supported rust version (MSRV), this way, we can imagine…
comment by ogoffart · 2021-04-29 · in A brief history of Rust at Facebook -
…for creating maintainable large-scale software. Here's the original elevator pitch from 2010: https://github.com/rust-lang/rust/blob/d6b7c96c3eb29b9244ece... Note the text about "programming in the large".
comment by brson · 2021-04-22 · in Green vs. Brown Programming Languages -
…even account for someone writing `-> Trait` and suggest all the appropriate changes. I just filed https://github.com/rust-lang/rust/issues/84346 to account for some cases brought up and I completely agree with your last sentence. It is…
comment by estebank · 2021-04-19 · in What's in the Box? -
…this case in particular where the result would be !Sized and also suggest Boxing. Edit: filed https://github.com/rust-lang/rust/issues/84346 It is also somehow unfortunate that `impl Trait` in locals isn't yet in stable, but once it is it…
comment by estebank · 2021-04-19 · in What's in the Box? -
I think because split-debuginfo is recently stabilized (Nov 2020). https://github.com/rust-lang/rust/pull/79570 Maybe the default will be switched in the future.
comment by est31 · 2021-04-18 · in Reducing Rust Incremental Compilation Times on macOS -
…of panicking, slowly being implemented for all allocating collections in the standard library. see https://github.com/rust-lang/rust/issues/48043 and https://github.com/rust-lang/rust/pull/80310
comment by littlestymaar · 2021-04-16 · in Linus Torvalds on Rust support in kernel -
…around &[u8], but it didn't really provide any actual advantages, so it was decided to not do that. https://github.com/rust-lang/rust/pull/19612
comment by steveklabnik · 2021-04-14 · in Why Rust strings seem hard -
…and prevents further use. Then `mem::forget` prevents `drop` from running. See discussion at https://github.com/rust-lang/rust/issues/59567
comment by rectang · 2021-04-10 · in Comparative unsafety -
…I think it should be reported by an error detecting tool, not a linter Relevant rustc (merged) PR: https://github.com/rust-lang/rust/pull/75671 - "Uplift temporary-cstring-as-ptr lint from clippy into rustc"
comment by rrss · 2021-04-09 · in Comparative unsafety -
…the arguments differently. Worse, even Microsofts two implementations (CRT and WINAPI) disagree: https://github.com/rust-lang/rust/issues/44650
comment by account42 · 2021-04-09 · in Why do long options start with two dashes? (2019) -
…example I posted also calls a bunch of unsafe code, as is necessary to do anything nontrivial (see https://github.com/rust-lang/rust/blob/master/library/std/sr... ). My point is that safe-good unsafe-bad is the wrong way to think about…
comment by iudqnolq · 2021-04-08 · in Cryptographically verifiable code review system for cargo Rust package manager -
…having 1 compiler & 1 standard library & the latter having a much more streamlined RFC process. [1] https://github.com/rust-lang/rust/pull/67076 [2] https://github.com/rust-lang/rust/issues/47960
comment by vlovich123 · 2021-04-07 · in All C++20 core language features with examples -
One person's (resolved) issue does not capture everything that happens with rust. https://github.com/rust-lang/rust/issues/41555 : "Tracking issue for Path Prefix Remapping", stabilized in 2018.
comment by rrss · 2021-04-03 · in Most loved programming language Rust sparks privacy concerns -
Rust is working toward fully reproducible builds; you can see outstanding issues here: https://github.com/rust-lang/rust/labels/A-reproducibility . The compiler already has options to enable many sources of variability. I've had success…
comment by JeremyBanks · 2021-04-03 · in Most loved programming language Rust sparks privacy concerns -
…std library. https://play.rust-lang.org/?version=stable&mode=debug&editio... Report the issue in https://github.com/rust-lang/rust/issues/83648
comment by xucheng · 2021-03-29 · in Netmask NPM package, used by 270k+ projects, vulnerable to octal input data -
That's tracked by https://github.com/rust-lang/rust/issues/26179 by the way.
comment by steveklabnik · 2021-03-29 · in && operator chains (and ||, possibly) generates unoptimizable LLVM IR -
…compiler passes are not exercised a lot by existing LLVM tests and/or not realized in full. [1] https://github.com/rust-lang/rust/pull/82834
comment by killercup · 2021-03-29 · in && operator chains (and ||, possibly) generates unoptimizable LLVM IR -
▲ 228
&& operator chains (and ||, possibly) generates unoptimizable LLVM IRstory by est31 · 2021-03-29 · 100 comments
-
…progress can be followed here [2] [1] https://github.com/rust-lang/rfcs/pull/2116 [2] https://github.com/rust-lang/rust/issues/48043
comment by littlestymaar · 2021-03-22 · in How Safe Is Zig? -
…It's especially bad if your type is an enum, since there's no obvious place to put the PhantomData: https://github.com/rust-lang/rust/issues/32739 > Trial-and-error debugging which version causes a bug is busywork, preventing it right when…
comment by millstone · 2021-03-19 · in Building a shared vision for Async Rust -
The only unresolved soundness issue for Pin that I can find seems to only affect nightly not stable. https://github.com/rust-lang/rust/issues/68015 It doesn't appear to be unresolvable.
comment by ChrisSD · 2021-03-19 · in The biggest threat to Rust's sustainability -
…thread) was also delayed to give it more time to bake. I urge you to look at the releases page ( https://github.com/rust-lang/rust/blob/master/RELEASES.md ). Look at how few user facing changes are made with every release. This is a good…
comment by nindalf · 2021-03-19 · in The biggest threat to Rust's sustainability -
…features, all of which need to be tested in isolation and then with each other. The releases page ( https://github.com/rust-lang/rust/blob/master/RELEASES.md ) shows how rare it is for a fix release to be made. Even when it is, it's…
comment by nindalf · 2021-03-19 · in The biggest threat to Rust's sustainability -
Yep, this one: https://github.com/rust-lang/rust/issues/63818 (the comment I'm summarizing is https://github.com/rust-lang/rust/issues/63818#issuecomment-... )
comment by kibwen · 2021-03-15 · in Speed of Rust vs. C -
Here's Niko Matsakis' take: https://github.com/rust-lang/rust/issues/63818#issuecomment-...
comment by kibwen · 2021-03-15 · in Speed of Rust vs. C -
…more information at https://gist.github.com/Darksonn/1567538f56af1a8038ecc3c664a... . Bug report at https://github.com/rust-lang/rust/issues/63818 . Reddit threads at (older) https://www.reddit.com/r/rust/comments/l4roqk/a_fix_for_the_...…
comment by nyanpasu64 · 2021-03-13 · in Speed of Rust vs. C -
…just have too many decades of experience working with coroutines in various systems I have used :(. https://github.com/rust-lang/rust/issues/43122#issuecomment-... https://github.com/rust-lang/rust/issues/43122#issuecomment-...
comment by saurik · 2021-03-11 · in Why asynchronous Rust doesn't work