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
-
Many years ago I think, here: https://github.com/rust-lang/rust/issues/46213 . (Found this via https://lobste.rs/s/w3jjb2/surprising_enum_size_optimization... )
comment by returningfory2 · 2025-04-10 · in A surprising enum size optimization in the Rust compiler -
▲ 1
Rustc Implements "Super Let"story by remexre · 2025-04-10 · 0 comments
-
…So if it's always equal to cfg!(target_feature="v"), then what does that even mean? I have created https://github.com/rust-lang/rust/issues/139139
comment by thomashabets2 · 2025-03-30 · in Towards fearless SIMD, 7 years later -
…clock is monotonic? [1] [0]: https://github.com/microsoft/TypeScript/wiki/Breaking-Change... [1]: https://github.com/rust-lang/rust/blob/e2223c94bf433fc38234d...
comment by xlii · 2025-03-28 · in Coordinating the Superbowl's visual fidelity with Elixir -
Trait upcasting will land in Rust 1.86.0 which will be released in one week: https://github.com/rust-lang/rust/pull/134367
comment by tyilo · 2025-03-27 · in Exploring Dynamic Dispatch in Rust (2017) -
…looks like the Rust standard library migrated away from SRWLOCK on account of this issue [0]. [0] https://github.com/rust-lang/rust/issues/121949
comment by LegionMammal978 · 2025-03-23 · in The case of the critical section that let multiple threads enter a block of code -
…issue is a different, but related tracking issue. The FP-in-const tracking issue was this one: https://github.com/rust-lang/rust/issues/57241
comment by kibwen · 2025-03-23 · in Crabtime: Zig’s Comptime in Rust -
…Looks like floating point math in const fn is coming. Here is the respective tracking issue: https://github.com/rust-lang/rust/issues/128288
comment by weinzierl · 2025-03-22 · in Crabtime: Zig’s Comptime in Rust -
A long-standing issue with that was just recently fixed: https://github.com/rust-lang/rust/pull/133250
comment by ofek · 2025-03-17 · in Zlib-rs is faster than C -
…would probably be faster thanks to the standard library sort being the fastest, across languages ( https://github.com/rust-lang/rust/pull/124032 ). Again, faster than C. Happy to give more examples if you’re interested. There’s nothing…
comment by nindalf · 2025-03-16 · in Zlib-rs is faster than C -
…library has a state of the art sort implementation. There’s nothing faster, in any language - https://github.com/rust-lang/rust/pull/124032 . And sure, it’s possible that someone could write a C program that compares in speed to all the…
comment by nindalf · 2025-03-13 · in I stopped everything and started writing C again -
…to work with just minified stack traces and not set up source maps to make them readable. [1]: https://github.com/rust-lang/rust/issues/99301
comment by the_mitsuhiko · 2025-03-10 · in Stack Traces Are Underrated -
…code in Rust worse than C++ almost. A fully left-to-right syntax would be amazing. EDIT: found https://github.com/rust-lang/rust/issues/10011 and https://github.com/rust-lang/rfcs/pull/3577
comment by dcsommer · 2025-03-08 · in Zig's dot star syntax (value.*) -
…out to an external assembler, I suppose. [1]: https://github.com/rust-lang/reference/pull/1689 [2]: https://github.com/rust-lang/rust/pull/134213
comment by jchw · 2025-03-08 · in Rust inadequate for text compression codecs? -
Box::leak was added two years later in November 2017 https://github.com/rust-lang/rust/commit/360ce780fdae0dcb31c... >Crashes, stability, and performance issues are still not safety issues since there’s so many ways to cause those beyond…
comment by milesrout · 2025-03-03 · in Effective Rust (2024) -
…perhaps because it requires a network transaction, it's very easy to introduce race conditions. [1] https://github.com/rust-lang/rust/issues/117485
comment by Animats · 2025-03-02 · in Effective Rust (2024) -
…Maybe it was Go? EDIT: Found it: 'rust-lang/rust#13871: "hello world" contains Lovecraft quotes' https://github.com/rust-lang/rust/issues/13871
comment by runlevel1 · 2025-02-20 · in 1972 Unix V2 "Beta" Resurrected -
modules are meant to be the boundary for a safe abstraction, but sometimes you get fun holes like https://github.com/rust-lang/rust/issues/128872 where you can implement Copy for a type in a different module in the same crate, even if the…
comment by kobebrookskC3 · 2025-02-16 · in Solving the ABA Problem in Rust with Tagged Pointers -
…severe though), but there are compatibility changes listed in the release notes very frequently: https://github.com/rust-lang/rust/blob/master/RELEASES.md
comment by uecker · 2025-02-13 · in Resigning as Asahi Linux project lead -
…packages [1]. It was considered okay. At that point, I don't care what they say about semver. [1]: https://github.com/rust-lang/rust/issues/127343#issuecomment...
comment by attractivechaos · 2025-02-13 · in Resigning as Asahi Linux project lead -
…Linux kernel in particular only uses core and not std, which makes this even more unlikely. [1]: https://github.com/rust-lang/rust/issues/72631
comment by purplesyringa · 2025-02-13 · in Resigning as Asahi Linux project lead -
…of this, however. Rust's FFI also relies on undefined behavior if this comment isn't outdated https://github.com/rust-lang/rust/pull/59625#issuecomment-48... https://github.com/rust-lang/rust/blob/master/library/core/s... . Might not be an…
comment by gauntletstricky · 2025-02-12 · in Rust kernel policy -
…and generic support is currently being implemented[0]. Slowly but surely, we're getting there! [0]: https://github.com/rust-lang/rust/issues/136574
comment by mbStavola · 2025-02-10 · in The state of Rust trying to catch up with Ada [video] -
…Rust also has soundness holes, by the way. This one is almost 10 years old: https://github.com/rust-lang/rust/issues/25860
comment by trott · 2025-02-09 · in Ada crate of the year 2024 announced -
…are a problem for supply chain security or any case where the Rust source is fully untrusted. [1]: https://github.com/rust-lang/rust/issues/25860 [2]: https://github.com/rust-lang/rust/issues/57893 [3]:…
comment by zyedidia · 2025-02-07 · in It is time to standardize principles and practices for software memory safety -
…of shorter compile times. [0] https://blog.rust-lang.org/inside-rust/2023/10/06/polonius-u... [1] https://github.com/rust-lang/rust/pull/51133 [2] https://rust-lang.github.io/rust-project-goals/2024h2/Poloni...
comment by LegionMammal978 · 2025-02-05 · in Roc rewrites the compiler in Zig -
…it seems more likely that the requirements on references will eventually be relaxed instead. [1]: https://github.com/rust-lang/rust/issues/119241#issuecomment...
comment by GrantMoyer · 2025-01-31 · in Rust’s worst feature -
Java https://github.com/openjdk/jdk/blob/master/Makefile Rust https://github.com/rust-lang/rust/blob/master/tests/run-make... Go https://github.com/golang/go/blob/master/src/runtime/Makefil... NodeJS https://github.com/nodejs/node/blob/main…
comment by dumah · 2025-01-31 · in A better build system for OCaml -
…an overlap of tacking PR and moving it from std to core PR it's not supper useful. Tracking Issue: https://github.com/rust-lang/rust/issues/78485 If the author has constructive critique they should probably mention it there (after skimming…
comment by dathinab · 2025-01-30 · in Rust’s worst feature -
In theory Rust where you don't allow unsafe can do that. (Reality is not perfect: https://github.com/rust-lang/rust/issues/25860 ) Theseus OS is a research project that created single address space kernel that loads dynamic libraries…
comment by yencabulator · 2025-01-29 · in Can we get the benefits of transitive dependencies without undermining security? -
…can just use one of the collection types (though, notably, HashMap isn't in alloc yet [1]). [1]: https://github.com/rust-lang/rust/issues/27242
comment by kbolino · 2025-01-23 · in C stdlib isn't threadsafe and even safe Rust didn't save us -
…and it turns out it provides a feed for them. For rust master branch, for example, subscribe to https://github.com/rust-lang/rust/commits/master.atom .
comment by lufte · 2025-01-18 · in I've been advocating for RSS support, and you should too -
With some notable exceptions. I'll never love the turbofish [1] for example. [1] https://github.com/rust-lang/rust/blob/master/tests/ui/parse...
comment by cloud-oak · 2025-01-15 · in KEON is a human-readable Serde format that is syntactically similar to Rust -
▲ 1
Rust's New Sort Algorithmsstory by fanf2 · 2025-01-15 · 0 comments
-
…the output of a superoptimizer, it was fun to figure out how it works. For spoilers, see [1]. [1] https://github.com/rust-lang/rust/blob/master/library/core/s...
comment by hairtuq · 2025-01-08 · in Optimizing uint64_t Digit Counting: A Method that Beats Lemire's by up to 143% -
…that these are technically subject to change. Some fun reading links if this is interesting: - https://github.com/rust-lang/rust/issues/75091 - https://github.com/rust-lang/rust/issues/81513 - https://github.com/rust-lang/rust/issues/95228
comment by mmastrac · 2025-01-02 · in Visualizing memory layout of Rust's data types -
▲ 3
Weird Rust Expressionsstory by carlsverre · 2025-01-02 · 0 comments
-
…technically stopping Rust from supporting Cygwin, except lack of volunteers to complete the port: https://github.com/rust-lang/rust/issues/5526 (this feature request has been open for 12 years)
comment by pornel · 2024-12-29 · in Fish 4.0: The Fish of Theseus -
Rust actually has a bunch of oddities, to the point they test them [0]. [0] https://github.com/rust-lang/rust/blob/master/tests/ui/weird...
comment by shakna · 2024-12-28 · in Ada's dependent types, and its types as a whole -
…seems to be (somewhat) active work to address this? No idea if there are major roadblocks, though. https://github.com/rust-lang/rust/pull/128846 [0]: https://lobste.rs/s/4mjnvk/four_limitations_rust_s_borrow_ch... [1]:…
comment by aw1621107 · 2024-12-24 · in Four limitations of Rust's borrow checker -
…proven to be correct. Is this the case? E.g. the issue "Prove the Rust type system sound" https://github.com/rust-lang/rust/issues/9883 is closed with comment "This will be an open issue forever. Closing." in 2016:…
comment by _flux · 2024-12-21 · in Compiling C to Safe Rust, Formalized -
…about how to handle this hashing, trying to balance compiler speed and collision likeliness: https://github.com/rust-lang/rust/issues/129014 Another scenario would be like what Backtrace does: a hash is used to identify certain classes of…
comment by cstrahan · 2024-12-13 · in Show HN: Rain hashes – well designed, simple and fast variable sized hashes -
▲ 33
Async closures in Rust have been stabilizedstory by sapiogram · 2024-12-13 · 4 comments
-
…the optimization is handled in the standard library using specialization and TrustedLen[1]. [0]: https://github.com/rust-lang/rust/blob/master/tests/codegen/... [1]: https://github.com/rust-lang/rust/blob/d4025ee454169fbd22f57...
comment by mastax · 2024-12-12 · in The humble for loop in Rust -
…a guard frame will always be enough to catch it, and will result in a safe abort [0]. [0] https://github.com/rust-lang/rust/pull/31333
comment by whytevuhuni · 2024-12-11 · in Making memcpy(NULL, NULL, 0) well-defined -
…= "...")]`, which is supposed to be added by implementors of such locks. https://github.com/rust-lang/rust/issues/131154#issuecomment...
comment by GolDDranks · 2024-11-13 · in Rust's Sneaky Deadlock With `if let` Blocks -
It’s getting fixed soon - https://github.com/rust-lang/rust/issues/124085
comment by nindalf · 2024-11-13 · in Rust's Sneaky Deadlock With `if let` Blocks -
https://github.com/rust-lang/rust/issues/131154#issuecomment... Especially this matrix was helpful! The behaviour that's going to be adopted in Rust 2024 is the Rust2024.1 one. They were having doubts about the rules becoming too…
comment by GolDDranks · 2024-11-13 · in Rust's Sneaky Deadlock With `if let` Blocks