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
-
…`align_of`, and `align_of_val` to the prelude, which means they don't need to be imported anymore: https://github.com/rust-lang/rust/pull/123168/
comment by CryZe · 2024-07-25 · in Rust 1.80.0 -
▲ 26
Rust is getting support for NuttXstory by acassis · 2024-07-19 · 0 comments
-
…There's an experiment in progress to see if guaranteed tail calls can be added to the language https://github.com/rust-lang/rust/issues/112788
comment by the8472 · 2024-07-13 · in Beating the Compiler -
…OpenSSL seems to sidestep[3] the issue by using the PID as part of its salt internally. 1: https://github.com/rust-lang/rust/issues/16799 2: https://bugs.ruby-lang.org/issues/4579 3: https://wiki.openssl.org/index.php/Random_fork-safety
comment by zbentley · 2024-07-08 · in Malloc broke Serenity's JPGLoader, or: how to win the lottery (2021) -
…Windows, BSD, x86, x64, Arm) failed to provide monotonicity despite their own documentation: https://github.com/rust-lang/rust/blob/80184183ba0a53aa4f491...
comment by kibwen · 2024-07-03 · in All I want for Christmas is a negative leap second -
…threads happened, and so I'd figure I'd chime in and let you know the details. Super specifically, https://github.com/rust-lang/rust/pull/18967 , on Nov 21, 2014, is when it was actually removed.
comment by steveklabnik · 2024-07-01 · in Google Sheets ported its calculation worker from JavaScript to WasmGC -
▲ 3
New sort implementations merged in the Rust standard library – up to 2x fasterstory by thunderbong · 2024-06-25 · 0 comments
-
▲ 3
New sort implementations merged in the Rust standard library – up to 2x fasterstory by todsacerdoti · 2024-06-24 · 0 comments
-
…multiples of a cache line - maybe to help the prefetcher or to minimize cache line bouncing?) [1] https://github.com/rust-lang/rust/blob/master/library/alloc/... [2] https://github.com/abseil/abseil-cpp/blob/74f8c1eae915f90724... [3]…
comment by vlovich123 · 2024-06-24 · in B-Trees Require Fewer Comparisons Than Balanced Binary Search Trees -
…to match the range of a 64-bit floating point value until you use 512-bit integral math!) [0]: https://github.com/rust-lang/rust/issues/83973 Godbolt link: https://godbolt.org/z/EqrEqExnc
comment by ComputerGuru · 2024-06-22 · in Own Constant Folder in C/C++ -
…stacked one atop the other, and a tiny change here can end up with huge changes there. [0]: https://github.com/rust-lang/rust/pull/91743
comment by ComputerGuru · 2024-06-22 · in Own Constant Folder in C/C++ -
Thanks! Yes, I think it was the last one, https://github.com/rust-lang/rust/issues/25860 . But I'm not 100% sure.
comment by eru · 2024-06-21 · in Zig vs. Rust at work: the choice we made -
It's either https://github.com/rust-lang/rust/issues/112905 , https://github.com/rust-lang/rust/issues/84366 or (most likely) https://github.com/rust-lang/rust/issues/25860 . It can be argued that those are bugs of the compiler, not the…
comment by estebank · 2024-06-20 · in Zig vs. Rust at work: the choice we made -
https://github.com/rust-lang/rust/issues/111423
comment by guipsp · 2024-06-17 · in Crossing the impossible FFI boundary, and my gradual descent into madness -
…had to submit patches to LLVM to make it possible for languages to opt out of C++-style semantics: https://github.com/rust-lang/rust/issues/28728
comment by kibwen · 2024-06-01 · in Moving Beyond Type Systems -
…1111____ xxxxxxxx xxxxxxxx [...] It seems to be more fussy about compiler optimizations, though: https://github.com/rust-lang/rust/issues/125543
comment by jmillikin · 2024-05-27 · in vu128: Efficient variable-length integers -
…the process and the fuse server. So the kernel is in a position to uphold its API contract. [0] https://github.com/rust-lang/rust/issues/89522#issuecomment-...
comment by the8472 · 2024-05-26 · in Signalfd Is Useless (2015) -
…very recently and have limitations) or jump through hoops[0] to get the pidfd from the child. [0] https://github.com/rust-lang/rust/blob/21e6de7eb64c09102de3f...
comment by the8472 · 2024-05-25 · in Signalfd Is Useless (2015) -
…functionality and also split the dependencies Static site generator is mostly in the Rust itself: https://github.com/rust-lang/rust/tree/master/src/librustdoc
comment by nicce · 2024-05-21 · in Enlightenmentware -
Rust, the language itself depends on 220 packages: https://github.com/rust-lang/rust/blob/e8753914580fb42554a79... If you trust nobody, it is hard to use anything. But about your second note, (environment, mismatched dependencies), I would…
comment by nicce · 2024-05-21 · in Enlightenmentware -
…[3]: https://www.ralfj.de/blog/2023/06/02/tree-borrows.html [4]: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... [5]: https://github.com/Speykious/cve-rs
comment by raphlinus · 2024-05-15 · in Translation of Rust's core and alloc crates to Coq for formal verification -
…of Rust early on[1], who's been working with the language for 14 years at that point. [1] https://github.com/rust-lang/rust/graphs/contributors?from=2... and he's still #16 in commits overall today, despite almost no activity on the rust…
comment by littlestymaar · 2024-05-07 · in Rust to .NET compiler – Progress update -
Links with more info on the current state of deref patterns https://github.com/rust-lang/rust/issues/87121 https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg
comment by airstrike · 2024-05-02 · in Rust: Box Is a Unique Type -
Here's an example of someone citing a disagreement between CRT and shell32: https://github.com/rust-lang/rust/issues/44650 This in addition to the Rust CVE mentioned elsewhere in the thread which was rooted in this issue:…
comment by asveikau · 2024-04-25 · in Why does Windows use backslash as path separator? (2019) -
…for that experience. I wonder if more prevalent uses of `#[doc(alias = "name")]` being leveraged by https://github.com/rust-lang/rust/pull/120730 (which now that I check only accounts for methods and not functions, I should get on that!)…
comment by estebank · 2024-04-22 · in I hate Rust (programming language) -
▲ 3
Rust Weird Exprsstory by connormon · 2024-04-12 · 1 comment
-
▲ 3
Critical safety flaw found in Rust on Windows (CVE-2024-24576)story by stephc_int13 · 2024-04-10 · 1 comment
-
Almost fixed the compiler: https://github.com/rust-lang/rust/pull/123325
comment by fprasx · 2024-04-08 · in Unformat Rust code into perfect rectangles -
…PR handy for showing Github's rendering of changes in the SVG (text, side-by-side, swiping) but https://github.com/rust-lang/rust/pull/121877/files has newly added SVGs. To see what is supported, see the screenshot in the docs:…
comment by epage · 2024-04-05 · in Show HN: Fancy-ANSI – Small JavaScript library for converting ANSI to HTML -
…vendoring Packages containing only source is a consequence of the Rust ABI still stabilizing, see: https://github.com/rust-lang/rust/pull/105586 After ABI stabilization, Rust libraries will be first class like any other language.
comment by timschmidt · 2024-03-31 · in Backdoor in upstream xz/liblzma leading to SSH server compromise -
…as a feature by any Rust developers I know of. The Rust ABI is merely still stabilizing. See: https://github.com/rust-lang/rust/pull/105586
comment by timschmidt · 2024-03-29 · in Backdoor in upstream xz/liblzma leading to SSH server compromise -
…The main issue is that it's very hard to propagate information found through matching . [0]: https://github.com/rust-lang/rust/pull/120131
comment by demurgos · 2024-03-28 · in A step beyond Rust's pattern matching -
▲ 3
Enable frame pointers for the Rust standard librarystory by formerly_proven · 2024-03-24 · 0 comments
-
…[3] - https://blog.rust-lang.org/2023/11/09/parallel-rustc.html [4] - https://github.com/rust-lang/rust/issues/39915
comment by nindalf · 2024-03-18 · in Cranelift code generation comes to Rust -
…STL but languages and compilers struggle to emit the cmov properly (Rust’s been broken for 6 years: https://github.com/rust-lang/rust/issues/53823 ). Prefetch is an interesting one because while you do optimize the binary search in a micro…
comment by vlovich123 · 2024-03-16 · in Algorithms for Modern Hardware -
…up the details, but IIRC at least Windows? Implementations of the standard library mutexes are here https://github.com/rust-lang/rust/tree/master/library/std/sr... And of course it’s pthreads on Linux.
comment by steveklabnik · 2024-03-06 · in Dada, an experimental new programming language -
…now (hard to tell because it hasn't been close enough to stabilization to be properly documented): https://github.com/rust-lang/rust/pull/68524 As for Polonius changing the underlying mental model, I think this is a natural progression.…
comment by kibwen · 2024-03-05 · in Borrow checking without lifetimes -
…and you can't pass values into resume and get them out from the yield statement in the coroutine ( https://github.com/rust-lang/rust/issues/43122#issuecomment-... ). > and they aren't separate from async, they're the foundation that async…
comment by logicprog · 2024-03-05 · in Borrow checking without lifetimes -
…a thread is spawned before a signal is generated (& right after the signal handler is installed): https://github.com/rust-lang/rust/blob/26907374b9478d84d766a... It doesn't look like there's any UB behavior being relied upon but I could…
comment by vlovich123 · 2024-03-03 · in Why do we need for an Undefined Behavior Annex to C++ -
…and there is a chance this doesn't get stabilized, but here's hoping it makes it through! [0]: https://github.com/rust-lang/rust/pull/107606 [1]: https://cohost.org/oli-obk/post/165584-ranged-integers-via [2]:…
comment by mbStavola · 2024-03-02 · in Ada 95: The Craft of Object-Oriented Programming -
…for SIGSEGV and checks if the faulting address falls within the range of the stack guards. See https://github.com/rust-lang/rust/blob/411f34b/library/std/s... The stack guards would normally be setup by the system runtime (e.g. kernel in…
comment by wahern · 2024-03-02 · in Why do we need for an Undefined Behavior Annex to C++ -
…you can e.g. target a RTOS or whatever. It looks like that work started really recently actually: https://github.com/rust-lang/rust/commit/99128b7e45f8b95d962...
comment by IshKebab · 2024-02-29 · in Talc – A fast and flexible allocator for no_std and WebAssembly -
The issue in question, https://github.com/rust-lang/rust/issues/49206 , is such an edge case that there are 0 known examples of it causing a problem in practice, despite the issue being around for many years.
comment by Georgelemental · 2024-02-21 · in Cve-rs: Fast memory vulnerabilities, written in safe Rust -
…in practice. If there are problems with Rust's type system, they're identified and patched. [1]: https://github.com/rust-lang/rust/issues/25860#issuecomment-...
comment by pcwalton · 2024-02-21 · in Cve-rs: Fast memory vulnerabilities, written in safe Rust -
> unsound issues Apparently there's 84 open issues which the Rust developers consider unsound issues. https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... That's it. Rust's claims are over and done with. How can it be safe if…
comment by jart · 2024-02-21 · in Cve-rs: Fast memory vulnerabilities, written in safe Rust -
https://github.com/rust-lang/rust/issues/25860#issuecomment-... “Similarly, the reason why niko's approach is not yet implemented is simply that getting the type system to a point where we even can implement this is Hard. Fixing this bug…
comment by anderskaseorg · 2024-02-20 · in Cve-rs: Fast memory vulnerabilities, written in safe Rust -
…constraints like this become explicit but inferred? Sort of like this proposal from the GH issue: https://github.com/rust-lang/rust/issues/25860#issuecomment-... but the "where" clause is inferred at compile time. If so I wouldn't call…
comment by nicklecompte · 2024-02-20 · in Cve-rs: Fast memory vulnerabilities, written in safe Rust -
Seems to rely on at least one known compiler bug (admittedly one open since 2015) https://github.com/rust-lang/rust/issues/25860
comment by dralley · 2024-02-20 · in Cve-rs: Fast memory vulnerabilities, written in safe Rust -
▲ 3
An Oddity in the Rust Compilerstory by liamswayne · 2024-02-12 · 0 comments
-
…regressions and in some cases it may even cause unnecessary stack spilling of sensitive data: https://github.com/rust-lang/rust/issues/88930#issuecomment-...
comment by newpavlov · 2024-02-06 · in Avoiding register spills in vectorized code with many constants