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
-
…seems reasonable. There is also slice matching on stable, which let's you match on parts of slices: https://github.com/rust-lang/rust/pull/67712/ . It went out in 1.42. It has some stuff which makes binary stuff easier, but not by much.…
comment by swsieber · 2020-04-30 · in Enigma: Erlang VM Implementation in Rust -
…so they can do transformations to it before sending out to users. Rust issue about dealing with it: https://github.com/rust-lang/rust/issues/35968
comment by fulafel · 2020-04-29 · in How we use Rust in our mobile SDK -
…of generic code that actually do not depend on their type parameters, to avoid duplicating it: https://github.com/rust-lang/rust/pull/69749 This could potentially be made into a much finer-grained analysis to reduce the duplication…
comment by Rusky · 2020-04-24 · in How to speed up the Rust compiler in 2020 -
You can do this in Rust as well, and it's in fact being done in the compiler: https://github.com/rust-lang/rust/search?p=2&q=TypedArena&un... https://docs.rs/rustc-ap-arena/655.0.0/rustc_ap_arena/struct... In general, there is bad support…
comment by est31 · 2020-04-24 · in How to speed up the Rust compiler in 2020 -
…still an area rustc has a lot of room to improve, even given Rust's idioms. E.g. stuff like this: https://github.com/rust-lang/rust/issues/69715
comment by Rusky · 2020-04-22 · in A possible new back end for Rust -
…would require the disambiguation so that it can provide the appropriate suggestion in that case. https://github.com/rust-lang/rust/pull/64700
comment by estebank · 2020-04-01 · in State Machines in Rust -
…for this reason. However, this was fixed, and that means TLS is no longer a requirement here! See https://github.com/rust-lang/rust/pull/68524 for more details.
comment by steveklabnik · 2020-03-30 · in Writing an OS in Rust: Async/Await -
…2015: https://github.com/chef/chef/issues/2894 Someone stumbled on this brokenness in Rust in 2017: https://github.com/rust-lang/rust/issues/41570 And then drums Wed Aug 2 19:12:20 2017 glibc 2.26 released with a patch. Maybe programs can…
comment by stefan_ · 2020-03-26 · in About Musl -
…system linker. A note for macOS users that unfortunately LLD is not supported reliably there yet: https://github.com/rust-lang/rust/issues/39915 https://users.rust-lang.org/t/llvm-lld-linker-fails-on-mac-o... From https://lld.llvm.org/ >…
comment by modernerd · 2020-03-24 · in Two Years with Rust -
…It's not a perfect solution for your case, but should be fairly easy to take advantage of. [0]: https://github.com/rust-lang/rust/pull/69749
comment by aw1621107 · 2020-03-23 · in Two Years with Rust -
…I guess that's because most other languages have much less complex problems to communicate. [1]: https://github.com/rust-lang/rust/issues/64650 Edit: Another data point is https://github.com/rust-lang/rust/issues/60658
comment by benschulz · 2020-03-23 · in Two Years with Rust -
…operations generic code can use on its type parameters, it can do things like "polymorphization": https://github.com/rust-lang/rust/pull/69749 This means the compiler will automatically detect how much duplication is actually needed ahead…
comment by Rusky · 2020-03-22 · in Propeller: Profile-guided, optimizing, large-scale LLVM-based relinker -
…method which can panic on allocation failure would also have a panic-safe alternative. Example: https://github.com/rust-lang/rust/issues/48043 similarly Vec could gain `try_push`, `try_append`, `try_insert`, `try_split_off`, …
comment by masklinn · 2020-03-21 · in Secure Rust Guidelines -
…the (unstable[0] and obviously unsafe) `Alloc` trait does have a concept of allocation failure. [0] https://github.com/rust-lang/rust/issues/32838
comment by masklinn · 2020-03-21 · in Secure Rust Guidelines -
…an issue (but it's understandable you don't know about it given that there are 10's of thousands!): https://github.com/rust-lang/rust/issues/40273
comment by quietbritishjim · 2020-03-20 · in How to write documentation for a Rust crate -
There's an open issue for indices. https://github.com/rust-lang/rust/issues/40273 And various other open issues to improve styling. I wouldn't call them useless though, clicking the [-] collapses all comments and gives a somewhat useful…
comment by the8472 · 2020-03-20 · in How to write documentation for a Rust crate -
…(Rocket): https://github.com/SergioBenitez/Rocket/issues/19 Stabilize Proc Macro Hygiene (Rust): https://github.com/rust-lang/rust/issues/54727 Partially Stabilize Proc Macro Hygiene (Rust): https://github.com/rust-lang/rust/pull/68717
comment by swsieber · 2020-03-17 · in How I Start: Rust -
…- this feature lets you call procedural macros in more places than you can today. https://github.com/rust-lang/rust/issues/54727#issuecomment-... might be a bit too in-the-weeds, but the TL;DR is that there seems to be a path forward for st
comment by steveklabnik · 2020-03-17 · in How I Start: Rust -
…this hard with the nightly docker images. There's a tracking issue for proc_macro_hygine here: https://github.com/rust-lang/rust/issues/54727 Looks like the last feature is almost stable!
comment by status_quo69 · 2020-03-17 · in How I Start: Rust -
…it's actually not an infinite loop, it's signed integer underflow. Given that, I'll file a bug. [1] https://github.com/rust-lang/rust/issues/28728
comment by palmtree3000 · 2020-03-16 · in One Word Broke C -
…which also contains links to relevant discussion on the LLVM side, including some forward progress: https://github.com/rust-lang/rust/issues/28728 . I believe the current status is that machinery has been added that language frontends can…
comment by saagarjha · 2020-03-16 · in One Word Broke C -
Scratch that, it is actually a planned feature (I thought llvm was already doing it): https://github.com/rust-lang/rust/issues/13707 The idea is to detect large moves and do a pass by reference, much like Swift does. On my personal roadmap…
comment by estebank · 2020-03-02 · in Rust Ownership Rules -
…dependent types down the line. [0] https://en.wikipedia.org/wiki/Software_transactional_memory [1] https://github.com/rust-lang/rust/issues/44580
comment by dgb23 · 2020-03-02 · in Rust Ownership Rules -
https://github.com/rust-lang/rust/issues/49802
comment by edflsafoiewq · 2020-02-29 · in I Want Off Mr. Golang's Wild Ride -
…it does, or it least, it looks like Rust's standard library doesn't implement anything for them: https://github.com/rust-lang/rust/blob/master/src/libstd/sys... At that point, it would be hopelessly difficult to build ripgrep. The right…
comment by burntsushi · 2020-02-24 · in Show HN: Search code in GitHub repos using regular expressions -
Yes, fix this open issue https://github.com/rust-lang/rust/issues/34283 That would help immensely.
comment by no_wizard · 2020-02-16 · in ESbuild – A fast JavaScript bundler and minifier in Go -
…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 . Can you work around this by using separate functions for the branches? This will have other…
comment by pcwalton · 2020-02-15 · in ESbuild – A fast JavaScript bundler and minifier in Go -
…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 . I believe the issue still isn't fixed. That meant that the Rust version quickly overflowed…
comment by constexpr · 2020-02-15 · in ESbuild – A fast JavaScript bundler and minifier in Go -
…so that's fine for most programs. A TcpStream is just a struct containing the file descriptor ( https://github.com/rust-lang/rust/blob/master/src/libstd/sys... ) and nothing else, so this would be fine: let stream: std::net::TcpStream =…
comment by db48x · 2020-02-15 · in Rust, let me share your awesomeness with C -
…cycle before fixing a bug). In fact, you may take a look at "Compatibility notes" sections in https://github.com/rust-lang/rust/blob/master/RELEASES.md . The compatibility breaks tend to be very minor, and unlikely to break stuff. For…
comment by GlitchMr · 2020-02-14 · in Time safety is more important than memory safety -
…But the safety that Rust has already is good enough for me. I know that soundness holes exist (c.f. https://github.com/rust-lang/rust/labels/I-unsound%20%F0%9F%... ), but they are very few, and if they’re realistic (most of those are…
comment by chrismorgan · 2020-02-14 · in Sealed Rust Update -
…of how much more info has, so much so that it's brought up bugs in LLVM that are not fixed yet. https://github.com/rust-lang/rust/issues/54878
comment by PudgePacket · 2020-02-09 · in Flang: The Fortran frontend of LLVM [video] -
…ng.org/std/collections/struct.BTreeMap.ht... . The guts of BTreeMap's memory management code is here: https://github.com/rust-lang/rust/blob/master/src/liballoc/c... . (warning: it is some of the most gnarly rust code I've ever come…
comment by jstrong · 2020-02-05 · in Why Discord is switching from Go to Rust -
…on Aug 1 so the date would fit quite well. [1]: https://github.com/rust-lang/cargo/pull/7143 [2]: https://github.com/rust-lang/rust/pull/63181
comment by est31 · 2020-01-30 · in The Rust Compilation Model Calamity -
…blocks. (There are occasional exceptions, such as the infamous floating point cast bug [1].) [1] https://github.com/rust-lang/rust/issues/10184
comment by quietbritishjim · 2020-01-30 · in Enumerating Core Undefined Behavior -
…are "diagnostics" (i.e. error messages) bugs, making it the single largest category (AFAIK): https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by kibwen · 2020-01-21 · in What is Rust and why is it so popular? -
Right now they're disabled, pending patches on the LLVM side. You can keep track here: https://github.com/rust-lang/rust/issues/54878
comment by kibwen · 2020-01-21 · in What is Rust and why is it so popular? -
…allocators in some fashion It's coming, but it's still unstable and being actively developed - https://github.com/rust-lang/rust/issues/32838
comment by shepmaster · 2020-01-21 · in What is Rust and why is it so popular? -
…issue and just following the compiler's lead. As an example, you can see this recently landed PR: https://github.com/rust-lang/rust/pull/68267
comment by estebank · 2020-01-21 · in What is Rust and why is it so popular? -
…temporarily turned off because emitting noalias attributes so much exposed some llvm bug. See: https://github.com/rust-lang/rust/issues/54878 In the long run though, yeah that is an inherent optimizability advantage of Rust vs. C.
comment by firethief · 2020-01-20 · in Cello – High Level C -
…hit large-function-causes-unexpected-behavior situations with even smaller functions sometimes - https://github.com/rust-lang/rust/issues/60753
comment by Arnavion · 2020-01-20 · in How refactoring a macro reduced my Rust project build time from 4 hours to 40sec -
…have reported these things, and we've tried to fix or help where possible; see the discussion on https://github.com/rust-lang/rust/issues/60294 for example.
comment by steveklabnik · 2020-01-07 · in Translating Quake 3 into Rust -
…> But last I heard Rust wasn't taking advantage of this due to issues with LLVM. That's correct: https://github.com/rust-lang/rust/issues/54878 > The same benefits should also be achievable in C with pragmas. I don't know that any compiler…
comment by masklinn · 2020-01-07 · in Translating Quake 3 into Rust -
…of linking with pthread. Obviously Rust code always wants thread support. Here's the setup code: https://github.com/rust-lang/rust/blob/master/src/libstd/sys... A fair number of the syscalls are to ensure that stack overflow is reported…
comment by pcwalton · 2020-01-07 · in A Response to Hello World in Go -
…are a separate issue, which I apparently shouldn't merely summarize for this discussion. Clone https://github.com/rust-lang/rust and run your git GUI client of choice on it. git and gitk (ugly, buggy, and featureless though it may be)…
comment by MaulingMonkey · 2020-01-07 · in Is Git Irreplaceable? (2019) -
…st-lang.org/nomicon/what-unsafe-does.html [1] https://github.com/rust-lang/unsafe-code-guidelines [2] https://github.com/rust-lang/rust/commit/1975b8d21b21d5ede54... [3] https://github.com/rust-lang/rust/commit/1a254e4f434e0cbb9ff... [4]…
comment by DSMan195276 · 2020-01-07 · in Hobby x86 kernel written with Zig