rust-lang/rust
View on GitHub ↗ ★ 121,011 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
-
…traits, indicate certain errors (often in enums), etc. A couple quick examples from the stdlib: https://github.com/rust-lang/rust/blob/1.22.1/src/libstd/syn... https://github.com/rust-lang/rust/blob/1.22.1/src/libstd/col... I recommend…
comment by TheDong · 2017-11-29 · in What's a reference in Rust? -
It initializes stack overflow handling. You can read about what that means here, for Unix: https://github.com/rust-lang/rust/blob/71340ca4e181b824bcefa...
comment by rhencke · 2017-11-28 · in How Stylo Brought Rust and Servo to Firefox -
…a runtime penalty as Golang does? Rust has the same amount of runtime as C does: very very little. https://github.com/rust-lang/rust/blob/master/src/libstd/rt....
comment by steveklabnik · 2017-11-28 · in How Stylo Brought Rust and Servo to Firefox -
…verbosity caused by the absence of normal exceptions" That doesn't make sense. mic drop [1] https://github.com/rust-lang/rust/pull/24619
comment by topspin · 2017-11-26 · in Criticizing the Rust Language, and Why C/C++ Will Never Die -
…some type of language spec, but it doesn't look like any work is being done on that front [0]. [0] https://github.com/rust-lang/rust/issues/30500 - I apologize for this link being a bit of a rabbit-hole, but I think the whole thing is a…
comment by DSMan195276 · 2017-11-25 · in Announcing Rust 1.22 -
Tracking issue for using it in main: https://github.com/rust-lang/rust/issues/43301
comment by kibwen · 2017-11-23 · in Announcing Rust 1.22 -
…running this in a browser, you might not be able to use the std lib to spawn threads just yet. [1]: https://github.com/rust-lang/rust/pull/46115
comment by killercup · 2017-11-23 · in Announcing Rust 1.22 -
…dereference , that is `unsafe`, as that may blow-up if the value is an invalid memory location. [0] https://github.com/rust-lang/rust/issues/33813 [1] https://play.rust-lang.org/?gist=c9c11545fac3a45550e6810cb57... An example that uses…
comment by DSMan195276 · 2017-11-23 · in Announcing Rust 1.22 -
…And yep, it's in the beta branch. This means it's in 1.23, which'll be released in 6 weeks. [1]: https://github.com/rust-lang/rust/commits/beta
comment by killercup · 2017-11-23 · in Announcing Rust 1.22 -
…which support wasm compilation without emcc. Does anyone know when it is expected in stable? https://github.com/rust-lang/rust/pull/45905
comment by akmittal · 2017-11-23 · in Announcing Rust 1.22 -
…language. Read about it in the originating PR (which was not linked directly from the blog post): https://github.com/rust-lang/rust/pull/41336
comment by kibwen · 2017-11-23 · in Announcing Rust 1.22 -
Rust's runtime is basically the same weight as C, that is, crt: https://github.com/rust-lang/rust/blob/master/src/libstd/rt.... What you're talking about is more of dropping the standard library.
comment by steveklabnik · 2017-11-17 · in Speed up your Python using Rust -
…(slightly older but still should work afaik) And the new backend https://github.com/rust-lang/rust/pull/45905
comment by steveklabnik · 2017-11-14 · in WebAssembly support now shipping in all major browsers -
…in rustdoc for almost a year now: https://internals.rust-lang.org/t/what-to-do-about-pulldown-... , https://github.com/rust-lang/rust/issues/44229
comment by kibwen · 2017-11-07 · in Markdown Here – Write email in Markdown -
…and implementation is actively worked on[2]. [1] https://github.com/rust-lang/rfcs/pull/2133 [2] https://github.com/rust-lang/rust/pull/43690 [3] https://github.com/rust-lang/rfcs/pull/2000 [4] https://github.com/rust-lang/rust/issues/44580
comment by weinzierl · 2017-10-29 · in Why Rust fails hard at scientific computing -
And implemented: https://github.com/rust-lang/rust/pull/43690
comment by mastax · 2017-10-29 · in Why Rust fails hard at scientific computing -
…do not allow you to elide them, but because we use LLVM, we incidentally inherited this behavior: https://github.com/rust-lang/rust/issues/28728 LLVM has since added a new intrinsic: https://reviews.llvm.org/D38336 This will allow us to…
comment by steveklabnik · 2017-10-24 · in C++17 Is Here: Interview with Herb Sutter -
…evil_lincoln is doing, you have to understand very old Rust. Here's the commit that introduced it: https://github.com/rust-lang/rust/commit/664b0ad3fcead4fe4d2... fn evil_lincoln() { let evil <- log "lincoln"; } log was a keyword to print…
comment by steveklabnik · 2017-10-17 · in Zig Programming Language 0.1.1: First beta release -
…the stdlib. We have work on: 1. A trait for allocation, so that allocators can have the same APIs. https://github.com/rust-lang/rust/issues/32838 2. Swapping out that allocator entirely, wholesale. Tor and Firefox both want this.…
comment by steveklabnik · 2017-10-17 · in Zig Programming Language 0.1.1: First beta release -
…the same reason as C#: contextual keywords. union union<'union> { union: &'union union<'union>, } https://github.com/rust-lang/rust/blob/59675d29eb47eb743026d...
comment by steveklabnik · 2017-10-17 · in Zig Programming Language 0.1.1: First beta release -
Oh, I missed that it's an Option. That means that it won't work today, but https://github.com/rust-lang/rust/pull/42526 landed, and is in beta. This means on the next release of Rust, code like this will work: fn try_result_some() ->…
comment by steveklabnik · 2017-10-16 · in Enabling Rust on Embedded Platforms – Linux, RTOS, Bare Metal -
…at RustFest, Oli managed to get Miri integrated into the compiler and bootstrap for the first time. https://github.com/rust-lang/rust/pull/45002 https://github.com/rust-lang/rfcs/blob/1f5d3a9512ba08390a222... is the relevant historic RFC;…
comment by steveklabnik · 2017-10-16 · in Enabling Rust on Embedded Platforms – Linux, RTOS, Bare Metal -
https://github.com/rust-lang/rust/blob/108706f13a7e5e530ba4b... https://github.com/rust-lang/rust/blob/cd93969ec4fb2d0bc2b53... https://fuchsia.googlesource.com/rust_sample_module/ https://fuchsia.googlesource.com/rust_ledger_example/…
comment by steveklabnik · 2017-10-12 · in The Case for Writing a Kernel in Rust [pdf] -
Interesting that the winning submission exploits a known bug: https://github.com/rust-lang/rust/issues/38899 . Underhanded C submissions don't need to exploit bugs; the C language already has plenty of loopholes!
comment by richdougherty · 2017-09-27 · in 2016 Underhanded Rust contest: the results -
This one for example: https://github.com/rust-lang/rust/issues/17164 There was another one, but I can't find the issue for it. I asked in IRC about it and it was fixed by adding &* before an expression. I didn't understand why ...
comment by jhasse · 2017-09-27 · in Why did we choose Rust to develop TiKV? -
…that my knowledge is out of date: did Rust use something closer to H-M in the past? (Going off of https://github.com/rust-lang/rust/pull/15955 here.)
comment by mrkgnao · 2017-09-21 · in Bootstrapping Urbit from Ethereum -
…curve. They seem important. By the way, you linked to the RFC repo instead of the language repo: https://github.com/rust-lang/rust/commits/master . The language does have a lot of features that make it into the nightly branch, but those…
comment by bluejekyll · 2017-09-18 · in Fuchsia: Google's modular, capability-based, non-Unix operating system -
…blog post: http://dylanmckay.io/blog/rust/avr/llvm/2017/02/09/safer-mic... Tracking bug on GitHub: https://github.com/rust-lang/rust/issues/42450
comment by andrewflnr · 2017-09-16 · in Go vs. Rust? Choose Go -
…this point, and many projects can be compiled with no issues. The issue you linked also links to ( https://github.com/rust-lang/rust/issues/44052 ), which shows that once these bugs are fixed, we can start working on merging avr-rust…
comment by dyl · 2017-09-08 · in LLVM 5.0.0 Release -
…the fact that buildbot (which they think is maintained by mozilla) uses "master/slave" terminology https://github.com/rust-lang/rust-buildbot/issues/2 . Mozilla gives buildbot $15k for changing it https://blog.mozilla.org/blog/2015/12/10/mo…
comment by david-cako · 2017-09-05 · in Rust 2017 Survey Results -
It was https://github.com/rust-lang/rust/issues/41646 It was about changing the name of a lint from "bad-style" to "non-standard-style". I still don't understand what this change has anything to do with social politics. Nor was this really…
comment by Manishearth · 2017-09-05 · in Rust 2017 Survey Results -
…a breaking change that had an “acceptable count” of GitHub issues cross-referencing it is this one: https://github.com/rust-lang/rust/pull/42496 .
comment by Ruud-v-A · 2017-09-05 · in Rust 2017 Survey Results -
…that resulted it in no longer inferring types in circumstances where rustc 1.17 did infer types. https://github.com/rust-lang/rust/issues/42545
comment by khuey · 2017-09-05 · in Rust 2017 Survey Results -
…): - Patching up soundness holes causing previously-unsound code to error ( https://github.com/rust-lang/rust/pull/43651 is an example) - Changing inference in a way that may require new annotations - Adding types and things to module
comment by Manishearth · 2017-09-05 · in Rust 2017 Survey Results -
…could look like. Currently they are available via a module, and they are implemented like above: https://github.com/rust-lang/rust/blob/master/src/libcore/nu...
comment by whyever · 2017-09-01 · in Announcing Rust 1.20 -
…I'm really missing in Rust right now is specialization in generics, which is being worked on here: https://github.com/rust-lang/rust/issues/31844 .
comment by jmcomets · 2017-08-31 · in Announcing Rust 1.20 -
…really, thank you! I've opened a (a bit vague for now) issue so at least I don't forget about it: https://github.com/rust-lang/rust/issues/44041 As for phase ordering - someone did show me recently VSDG, which claims to solve at least part…
comment by eddyb · 2017-08-22 · in How JavaScript works: inside the V8 engine -
…because of the huge size of the runtimes. Rust has a comparable amount of runtime as C, here it is: https://github.com/rust-lang/rust/blob/master/src/libstd/rt.... wasm/asmjs does bring in some stuff, because it's mostly in a "it works"…
comment by steveklabnik · 2017-08-15 · in Rust for the Web -
…how addition is implemented. fn add(mut self, other: &str) -> String { self.push_str(other); self } https://github.com/rust-lang/rust/blob/master/src/liballoc/s... Of course, upfront sizing is still advantageous, but you avoid the…
comment by Veedrac · 2017-08-13 · in Pony Performance Cheatsheet -
…is a choice between tangly handling of nested errors or verbose attempts to early-exit. [1]: https://github.com/rust-lang/rust/blob/master/src/libstd/sys...
comment by Veedrac · 2017-08-12 · in Typed nils in Go 2 -
…the external https://crates.io/crates/alias and even an approved RFC for adopting it into std: https://github.com/rust-lang/rust/issues/43038 .
comment by dbaupp · 2017-08-01 · in Rust: Not So Great For Codec Implementing -
…about it due to this commit enabling it by default (on supported platforms) in the Rust compiler: https://github.com/rust-lang/rust/pull/43170
comment by kibwen · 2017-07-26 · in RELRO: a (not so well-known) memory corruption mitigation technique (2009) -
…difficult, see e.g. this longstanding UB bug related to how LLVM translates certain numeric casts: https://github.com/rust-lang/rust/issues/10184 ).
comment by kibwen · 2017-07-26 · in Defining the Undefinedness of C (2015) [pdf] -
…backends. So they can suffer from just the same UB if the language itself does not prevent it. https://github.com/rust-lang/rust/issues/28728
comment by the8472 · 2017-07-26 · in Defining the Undefinedness of C (2015) [pdf] -
…for Rust [1]. It is not too complex once you understood but annoying enough to derive again. [1] https://github.com/rust-lang/rust/blob/f8d485f/src/libcore/n...
comment by lifthrasiir · 2017-07-22 · in Converting floats to strings -
…accepted to change the behavior but it has not been fully implemented. Here's the tracking issue: https://github.com/rust-lang/rust/issues/27060
comment by bbatha · 2017-07-14 · in Redis on the Raspberry Pi: Adventures in unaligned lands -
…explanatory comments where they can help. The rustc borrow checker is another example that I like: https://github.com/rust-lang/rust/tree/master/src/librustc_b... . What is now README.md used to be somewhat shorter (though still long and…
comment by chrismorgan · 2017-07-11 · in Writing Good Code Is a Lot Like Writing Prose