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
-
…using std::thread::scope.[4] [1]: https://doc.rust-lang.org/std/thread/#the-threading-model [2]: https://github.com/rust-lang/rust/blob/7042c269c166191cd5d8d... [3]: https://github.com/rust-lang/rust/blob/7042c269c166191cd5d8d... [4]:…
comment by wabain · 2024-09-24 · in Rust panics under the hood, and implementing them in .NET -
Rust was bootsrapped in OCaml. https://github.com/mozilla/rust/tree/ef75860a0a72f79f97216f8...
comment by itishappy · 2024-09-12 · in Why Haskell? -
> See the somewhat recent troubles in Rust: https://github.com/rust-lang/rust/security/advisories/GHSA-q... FYI this started out as a vulnerability in yt-dlp [1]. Later it was found to impact many other languages [2]. Rust, along with…
comment by SkiFire13 · 2024-09-09 · in Windows NT vs. Unix: A design comparison -
…written by Microsoft have different interpretations. See the somewhat recent troubles in Rust: https://github.com/rust-lang/rust/security/advisories/GHSA-q...
comment by panzi · 2024-09-09 · in Windows NT vs. Unix: A design comparison -
https://github.com/rust-lang/rust/pull/128271 This one was fun too: https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html Basically, anything that gets a .1 or .2 type release. Also, shout out to the Rust community for maintaining and…
comment by QuiEgo · 2024-09-08 · in Google says replacing C/C++ in firmware with Rust is easy -
…greatly benefits from the SSO, so the lack of SSO in Rust is less important compared to C++. [1] https://github.com/rust-lang/rust/issues/4991 [2] https://github.com/rust-lang/rust/issues/20198 [3] https://github.com/rust-lang/rfcs/pull/299…
comment by lifthrasiir · 2024-09-04 · in An Optimization That's Impossible in Rust -
…in their suggestions, or have proposals for better output in specific cases, please file a ticket: https://github.com/rust-lang/rust/issues?q=is%3Aissue+label%...
comment by estebank · 2024-08-30 · in Rust's Ugly Syntax (2023) -
…syntax because that will be too verbose. [1] https://doc.rust-lang.org/reference/keywords.html [2] https://github.com/rust-lang/rust/issues/39412
comment by lifthrasiir · 2024-08-30 · in Rust's Ugly Syntax (2023) -
…and a PR I sent in for the Rust compiler to speed it up for some low hanging fruit: https://github.com/rust-lang/rust/pull/110477 I'll have to revisit this blog at some point and see what I should update, as well as a "From Rust to Julia"…
comment by miguelraz · 2024-08-29 · in From Julia to Rust (2021) -
…to go through u32/from_bits, but apparently that feature is still behind feature gate in Rust https://github.com/rust-lang/rust/issues/91399 That is despite the fact that it is a IEEE-754 required operation! C and friends have equivalent…
comment by zokier · 2024-08-29 · in Floating points between zero and one -
…any special options which the official builders might not be passing. Hopefully not. See also: https://github.com/rust-lang/rust/issues/75362
comment by comex · 2024-08-26 · in Writing a Rust compiler in C -
…clang is for C/C++? The rustc source tree currently includes LLVM, GCC, and Cranelift backends: https://github.com/rust-lang/rust/blob/c6db1ca3c93ad69692a4c... (Cranelift itself is written in Rust.)
comment by mbrubeck · 2024-08-26 · in Writing a Rust compiler in C -
…that aren't ever used but the linker isn't capable of removing the corresponding debug info. https://github.com/rust-lang/rust/issues/56068
comment by khuey · 2024-08-24 · in I sped up serde_json strings by 20% -
…just ran across simdutf8 and realized the pr for simd-enabled uft8 parsing is coming up on 5 years: https://github.com/rust-lang/rust/issues/68455
comment by spense · 2024-08-23 · in I sped up serde_json strings by 20% -
…the compiler expectedly panicked. this is a feature. > = note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-...
comment by xcdzvyn · 2024-08-23 · in Python’s Preprocessor -
"green threads" as discussed in TFA don't require a runtime. The relevant issues are maybe https://github.com/rust-lang/rust/issues/33368 and https://internals.rust-lang.org/t/what-is-the-current-safety...
comment by anonymoushn · 2024-08-22 · in Async2 – The .NET Runtime Async experiment concludes -
…to gauge its actual impact. [1] https://internals.rust-lang.org/t/type-inference-breakage-in... [2] https://github.com/rust-lang/rust/issues/127343 [3] https://hackmd.io/xS913qb6QFCGHrdHB0uhBw#nominated-rusttf127... [4]…
comment by lifthrasiir · 2024-08-21 · in Rust 1.80.0 breaks existing code -
…Again, you're gonna have to cite what you're talking about because Rust definitely has unit tests: https://github.com/rust-lang/rust/blob/master/library/core/t... > Parts of Qt. The Vala programming language, Ada GNAT... and many others.…
comment by dataflow · 2024-08-19 · in Algorithms we develop software by -
…reddit.com/r/cpp/comments/1b55686/maybe_possible... Here's the Rust change which was merged for 1.78: https://github.com/rust-lang/rust/pull/121956/
comment by tialaramex · 2024-08-14 · in Rust Atomics and Locks (2023) -
…you like them or not. (This is also why the list is not as exhaustive, as it needn't to be.) [1] https://github.com/rust-lang/rust/pull/92469/files
comment by lifthrasiir · 2024-08-13 · in 0xCAFEBABE & 0xFEEDFACE (2003) -
…magic numbers like these edit: yes, 0xCAFEBABE is a warning but 0xFEEDFACE is not: 3405691582 https://github.com/rust-lang/rust/blob/d0ea1d767925d53b2230e...
comment by novagameco · 2024-08-13 · in 0xCAFEBABE & 0xFEEDFACE (2003) -
…lead to UB The only thing that comes to mind that this could be referring to are the open bugs at https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... . Are these what you're referring to? > this infernal 'internal compiler…
comment by estebank · 2024-07-30 · in Translating All C to Rust (TRACTOR) -
…https://doc.rust-lang.org/1.26.0/std/vec/struct.Vec.html#met... https://github.com/rust-lang/rust/issues/27779#issuecomment-...
comment by Arnavion · 2024-07-29 · in Don't blindly prefer `emplace_back` to `push_back` (2021) -
…`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 -
…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 -
…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) -
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