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
-
▲ 6
Update about const generics in Ruststory by EvgeniyZh · 2021-12-12 · 0 comments
-
▲ 2
Rust: 2 Years to Name Some Functionsstory by kroggen · 2021-12-12 · 1 comment
-
…form of higher kinded types as a native language feature are pretty close to being stabilised now https://github.com/rust-lang/rust/issues/44265 As always with Rust, work is released on an "when it's done" basis but estimates are pointing…
comment by nicoburns · 2021-12-10 · in Higher Kinded Types in Rust -
…was recently stabilized in rustc as a result of m68k support landing in LLVM ( https://github.com/rust-lang/rust/blob/master/RELEASES.md#co... ), which has been one of the previous sticking points for Rust packaging on Linux distros, som
comment by lambda · 2021-12-08 · in Rust support in the Linux kernel -
…Here's an example of a contributor adding a new platform at tier 3: https://github.com/rust-lang/rust/pull/79608
comment by steveklabnik · 2021-12-08 · in Rust support in the Linux kernel -
…-> [u8; Self::LENGTH]; } However it turns out that this kind of usage is not quite supported yet: https://github.com/rust-lang/rust/issues/60551
comment by ekimekim · 2021-11-29 · in Endianness, API Design, and Polymorphism in Rust -
…constructions to result in segfaults despite not containing `unsafe` blocks . These are tracked at https://github.com/rust-lang/rust/issues?q=label%3AI-unsound .) On the topic of application-level code quality (rather than foundational…
comment by nyanpasu64 · 2021-11-28 · in Rust maintainer perfectionism, or, the tragedy of Alacritty (2020) -
…work if you compare `b == a`. Apparently[0] it's something to do with avoiding code bloat. [0] https://github.com/rust-lang/rust/blob/e4c23daeb461ac02413eb...
comment by Measter · 2021-11-12 · in Rust Is the Future of JavaScript Infrastructure -
…nightly, so it is included in the linked benchmark. It will ship to stable in the 1.57.0 release: https://github.com/rust-lang/rust/pull/88243 Rustc supports running with LLVM versions other than 13.0, which some distros enable, but the…
comment by est31 · 2021-11-12 · in The Rust compiler has gotten faster again -
…language? LLVM has shown regressions wich is what Rust uses to compile code. 2sec search on google: https://github.com/rust-lang/rust/issues/24194
comment by Thaxll · 2021-11-11 · in Rust Is the Future of JavaScript Infrastructure -
…foundation's communication skills so far. [1] https://www.rust-lang.org/policies/media-guide [2] https://github.com/rust-lang/rust
comment by mjw1007 · 2021-11-09 · in Arm Joins the Rust Foundation -
https://github.com/rust-lang/rust/issues/28979 plenty of discussion here on Unicode including homoglyph attacks. This is for Rust but has links to Go and Zig. The Unicode standard also has extensive discussion, for example…
comment by ximeng · 2021-11-01 · in ‘Trojan Source’ Bug Threatens the Security of All Code -
How do you review a WebAssembly binary? Are builds reproducible? I just found this about Rust: https://github.com/rust-lang/rust/labels/A-reproducibility It would be nice to be able to run them on multiple CIs and compare the SHAs.
comment by benatkin · 2021-10-26 · in Next.js 12 -
They're referring to the use of PGO when building the compiler itself: https://github.com/rust-lang/rust/pull/88069
comment by mastax · 2021-10-22 · in Rust 1.56.0 and Rust 2021 -
…I think it's exactly that commit and not just one close to it. I heard it was a big improvement. https://github.com/rust-lang/rust/commit/63cc2bb > Enable new pass manager with LLVM 13 > https://github.com/rust-lang/rust/pull/88243
comment by kzrdude · 2021-10-21 · in Rust 1.56.0 and Rust 2021 -
…but still appreciated, Iterator::map_while [2], which is going to be in Rust 1.57. [2]: < https://github.com/rust-lang/rust/pull/89086 >
comment by yakubin · 2021-10-21 · in Rust 1.56.0 and Rust 2021 -
…on embedded now. Also Rust gets rustc_codegen_gcc[1], so you will be able to use it everywhere. [1] https://github.com/rust-lang/rust/tree/master/compiler/rustc...
comment by glowmeg · 2021-10-16 · in Implementing Hash Tables in C -
…been fixed. > You can read more details on the new implementation in the pull request description: https://github.com/rust-lang/rust/pull/86761 There's some pretty big speed improvements there. 3x-10x in the most normal cases, 1600x on…
comment by Twirrim · 2021-09-09 · in Rust 1.55.0 -
https://github.com/rust-lang/rust/issues/77960 I think.
comment by mrec · 2021-09-05 · in Fast Rust Builds -
▲ 39
Rust 2021 Celebration and Thanksstory by vignesh_warar · 2021-09-03 · 9 comments
-
LLVM does have an m68k backend, and there's an open PR on rustc to add it https://github.com/rust-lang/rust/pull/88321
comment by steveklabnik · 2021-08-31 · in GCC Rust Monthly Report #9 August 2021 -
…The current state of it is "someone needs to write up an RFC." If you want the full gory details: https://github.com/rust-lang/rust/pull/65875
comment by steveklabnik · 2021-08-31 · in Async Overloading -
▲ 4
Rust PR: Add initial support for m68kstory by cbmuser · 2021-08-29 · 0 comments
-
…a too old versions of rust. In the future, one will be able to give a nice error when this happen ( https://github.com/rust-lang/rust/issues/65262 ) But now it's true that it can be hard to know what the problem is.
comment by varajelle · 2021-08-17 · in Psst: Fast Spotify client with native GUI, without Electron, built in Rust -
…so it'd be unsafe to store any elements 125 | | } | |_____^ | = note: for more information, see https://github.com/rust-lang/rust/issues/49146 error[E0658]: `if` is not allowed in a `const fn` --> ~/.cargo/registry/src/github.com-1ecc6299db…
comment by pacifika · 2021-08-17 · in Psst: Fast Spotify client with native GUI, without Electron, built in Rust -
…available in nightly[2]. [1]: https://rust-lang.github.io/rfcs/3107-derive-enum-default.ht... [2]: https://github.com/rust-lang/rust/pull/86735
comment by estebank · 2021-08-10 · in When zero cost abstractions aren't zero cost -
…don't know if there is any plans for exposing that trait, but it would be a nice thing to see. [0]: https://github.com/rust-lang/rust/blob/master/library/alloc/... [1]: https://github.com/rust-lang/rust/blob/master/library/alloc/...
comment by erk__ · 2021-08-10 · in When zero cost abstractions aren't zero cost -
…by a memset when compiled. godbolt: https://godbolt.org/z/8bM7zz4E7 the specific specialization: https://github.com/rust-lang/rust/blob/master/library/alloc/...
comment by erk__ · 2021-08-10 · in When zero cost abstractions aren't zero cost -
…of output, whereas other languages like Python tend to buffer larger blocks before flushing. [2] https://github.com/rust-lang/rust/issues/60673
comment by jlledo · 2021-08-09 · in How to write slow Rust code – Part 2 -
…understand the real problem and apply the real fix yourself. I would appreciate bug reports at https://github.com/rust-lang/rust/issues/ when encountering these kind of situations. If there's something worse than missing suggestions is…
comment by estebank · 2021-07-31 · in Do Developers Read Compiler Error Messages? [pdf] -
Relevant PR (merged): https://github.com/rust-lang/rust/pull/82834
comment by juancampa · 2021-07-29 · in Rust 1.54.0 -
…have to contend with the fact that you can't even set a debugger checkpoint where an error occurs: https://github.com/rust-lang/rust/issues/54144 Obviously people wouldn't be asking for that if the type and borrow checkers caught all the…
comment by oalae5niMiel7qu · 2021-07-27 · in What's bad about Julia? -
https://github.com/rust-lang/rust/issues/44650 (Nothing to do with unicode. I haven't got a Windows machine to test, but I assume WinMain will behave the same as main wrt quotes and spaces.) (Note that Rust doesn't use CLTAW any more; it…
comment by Arnavion · 2021-07-25 · in Windows Command-Line Obfuscation -
…mainline rustc [2], supports building for MIPS. [1] https://github.com/antoyo/rustc_codegen_gcc [2] https://github.com/rust-lang/rust/pull/87260 Can you give it a try?
comment by geofft · 2021-07-24 · in Rust for Linux redux -
…(albeit calling `open64` rather than `fopen`), you can see it in the source for the stdlib here https://github.com/rust-lang/rust/blob/master/library/std/sr...
comment by clappski · 2021-07-24 · in Modern C++ for C Programmers (2018) -
…are already feature gated for OOM handling so might not be implemented for String. [0] https://github.com/rust-lang/rust/blob/master/library/alloc/... [1] Note that the compiler knows about it to provide better diagnostics to the user, but…
comment by Measter · 2021-07-20 · in A GPIO Driver in Rust -
…goto cleanup, and break/continue let you emulate any structured uses of goto. (I live in hope that https://github.com/rust-lang/rust/issues/48594 will one day land, so you can use break to skip the remainder of a labelled block, no loop…
comment by chrismorgan · 2021-07-17 · in Linux: Using goto In Kernel Code (2003) -
…most famous bug in the standard library exposing an unsound construction is the “leakpocalypse”: https://github.com/rust-lang/rust/issues/24292
comment by littlestymaar · 2021-07-17 · in Is Rust Used Safely by Software Developers? -
…they do happen. For fun, here's an example of the Rust stdlib itself working around such things: https://github.com/rust-lang/rust/blob/74ef0c3e404cc72c08b2d...
comment by kibwen · 2021-07-16 · in Is Rust Used Safely by Software Developers? -
…is where it's handy to have a decent standard library instead of learning all of this the hard way: https://github.com/rust-lang/rust/blob/b9197978a90be6f757074...
comment by pornel · 2021-07-15 · in Overflowing timeout -
…are only incorrect in combination, like global value numbering causing miscompilations[1][2])? [1]: https://github.com/rust-lang/rust/issues/45839 [2]: https://bugs.llvm.org/show_bug.cgi?id=35229 EDIT: > the critical detail about…
comment by nyanpasu64 · 2021-07-12 · in Updating the Go Memory Model -
…ahead-of-time compilation), as an alternative to LLVM for the standard Rust compiler ("rustc" aka https://github.com/rust-lang/rust ). This allows reusing all the logic inside the Rust compiler for compiling code, checking types and…
comment by geofft · 2021-07-08 · in Rust GCC back end was officially accepted into the compiler -
…exhaustiveness checks has extensive explanations on how it works and what it was inspired by. https://github.com/rust-lang/rust/blob/master/compiler/rustc...
comment by estebank · 2021-07-08 · in Compiling Rust is NP-hard -
https://github.com/rust-lang/rust/pull/84266 We have been excising this with a new opt-out mechanism so there are no allocations behind your back but the same abstractions are notheless used as the rest of the Rust ecosystem.
comment by Ericson2314 · 2021-07-06 · in Linux Rust Support -
…hopeful that this effort could improve the situation for everyone. My small contribution to this, https://github.com/rust-lang/rust/pull/84266 , is supposed to be just that!
comment by Ericson2314 · 2021-07-06 · in Linux Rust Support -
In what way? Rust seems to be proving itself as a reliable mainstay in systems development https://github.com/rust-lang/rust The git repo has over 150,000 commits, 3,000 contributors, and 9 years of release history. The last 6 years of…
comment by eejjjj82 · 2021-07-06 · in Linux Rust Support -
…in a sane pattern such as MVU. FWIW, I have been working towards this for the past year. [1] https://github.com/rust-lang/rust/blob/master/src/librustdoc...
comment by ironmagma · 2021-06-30 · in Apple's DocC is excellent, but unusable for open source projects -
Implemented in https://github.com/rust-lang/rust/pull/37429 ; his website seems to be https://ahicks.io/
comment by kzrdude · 2021-06-28 · in Deserializing Binary Data Files in Rust -
Ok, teach me about https://github.com/rust-lang/rust/issues/82457 then. Unchecked alloca() calls have a pretty bad reputation with non-rust folks. But this is the preferred allocation scheme in Rust. I'm sure our understanding of memory…
comment by rurban · 2021-06-27 · in NASA can't figure out what's causing computer issues on the Hubble telescope -
Then maybe lookup "stack overflow" in rust, and you will be delighted. https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... 583 closed, 156 open. That much to "memory safety" in rust.
comment by rurban · 2021-06-24 · in NASA can't figure out what's causing computer issues on the Hubble telescope