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
-
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 -
▲ 103
Bastion of the Turbofish (2020)story by scott_s · 2021-02-03 · 56 comments
-
…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) -
▲ 6
The Bastion of the Turbofishstory by ibraheemdev · 2021-01-07 · 7 comments
-
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 -
…which led me to the pages below https://rust-lang.github.io/rfcs/1398-kinds-of-allocators.ht... https://github.com/rust-lang/rust/issues/32838 https://github.com/rust-lang/wg-allocators
comment by burnthrow · 2021-01-04 · in Rust is now overall faster than C in benchmarks -
…than most other programming languages [2] and the myriad optimizations this knowledge allows. [1] https://github.com/rust-lang/rust/issues/54878#issuecomment-... [2] https://doc.rust-lang.org/nomicon/aliasing.html
comment by Svetlitski · 2021-01-03 · in Rust is now overall faster than C in benchmarks -
Follow along here for re-enabling: https://github.com/rust-lang/rust/issues/54878 For what it's worth I did say "can be" not "is" because I wasn't sure of the current state of this feature. I was just passing on the theory. There are…
comment by arcticbull · 2021-01-03 · in Rust is now overall faster than C in benchmarks -
…it; that is, &T will still get noalias, it's &mut T that's currently disabled. The tracking bug is https://github.com/rust-lang/rust/issues/54878
comment by steveklabnik · 2021-01-03 · in Rust is now overall faster than C in benchmarks -
▲ 3
Ask HN: How to make Rust release binaries reproducible/private?story by _34vz · 2021-01-03 · 0 comments
-
…those who are curious, here's the source code of the original compiler written in OCaml (rustboot) https://github.com/rust-lang/rust/tree/ef75860a0a72f79f97216...
comment by julenx · 2021-01-02 · in A half-hour to learn Rust -
…disappoint there isnt mention of more private/reproducible release binary output from compilation https://github.com/rust-lang/rust/issues/40552 https://github.com/rust-lang/rust/issues/75263
comment by candied_scarf · 2021-01-01 · in Rust 1.49.0 -
…issue though prevents me from recommending Rust for closed source development to my colleagues: https://github.com/rust-lang/rust/issues/40552
comment by mindv0rtex · 2020-12-31 · in Rust 1.49.0 -
…We have talked about adding something like this to the standard library, but it hasn't landed yet. https://github.com/rust-lang/rust/issues/74465 is the tracking issue for when it does. The reason that we don't have this yet is that it is…
comment by steveklabnik · 2020-12-31 · in Rust 1.49.0 -
…been waiting on this one for several years. Time to go remove my workarounds. Thanks! [1]: https://github.com/rust-lang/rust/pull/76119
comment by nitsky · 2020-12-31 · in Rust 1.49.0 -
▲ 2
Minimal Constant Generics Scheduled for Rust 1.51story by ibraheemdev · 2020-12-29 · 0 comments
-
Yes, absolutely. https://github.com/rust-lang/rust/issues/28728 is probably the most famous bug here, but many I-unsound bugs are similar. This would be the case even without this. Compilers are programs. Programs have bugs.
comment by steveklabnik · 2020-12-14 · in Pointers Are Complicated II, or: We need better language specs -
…parameters can only be types, not numbers. FWIW the remedy for this is being stabilized soon: https://github.com/rust-lang/rust/pull/79135
comment by matt_kantor · 2020-12-11 · in Monads and GATs in Nightly Rust -
…argument by value, but that sometimes works and sometimes fails the borrow checker. But now reading https://github.com/rust-lang/rust/issues/59943 I see that this is a feature -- I hadn't been taking advantage of the fact that you can use…
comment by da39a3ee · 2020-12-11 · in Implementing Rust's dbg! in Python -
…to MSVC and musl for a while now but also added static glibc support on Linux very recently: https://github.com/rust-lang/rust/pull/77386
comment by hetman · 2020-12-10 · in Deno 1.6 supports compiling TypeScript to a single executable -
…[1] https://github.com/Unity-Technologies/mono/commit/3f2278e081484e6616ee5892895f999610453ca9 [2] https://github.com/rust-lang/rust/issues/73908 [3] https://github.com/mono/mono/pull/20014 [4] https://github.com/golang/go/issues/38485
comment by tim-- · 2020-12-04 · in M1 Macs: Truth and Truthiness -
…and returns) is incredibly tricky, and not really a lot of fun. This is so true. Rust does it here: https://github.com/rust-lang/rust/tree/master/compiler/rustc... and it's a lot of code for no good reasons.
comment by sanxiyn · 2020-12-02 · in QBE vs. LLVM -
…code maybe two or three years ago. When you encounter things like this, please file a ticket at https://github.com/rust-lang/rust/issues so that we can fix them.
comment by estebank · 2020-11-30 · in Writing Rust the Elixir Way -
https://github.com/rust-lang/rust/issues/73908
comment by steveklabnik · 2020-11-29 · in Apple Silicon M1: A Developer's Perspective