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
-
…for a while already (I actually forgot that the "basic" implementation is not yet stable!) [1] https://github.com/rust-lang/rust/issues/35121
comment by Sharlin · 2020-09-23 · in Bottom Type in F# -
…accidentally end up copying an iterator you think you're mutating. A good example is provided here: https://github.com/rust-lang/rust/issues/48649#issuecomment-...
comment by cmyr · 2020-09-21 · in My least favorite Rust type -
…last! Feature `min_specialization` seems to not be a non-crashing subset of specialization [1] [1] https://github.com/rust-lang/rust/pull/68970
comment by akiselev · 2020-09-21 · in My least favorite Rust type -
https://github.com/rust-lang/rust/blob/2e0edc0f28c5647141bed...
comment by kccqzy · 2020-09-21 · in My least favorite Rust type -
…calls being rejected despite being sound [2]. [1] https://github.com/rust-lang/rfcs/issues/2407 [2] https://github.com/rust-lang/rust/issues/6268
comment by dlubarov · 2020-09-20 · in Why Not Rust? -
…though, so my intuition might have missed something important for the design of larger compilers: https://github.com/rust-lang/rust/blob/7bdb5dee7bac15458b10b... ]
comment by remram · 2020-09-17 · in My Favorite Rust Function Signature -
…this: https://github.com/glandium/boxext Some more context. There used to be a `box` keyword too. https://github.com/rust-lang/rust/issues/50047
comment by staticassertion · 2020-09-16 · in Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox -
Yes, compilation got a lot slower in 1.46 https://github.com/rust-lang/rust/issues/75992 and there has been some breakage with `type_length_limit` errors.
comment by cp-r · 2020-09-08 · in How to speed up the Rust compiler one last time -
std::fs::create_dir: https://github.com/rust-lang/rust/blob/7fc048f0712ba515ca11f... -> https://github.com/rust-lang/rust/blob/7fc048f0712ba515ca11f... -> https://github.com/rust-lang/rust/blob/7fc048f0712ba515ca11f... ->…
comment by Arnavion · 2020-08-29 · in Don't trust default timeouts -
…to discussions from pre-1.0 does not help your assertion. std::fs::File's impl of std::io::Read: https://github.com/rust-lang/rust/blob/7fc048f0712ba515ca11f... -> https://github.com/rust-lang/rust/blob/7fc048f0712ba515ca11f... ->…
comment by Arnavion · 2020-08-29 · in Don't trust default timeouts -
…an application unusable when trying a network filesystem or storage device that's unavailable. https://github.com/rust-lang/rust/issues/11214 To support user intervention when a task takes longer than expected, all blocking syscalls should…
comment by networkimprov · 2020-08-29 · in Don't trust default timeouts -
Fascinating coincidence! It was probably the LLVM upgrade ( https://github.com/rust-lang/rust/pull/73526 ) landing, probably before the comment was even posted (but the nightly would only show up with the upgraded LLVM the next day).
comment by eddyb · 2020-08-27 · in Bare Metal Rust Generics -
This is currently a soundness bug in libstd: https://github.com/rust-lang/rust/issues/32670 (note: the bug was proposed to review by the libs team, but this review never happened, some prominent community members claim there that this is…
comment by fluffything · 2020-08-24 · in AutoCXX: Safely call C++ from Rust with auto generated bindings -
What's your thoughts on #[no_mangle]? https://github.com/rust-lang/rust/issues/28179 Frankly Rust values being a usable language too much to be 100% sound.
comment by tick_tock_tick · 2020-08-22 · in AutoCXX: Safely call C++ from Rust with auto generated bindings -
This is being worked on: https://github.com/rust-lang/rust/issues/67984
comment by stjepang · 2020-08-14 · in Implementing a Type-safe printf in Rust -
…and behaviour or you can make it so you have to also change the function call site. Ever since https://github.com/rust-lang/rust/pull/34828 you can transform any `f` that takes a `T` into an `f` that takes an `Option<T>` without any of the…
comment by renewiltord · 2020-08-12 · in Single Page Applications using Rust -
…of this year, 204 PRs[0] match a search for "@rust-timer queue", among 3393 total PRs[1]. [0]: https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Amerge... [1]: https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Amerge...
comment by dbaupp · 2020-08-05 · in How to speed up the Rust compiler some more in 2020 -
ah good call found the P-critical https://github.com/rust-lang/rust/issues/74954
comment by cpdean · 2020-08-03 · in Rust 1.45.2 -
…for real memory safe languages. Rust is also neither type safe[2] nor concurrency safe[3]. 1: eg https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... but this is just the surface. alloca is not only unsafe but also security…
comment by rurban · 2020-07-29 · in Fish in a Barrel Memory Safety Bounty Program -
Rust had bitcode support since 2018: https://github.com/rust-lang/rust/pull/48896
comment by sanxiyn · 2020-07-28 · in OCaml: Add support to iOS/Mac ARM64 -
…in terms of 32 bit numbers. I wonder if similar optimizations can be done to that code. [1]: https://github.com/rust-lang/rust/pull/38482 [0]: https://github.com/rust-lang/compiler-builtins/blob/master/s...
comment by est31 · 2020-07-19 · in Optimizing 128-bit Division -
Yes: https://github.com/rust-lang/rust/pull/65819
comment by Rusky · 2020-07-16 · in Shipping Const Generics in 2020 -
…for the variant. This can have quite dramatic impact on the quantity of errors being emitted. [1]: https://github.com/rust-lang/rust/blob/7e11379f3b4c376fbb9a6... [2]: https://github.com/rust-lang/rust/blob/7e11379f3b4c376fbb9a6... [3]:…
comment by estebank · 2020-07-15 · in Don't Panic! Better, Fewer, Syntax Errors for LR Parsers -
The book mentions that fact. The commit that removed them (along with the rationale) is available at https://github.com/rust-lang/rust/commit/454882dcb7fdb03867d...
comment by phoe-krk · 2020-07-15 · in The Common Lisp Condition System – Upcoming Book -
And this is why the Turbofish exists in Rust. https://github.com/rust-lang/rust/blob/master/src/test/ui/ba... The key to parsing that is line 35. Is the line a tuple containing two booleans, the first the result of a less than, the second…
comment by deathanatos · 2020-07-15 · in Go generics may use square brackets [] not parenthesis () -
…be the case, consider using LLD as you can see significant speed improvements to the linking step. https://github.com/rust-lang/rust/issues/39915#issuecomment-... https://doc.rust-lang.org/1.22.0/unstable-book/compiler-flag... If…
comment by estebank · 2020-07-13 · in Rust Is Surprisingly Good as a Server Language -
Also, there are a lot of uses of macro_rules! in the Rust compiler and standard library repository. https://github.com/rust-lang/rust/search?q=macro_rules&type= Looking at some of those and reading https://doc.rust-lang.org/rust-by-example/…
comment by 65536 · 2020-07-12 · in Tour of Rust -
…work is, but here's the initial implementation of the asmjs and wasm targets in rustc, for example https://github.com/rust-lang/rust/pull/36339 This is just true of any architecture. LLVM is a toolkit, it isn't magic.
comment by steveklabnik · 2020-07-09 · in Moving from TypeScript to Rust / WebAssembly -
…there is no short term intent from the Rust team to do that. This is true but with an asterick; https://github.com/rust-lang/rust/pull/65875 ended up being closed with "please write an RFC," rather than "no."
comment by steveklabnik · 2020-07-09 · in Moving from TypeScript to Rust / WebAssembly -
…then you can tell the chain to use it: time RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build [0] https://github.com/rust-lang/rust/issues/39915
comment by jiripospisil · 2020-06-17 · in The Rust compiler isn't slow; we are -
…say an after_parsing [1] hook). They're really helpful for making a deeply embedded DSL. [0] https://github.com/rust-lang/rust/issues/54726 [1] https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver...
comment by _nhynes · 2020-06-16 · in Generics and Compile-Time in Rust -
…compile time by making parts of the Vec implementation in the standard library non-generic: https://github.com/rust-lang/rust/pull/72013
comment by est31 · 2020-06-12 · in Minimizing Rust Binary Size -
You can track some of the history of the proposals here: https://github.com/rust-lang/rust/issues/29722 . A lot of the improvements you've suggested have been suggested in the past, but there's some reasons why they aren't being proposed.…
comment by jcranmer · 2020-06-09 · in New inline assembly syntax available in Rust nightly -
…the underlying algorithms, the architecture, the things that are most relevant for humans. Just look at github.com/rust-lang/rust itself. People have time to write issues, explaining in them how to fix them for beginners, offering to…
comment by fluffything · 2020-06-06 · in Why the developers who use Rust love it so much -
For in depth information on what specifically was merged see: https://github.com/rust-lang/rust/blob/master/RELEASES.md (These are the official release notes.)
comment by Others · 2020-06-04 · in Rust 1.44 (async/await on embedded) -
…stack space used by all branches instead of just the maximum stack space used by any one branch : https://github.com/rust-lang/rust/issues/34283 (copy of lobste.rs comment)
comment by chubot · 2020-05-31 · in Rust: Dropping heavy things in another thread can make your code 10000x faster -
…problems is more than 0%. [1] https://blog.stalkr.net/2015/04/golang-data-races-to-break-m... [2] https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by scottlamb · 2020-05-24 · in Chromium project finds that 70% of security defects are memory safety problems -
…post https://stjepang.github.io/2019/03/02/new-channels.html with a link to a comment on GitHub: https://github.com/rust-lang/rust/pull/42397#issuecomment-31...
comment by jankassens · 2020-05-20 · in Things I hate about Rust -
…the rust-analyzer approach drives that. Hah, this branch PR got merged 6 days ago into rust master: https://github.com/rust-lang/rust/pull/69406
comment by pas · 2020-05-15 · in Five Years of Rust -
…Error::cause). The editions mechanism allowed fixing some issues (like unintuitive module paths). https://github.com/rust-lang/rust/issues?q=label%3Arust-2-br... • Struct literal syntax should have used C99 syntax. The language uses…
comment by pornel · 2020-05-15 · in Five Years of Rust -
Many tickets are scored with a difficulty, and sometimes comes with a mentor: https://github.com/rust-lang/rust/labels?q=E- I think there are meaningful things a beginner can do. I'd be surprised if improving error messages would be…
comment by swsieber · 2020-05-15 · in Five Years of Rust -
It's closer than it's ever been! The rough plan: * move asm! to llvm_asm. https://github.com/rust-lang/rust/pull/68404 * implement the actual asm! we want to stabilize: https://github.com/rust-lang/rfcs/pull/2873 * stabilize it
comment by steveklabnik · 2020-05-12 · in RISC-V OS using Rust: Filesystems -
…mean "faster code" like you seem tobe suggesting. [0]: https://github.com/google/souper [1]: https://github.com/rust-lang/rust/blob/master/src/rustllvm/P...
comment by fluffything · 2020-05-11 · in Make LLVM Fast Again -
…is building the debug symbols. A release build with no debug symbols will likely be fine. See: https://github.com/rust-lang/rust/issues/45854
comment by Conan_Kudo · 2020-05-05 · in Re: Integrating "safe" languages into OpenBSD? (2017) -
…a custom allocator (in this case, with the jemallocator crate) to make allocations fast again. [0]: https://github.com/rust-lang/rust/issues/36963 [1]: https://golang.org/src/runtime/malloc.go
comment by pcr910303 · 2020-05-03 · in Making Rust as Fast as Go -
…always returned 0x4 [0], causing segfaults with no unsafe? [0]: chosen by fair dice roll EDIT: yep, https://github.com/rust-lang/rust/issues/28179
comment by Gaelan · 2020-05-03 · in Rust in an Instant