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
-
…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 -
…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 -
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 -
…you have recommendations I'm a Rust fanboy, so I'd recommend installing Rust via rustup ;-) [pr]: https://github.com/rust-lang/rust/pull/79219
comment by shepmaster · 2020-11-23 · in Run Homebrew Natively on Apple Silicon Arm M1 -
…intermediate README with instructions [readme] [fzy]: https://github.com/jhawthorn/fzy [tracking]: https://github.com/rust-lang/rust/issues/73908 [readme]: https://github.com/shepmaster/rust/blob/silicon/silicon/READ...
comment by shepmaster · 2020-11-23 · in Run Homebrew Natively on Apple Silicon Arm M1 -
…it does work. Time is not the only issue here, as elaborated downthread. For the gory details, see https://github.com/rust-lang/rust/issues/73908
comment by steveklabnik · 2020-11-21 · in Is Apple Silicon Ready? -
…software. You mentioned Rust, which is currently blocked on getting hardware hooked up to CI ( https://github.com/rust-lang/rust/issues/73908 ) Also, such an impressive release of hardware shows third party devs that Apple is serious about…
comment by nindalf · 2020-11-20 · in Is Apple Silicon Ready? -
…enabled it will allow to be as or faster than cranelift while keeping sane runtime performance. https://github.com/rust-lang/rust/pull/77117
comment by The_rationalist · 2020-11-18 · in 30% Faster Rust Build Times using Cranelift instead of the LLVM -
…1.0 (including a nice "book")[1] being released. EDIT: Oh, and the Rust performance book[2]. [0]: https://github.com/rust-lang/rust/pull/79135 [1]: https://cxx.rs [2]: https://nnethercote.github.io/perf-book/
comment by hobofan · 2020-11-17 · in Servo’s new home -
Rust's Apple Silicon support is tracked here: https://github.com/rust-lang/rust/issues/73908
comment by steveklabnik · 2020-11-17 · in Apple MacBook Pro with M1 Review -
…are no CI providers so we can’t automatically run tests for it. I’ve been running them by hand. https://github.com/rust-lang/rust/issues/73908
comment by shepmaster · 2020-11-12 · in Apple Silicon M1 chip in MacBook Air outperforms high-end 16-inch MacBook Pro -
…gets enabled by default that could be another 25-50% off when compared to the system linker (e.g. https://github.com/rust-lang/rust/issues/39915#issuecomment-... ). And so far Cranelift ( https://github.com/rust-lang/rust/pull/77975 )…
comment by kibwen · 2020-11-11 · in Exploring PGO for the Rust Compiler -
…always unsupported with VMs (which means you don't want to run the measurement inside CI). [1] https://github.com/rust-lang/rust/issues/50655
comment by ibraheemdev · 2020-11-11 · in Exploring PGO for the Rust Compiler -
…out, since there's a large body of Fortran code that relies on good aliasing optimizations. [1]: https://github.com/rust-lang/rust/issues/54878
comment by johncolanduoni · 2020-11-11 · in Will R Work on Apple Silicon? -
…older instruction sets (specifically that lack SSE and SSE2, if I recall) are no longer supported: https://github.com/rust-lang/rust/issues/14441 As a consequence of this issue, I had to manually downgrade librsvg on a older machine in…
comment by CarelessExpert · 2020-11-05 · in Linux Distributions You Can Rely on for Your Ancient 32-Bit Computer -
…unable to actually make those aliasing optimizations because LLVM doesn't compile them correctly? https://github.com/rust-lang/rust/issues/54878
comment by creata · 2020-11-01 · in C/C++ vs. Rust Performance -
…starting with Vec [2]. [0]: https://www.reddit.com/r/rust/comments/jgxgpu/box_will_have_... [1]: https://github.com/rust-lang/rust/pull/77187 [2]: https://www.reddit.com/r/rust/comments/jgxgpu/box_will_have_...
comment by aw1621107 · 2020-11-01 · in C/C++ vs. Rust Performance -
…Also it seems that Ryu prints some numbers in weird ways even though "nicer" representations exist: https://github.com/rust-lang/rust/issues/52811#issuecomment-...
comment by est31 · 2020-10-30 · in Rendering floating numbers: advances in problems you didn’t know you had (2011) -
…provider wasn't great at handling multi-GB caches, so we went with the approach outlined above. [0] https://github.com/rust-lang/rust/blob/1.47.0/src/ci/init_re... [1] https://github.com/rust-lang/rust/commit/0347ff58230af512c95...
comment by aidanhs · 2020-10-26 · in A one-line change decreased our build times by 99% -
…default uses the `FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE` share permission[1]. [0] https://github.com/rust-lang/rust/blob/master/library/std/sr... [1] https://doc.rust-lang.org/std/os/windows/fs/trait.OpenOption...
comment by Measter · 2020-10-18 · in C++ still isn't cutting it -
…Rust 0.8 (2013-09-26) "Explicit enum discriminants may be given as uints as in enum E { V = 0u }" https://github.com/rust-lang/rust/blob/master/RELEASES.md#ve... They're referenced as a pre-existing feature in this Jan 2015 RFC [0], so…
comment by nicoburns · 2020-10-11 · in Rust After the Honeymoon -
…it, and if you can't or don't want to use nightly you can go and assist its shepherding to stable ( https://github.com/rust-lang/rust/issues/72016 ) > while format is great, it's also very heavyweight. Not having (AFAIK) variadic arguments…
comment by masklinn · 2020-10-11 · in Rust After the Honeymoon -
…which was not allowed to unwind at the time the linked comment was made. But in the last few hours, https://github.com/rust-lang/rust/pull/76448 was linked to, which shows how that has since changed.
comment by steveklabnik · 2020-10-09 · in Memory safe ‘curl’ for a more secure internet -
It's also on track to be available in std: https://github.com/rust-lang/rust/pull/72414 https://github.com/rust-lang/rust/issues/74465
comment by archseer · 2020-10-03 · in Rust Starter Kit 2020 -
…sub-pattern matchings, though it's not stable yet there's a tracking issue for at-and-sub-patterns: https://github.com/rust-lang/rust/issues/65490 and it works on nightly: https://play.rust-lang.org/?version=nightly&mode=debug&editi...…
comment by masklinn · 2020-10-02 · in A Fistful of States: More State Machine Patterns in Rust -
D does: https://dlang.org/spec/lex.html#delimited_strings Rust does too, to some degree: https://github.com/rust-lang/rust/pull/9674
comment by nialv7 · 2020-10-02 · in Escaping strings in Bash using !:q -
…to worry about over at [1]. [0] https://play.rust-lang.org/?version=stable&mode=release&edit... [1] https://github.com/rust-lang/rust/issues/54685
comment by jiripospisil · 2020-09-30 · in It Is Never a Compiler Bug Until It Is -
…https://brokenco.de/2020/01/08/faster-rust-linking.html * 2x faster than gold according to this: https://github.com/rust-lang/rust/issues/71515
comment by Ar-Curunir · 2020-09-28 · in Zig's New Relationship with LLVM -
…updated since then, but it seems Cloudflare is still serving an outdated version sometimes. [1] https://github.com/rust-lang/rust/pull/76858#pullrequestrevi... [2] https://github.com/rust-lang/rust/pull/76858/commits/344d835...
comment by rcvalle · 2020-09-24 · in Rust programming language exploit mitigations -
Here is one example, https://github.com/rust-lang/rust/issues/63818 Alternative ideas, here are four, combining the productivity of automatic memory management with ownership, https://swift.org/blog/swift-5-exclusivity/…
comment by pjmlp · 2020-09-24 · in Biscuit: A monolithic, POSIX-subset operating system kernel in Go -
The original impetus seems to have been for the now defunct green threading concurrency approach: https://github.com/rust-lang/rust/pull/13158/files One of the post hoc rationales that seems to have cropped up is as you mentioned. But that…
comment by wahern · 2020-09-24 · in How expensive is integer-overflow trapping in C++? -
…a thing happened with specialization, which has been in the works for much longer (current status: https://github.com/rust-lang/rust/pull/68970 ), and the lesson has been to not incite expectation until you are extremely certain the…
comment by kibwen · 2020-09-23 · in Haskell's Children -
…associated types). But that is blocked on other work and might never actually be implemented. [1] https://github.com/rust-lang/rust/issues/44265
comment by the_duke · 2020-09-23 · in Haskell's Children