rust-lang/rust
View on GitHub ↗ ★ 121,092 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
-
…(and public) Default implementation for the struct. There was an issue on the tracker in the past ( https://github.com/rust-lang/rust/issues/42692 ) but the change is big enough that it would require an RFC, actual design and consensus,…
comment by masklinn · 2018-08-17 · in What else is in Go 1.11? -
We did, eventually, after years, define it as a full byte though. https://github.com/rust-lang/rust/pull/46156
comment by steveklabnik · 2018-08-11 · in Cranelift, a low-level retargetable code generator written in Rust -
…As for the rationale behind moving away from jemalloc as a default, the tracking issue is here: https://github.com/rust-lang/rust/issues/36963 (TL;DR: lower maintenance burden, easier cross-compilation, smaller binaries, better system…
comment by kibwen · 2018-08-02 · in Announcing Rust 1.28 -
…generate test functions using libtest. I'm not very familiar with the internals, but they're here: https://github.com/rust-lang/rust/blob/master/src/librustdoc...
comment by djrenren · 2018-07-23 · in The internals of testing in Rust in 2018 -
…Rust libraries, like libsyntax) without waiting for 30 minute builds after every minor change? [0]: https://github.com/rust-lang/rust/issues/36629 [1]: https://github.com/rust-lang/rfcs/issues/612
comment by cornstalks · 2018-07-23 · in The internals of testing in Rust in 2018 -
…which helps put this in further context. I think the original un-minimized crashing code was this: https://github.com/rust-lang/rust/issues/52213#issuecomment-... That's clearly more readable, and that's what more typical rust looks like.
comment by TheDong · 2018-07-20 · in Announcing Rust 1.27.2 -
…ub.com/rust-lang/rfcs/blob/master/text/1598-gene... and comments can be left on the tracking issue at https://github.com/rust-lang/rust/issues/44265 .
comment by kibwen · 2018-07-16 · in Async and Await in Rust: a full proposal -
https://github.com/rust-lang/rust/issues/11927 is the discussion when minimal OS X version for Rust was bumped to 10.7.
comment by sanxiyn · 2018-07-05 · in Sponsorship needed for new OS/2 web browser (2017) -
…with a similar train of thought, this PR describes the standard sorting algorithm used in Rust: https://github.com/rust-lang/rust/pull/38192
comment by dean177 · 2018-07-01 · in Timsort is a sorting algorithm that is efficient for real-world data -
…restrict says “this does not alias”, which &Ts trivially do. It goes on &mut T. For example, see https://github.com/rust-lang/rust/pull/31545 , we had to remove this for a few releases due to an LLVM bug; it'll be back in the next release.…
comment by steveklabnik · 2018-06-30 · in Rust pointers for C programmers -
…how it was handled. These arose because `restrict` is comparatively rarely used in C / C++ code. https://github.com/rust-lang/rust/issues/31681
comment by shepmaster · 2018-06-27 · in Dangerous Optimizations and the Loss of Causality in C and C++ (2010) [pdf] -
No. Rust has always had C-family syntax. You can look at the first public commit with the code at https://github.com/rust-lang/rust/tree/d6b7c96c3eb29b9244ece... ; src/test/run-pass shows lots of examples of the syntax.
comment by chrismorgan · 2018-06-24 · in Rust 2018: an early preview -
…of the intents is to make it easier to audit for what is publicly exposed and what isn't. Found it: https://github.com/rust-lang/rust/issues/45521
comment by epage · 2018-06-23 · in Rust 2018: an early preview -
…Stabilizing inline asm in its current form would be a mistake. It's simply not ready. [0]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by roblabla · 2018-06-22 · in Announcing Rust 1.27 -
▲ 5
Rust:Initial PR for async/await syntax is openstory by ngaut · 2018-06-16 · 0 comments
-
…the default in gfortran. It looks like the equivalent option is still under discussion for rust: https://github.com/rust-lang/rust/issues/21690
comment by ihnorton · 2018-06-07 · in Fortran is still a thing (2017) -
…https://www.ralfj.de/blog/2017/06/09/mutexguard-sync.html for an area where we were unsound, and https://github.com/rust-lang/rust/pull/45267#issuecomment-33... for an area where we were overly restrictive, and could remove some bounds…
comment by steveklabnik · 2018-06-05 · in Announcing Rust 1.26.2 -
We've experimented with MIR-only rlibs - https://github.com/rust-lang/rust/issues/38913#issuecomment-... has some recent data on it - which seem to me like the best approach for solving this, but it needs more work. Eventually, we might…
comment by eddyb · 2018-06-05 · in How to speed up the Rust compiler some more in 2018 -
s/z was made stable ten days ago: https://github.com/rust-lang/rust/pull/50265 So, two releases :)
comment by steveklabnik · 2018-05-31 · in Actix: a small, pragmatic, and fast Rust web framework -
…support on top of that. Looks like gnzlbg put more effort into it, but ran into similar issues: https://github.com/rust-lang/rust/issues/42743#issuecomment-...
comment by lambda · 2018-05-30 · in Mono on AIX and IBM i -
…fair comparison :) > "Containers should provide some way to not panic on failed allocations" https://github.com/rust-lang/rust/issues/29802 Definitely a problem, but it's not what people usually call "memory safety". The problem you…
comment by Yoric · 2018-05-30 · in Zig: programming language designed for robustness optimality and clarity [video] -
…stdlib OutOfMemory errors: "Containers should provide some way to not panic on failed allocations" https://github.com/rust-lang/rust/issues/29802
comment by espeed · 2018-05-30 · in Zig: programming language designed for robustness optimality and clarity [video] -
https://github.com/rust-lang/rust/pull/50000 is the first bit, https://github.com/rust-lang/rust/issues/49879 is the tracking issue.
comment by steveklabnik · 2018-05-29 · in When FFI Function Calls Beat Native C -
…and so &mut T can be optimized more aggressively. (We recently turned these optimizations back on: https://github.com/rust-lang/rust/pull/50744 )
comment by steveklabnik · 2018-05-28 · in An embedded database written in Rust -
…For example, lots of people had to downgrade packages on MinGW recently for a bit before fixed, see https://github.com/rust-lang/rust/issues/47048
comment by kodablah · 2018-05-26 · in Go Is a Shop-built Jig (2014) -
Both, it landed a few hours ago, and so will be in 1.28 stable. Here's the PR: https://github.com/rust-lang/rust/pull/50744
comment by steveklabnik · 2018-05-19 · in On Competing with C Using Haskell (2017) -
std::str::from_bytes is that API. Rust’s current implementation of full validation: https://github.com/rust-lang/rust/blob/2a3f5367a23a769a068c3... I have a vague feeling there’s an even faster path for probably-ASCII out there, but I…
comment by chrismorgan · 2018-05-16 · in Validating UTF-8 strings using as little as 0.7 cycles per byte -
…feature, so this footnote gives a false sense of optimism. Furthermore, as per the discussion at https://github.com/rust-lang/rust/issues/28979 , it's very unclear whether or not the stable form of this feature will end up using XID_start…
comment by kibwen · 2018-05-16 · in Rust turns three -
…nonnull %2) #2, !dbg !26, !srcloc !27 Hmm… seems to be related to this Rust bug: https://github.com/rust-lang/rust/issues/16383
comment by comex · 2018-05-14 · in How Rust 1.26 more than tripled the speed of my code -
…to land at approximately the same time. For example, coming up next in 1.27 is stable SIMD: https://github.com/rust-lang/rust/pull/49664 (though only for x86/x86_64 at first; more platforms and high-level crossplatform APIs are on the way).
comment by kibwen · 2018-05-10 · in Rust 1.26 released -
…used most of those features in Rust, except for Address Sanitizer. But even ASan is available now: https://github.com/rust-lang/rust/pull/38699 I remember spending hours using Valgrind on Rust code back in 2011 to track down codegen…
comment by pcwalton · 2018-05-01 · in How to speed up the Rust compiler in 2018 -
…Rust certainly has the potential for exponential times when performing large inference. [1]: https://github.com/rust-lang/rust/issues/22204
comment by shepmaster · 2018-04-30 · in How to speed up the Rust compiler in 2018 -
…tracking ticket for the larger-scale reworking of the compiler internals for better performance: https://github.com/rust-lang/rust/issues/48547 I think there are a couple of major reasons why rustc is slow, and then a lot of ones which…
comment by lambda · 2018-04-30 · in How to speed up the Rust compiler in 2018 -
If you're interested in the current "grand plans" for performance, check out this issue: https://github.com/rust-lang/rust/issues/48547 The query parallelization work has been coming along. Also it was recently discovered that building…
comment by mastax · 2018-04-30 · in How to speed up the Rust compiler in 2018 -
…For example, here's where arielb1 discovered that the original scoped threads design was unsound: https://github.com/rust-lang/rust/issues/24292 (which sparked a large debate about whether mem::forget should be allowed in safe code:…
comment by oconnor663 · 2018-04-30 · in How to speed up the Rust compiler in 2018 -
…problems. It is relatively easy to create a situation where you overflow your program. See here: https://github.com/rust-lang/rust/issues/50049 Googling around, there are many situations where bad code can lead to an overflow and your code…
comment by csomar · 2018-04-27 · in Reflections on Rust, and the Sand Castle Metaphor -
Assuming nothing catastrophic happens in the next five days, https://github.com/rust-lang/rust/pull/49664 can be merged, by the way. So that'll be one thing off your list as of 1.27.
comment by steveklabnik · 2018-04-12 · in A Gentle Introduction to Rust -
…a normal macro in that it doesn't expand to a bunch of Rust code. I found that pretty neat. [0] - https://github.com/rust-lang/rust/blob/master/src/libcore/ma... [1] - https://github.com/rust-lang/rust/blob/e8af0f4c1f121263e55da...
comment by phyllostachys · 2018-04-05 · in Making a Statically-Linked, Single-File Web App with React and Rust -
…intrinsics) eats into many of the use cases for inline ASM. Not all of course, but many. :-) [1] - https://github.com/rust-lang/rust/issues/29722
comment by burntsushi · 2018-03-29 · in Rust 1.25 released -
I know this won't help you, but there is an issue tracking this: https://github.com/rust-lang/rust/issues/43353
comment by saghm · 2018-03-24 · in 100 days with Rust: a series of brick walls -
The tracking issue for const generics is here: https://github.com/rust-lang/rust/issues/44580
comment by kibwen · 2018-03-12 · in Rust's 2018 roadmap -
So, we almost made str a library type, but there were downsides and not a lot of upsides. https://github.com/rust-lang/rust/pull/19612 > no other data type does? You could argue that slices are a primitive type to arrays (also a primitive…
comment by steveklabnik · 2018-03-08 · in Rust needs to run, and be easy to use, on every platform -
….parse() vs .into()), shipping 1.0 without async/await, and the whole mess with strings. 0: https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is... 1: https://github.com/rust-lang/rfcs/issues?utf8=%E2%9C%93&q=is... 2:…
comment by ComputerGuru · 2018-03-08 · in Rust needs to run, and be easy to use, on every platform -
…isn't a problem regardless: "There are only Copy types on the rust stack frame being jumped over." https://github.com/rust-lang/rust/issues/48251
comment by mkj · 2018-03-02 · in Announcing Rust 1.24.1 -
…it's isolated to clearly marked code (except for some minor bugs in Rust that will be fixed - see https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is... ). Instead TypeScript has a bunch of serious unfixed design flaws that make…
comment by devit · 2018-02-19 · in Maybe you don't need Rust and WASM to speed up your JS -
Though sadly casting float conversions are still UB. There's a really good writeup about it here: https://github.com/rust-lang/rust/issues/10184#issuecomment-...
comment by andromeduck · 2018-02-19 · in The Evil Within the Comparison Functions -
Quoting a comment I made at https://github.com/rust-lang/rust/pull/27867#issuecomment-22... about that: One other potential issue with this (an issue that also applies to GNU make's MAKE_TERMOUT and MAKE_TERMERR environment variables,…
comment by JoshTriplett · 2018-02-07 · in Disabling ANSI color output -
…as complex as Rust's compiler. Especially when there are many currently known bugs of this sort: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by gpm · 2018-02-04 · in RustBelt: securing the foundations of the Rust programming language