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
-
…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 -
…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 -
Appears to be 16 bytes on Windows (larger of the two variants): https://github.com/rust-lang/rust/blob/master/library/std/sr...
comment by nonameiguess · 2021-03-11 · in netaddr.IP: a new IP address type for Go -
…and are not yet stable. It is this feature that is internally used to implement async/await. https://github.com/rust-lang/rust/issues/43122
comment by kibwen · 2021-03-10 · in Why asynchronous Rust doesn't work -
…is built on top of coroutines (what Rust calls "generators"), but these are not yet stable. https://github.com/rust-lang/rust/issues/43122
comment by kibwen · 2021-03-10 · in Why asynchronous Rust doesn't work -
…Rust adoption in the mid term, I believe it will cause serious issues in the longer term. [1]: https://github.com/rust-lang/rust/issues/62149#issuecomment-... [2]: https://github.com/rust-lang/rust/issues/63818
comment by newpavlov · 2021-03-10 · in Why asynchronous Rust doesn't work -
Somebody already made a comment, which seems to be getting ignored: https://github.com/rust-lang/rust/issues/27060#issuecomment-... Basically, Intel goofed back when SSE was first introduced, and some compilers (including both gcc and…
comment by souprock · 2021-03-03 · in Giving Ada a Chance -
Niko has an impressive record of both proposals and concrete contributions, FWIW: https://github.com/rust-lang/rust/graphs/contributors https://github.com/rust-lang/rfcs/graphs/contributors
comment by duckerude · 2021-03-03 · in How the AWS team will contribute to Rust’s success -
Misbehavior manifests even on x86, see the tracking https://github.com/rust-lang/rust/issues/27060 for examples. If you have more information, please leave a comment there.
comment by kibwen · 2021-03-03 · in Giving Ada a Chance -
…a warning first, then might become a hard error for users who opt-in to the upcoming 2021 edition: https://github.com/rust-lang/rust/pull/82525
comment by kibwen · 2021-03-03 · in Giving Ada a Chance -
…had to add explicit clamping code to float casts, because LLVM compiled nasal demons otherwise: https://github.com/rust-lang/rust/issues/10184 Rust also has different aliasing rules. Stricter than C for references, but more relaxed than C…
comment by pornel · 2021-02-28 · in mrustc: In-progress alternative Rust compiler (to C) -
https://github.com/rust-lang/rust/issues/76560 is the tracking issue for this specific feature.
comment by steveklabnik · 2021-02-26 · in Rust const generics MVP hits beta -
…day or two. It is not my area of expertise, but I believe the way you do it is to set this option: https://github.com/rust-lang/rust/blob/master/config.toml.ex... buuut the dockerfile for the llvm 9 build passes this flag as an argument:…
comment by steveklabnik · 2021-02-22 · in The modern packager’s security nightmare -
…right in the error message, but better late than never. [1] https://crates.io/crates/failure [2] https://github.com/rust-lang/rust/pull/72981#issuecomment-72... [3] https://github.com/scottlamb/moonfire-nvr/commit/9a5957d5efa...
comment by scottlamb · 2021-02-19 · in Where Everything Went Wrong: Error Handling and Error Messages in Rust (2020) -
…come to stable[1] [0] https://doc.rust-lang.org/nightly/unstable-book/language-fea... [1] https://github.com/rust-lang/rust/issues/31436
comment by exrook · 2021-02-19 · in Where Everything Went Wrong: Error Handling and Error Messages in Rust (2020) -
…aren't memory unsafe in modern rust. The issue search you want to find memory safety issues is: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao...
comment by gpm · 2021-02-18 · in Mitigating Memory Safety Issues in Open Source Software -
A worthwhile goal. But not in a memory unsafe language, please. There's hype and there are lies: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao...
comment by rurban · 2021-02-18 · in Mitigating Memory Safety Issues in Open Source Software -
Rust is implemented in Rust ( https://github.com/rust-lang/rust )
comment by nindalf · 2021-02-10 · in Are we game yet? – A guide to the Rust game development ecosystem -
This looks like something to watch out for: https://github.com/rust-lang/rust/issues/62569 Basically Rust ignores SIGPIPE, so if you don't use write!() or handle SIGPIPE yourself, large amounts of data going through a shell pipe can result…
comment by tyingq · 2021-02-06 · in Show HN: Ht – HTTPie Clone in Rust -
…for this? This sounds awesome. EDIT: thanks to the links below I found this [1] and this [2] [1] https://github.com/rust-lang/rust/issues/32838 [2] https://github.com/rust-lang/rfcs/pull/1398
comment by mmastrac · 2021-01-15 · in Why Zig when there is already C++, D, and Rust? -
…the llvm backend, so my understanding is that in practice rust assumes that loops terminate. See: https://github.com/rust-lang/rust/issues/28728 There are llvm directives that can be added to prevent the optimization, but they are rejected…
comment by gpderetta · 2021-01-12 · in GCC Rust: GCC Front-End for Rust -
I don't know the root cause of the noalias miscompilation, the thing I was referring to is https://github.com/rust-lang/rust/issues/28728 TL;DR: C++ says that an infinite loop with no side effects is UB, Rust does not. Empty loops in Rust…
comment by steveklabnik · 2021-01-10 · in GCC Rust: GCC Front-End for Rust -
…[1] that can improve proc macro error messages a lot. Sadly it hasn't been worked on in years. [1] https://github.com/rust-lang/rust/issues/54140
comment by the_duke · 2021-01-10 · in Building a runtime reflection system for Rust (Part 3) -
https://github.com/rust-lang/rust/issues/54878
comment by tick_tock_tick · 2021-01-04 · in Rust is now overall faster than C in benchmarks -
Thanks for posting that link. I found the following issue because of it: https://github.com/rust-lang/rust/issues/80682
comment by aliceryhl · 2021-01-04 · in Rust is now overall faster than C in benchmarks