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
-
…themselves to always behave one way. Overflows at compile time are caught as errors. More info at: https://github.com/rust-lang/rust/issues/22020 If the requested behaviour is unspecified (just `a+b`), overflows cause runtime panic (edit:…
comment by viraptor · 2016-03-22 · in Cross-platform Rust rewrite of the GNU coreutils -
That's what the well-typed check I mentioned before is, see https://github.com/rust-lang/rust/pull/31474
comment by eddyb · 2016-03-04 · in No Compiler – On LLVM, and writing software without a compiler -
I believe this is being discussed here: https://github.com/rust-lang/rust/issues/29754
comment by kibwen · 2016-03-04 · in Announcing Rust 1.7 -
…so it has emitted warnings for the new error cases since 1.4 to give crate authors time to adapt." https://github.com/rust-lang/rust/blob/stable/RELEASES.md#co... I think this is a fantastic example of the even-handed approach in the…
comment by dikaiosune · 2016-03-03 · in Announcing Rust 1.7 -
…from having to pay a de facto performance penalty for being generic (preliminary implementation at https://github.com/rust-lang/rust/pull/30652 ), and the latter is purely an ergonomic change to make our `Result`-based error handling more…
comment by kibwen · 2016-03-03 · in Announcing Rust 1.7 -
…you screwing up. E.g. the standard library does, the Vec type contains a RawVec to manage memory ( https://github.com/rust-lang/rust/blob/a212264011289885bdb8b... ) and similarly with HashMap ( https://github.com/rust-lang/rust/blob/a212264…
comment by dbaupp · 2016-02-20 · in Glibc getaddrinfo stack-based buffer overflow -
…this. I and others are very skeptical in general, but there's some interesting discussion so far: https://github.com/rust-lang/rust/pull/31732
comment by steveklabnik · 2016-02-17 · in Issue and Pull Request templates -
…OOP-y language like D and Rust - http://www.drdobbs.com/cpp/uniform-function-call-syntax/2327... https://github.com/rust-lang/rust/issues/16293 Finally, this syntax is important just to allow extension methods without a more specialized…
comment by DrDimension · 2016-02-15 · in A bit of background for the unified C++ call proposal -
…)). I was actually the one to file the issue discussing migration, back in 2012: https://github.com/rust-lang/rust/issues/2865 . We've generally come to terms with using Github Issues (not terrible, not great, Just Okay). We do have to spe
comment by kibwen · 2016-02-12 · in Investigate switching away from GitHub -
…one given Rust syntax: right to left behaviour), while code generation assumes left to right order. https://github.com/rust-lang/rust/issues/28160 That is not the standard question of right-to-left vs. left-to-right argument order. That is…
comment by pcwalton · 2016-02-01 · in Why I'm Choosing C++ -
…one given Rust syntax: right to left behaviour), while code generation assumes left to right order. https://github.com/rust-lang/rust/issues/28160 What can you do with pointers in unsafe parts of code so that everything is still…
comment by wuch · 2016-02-01 · in Why I'm Choosing C++ -
…and it seems to work reasonably well even with old issues with a fair number of labels[1] [0] https://github.com/rust-lang/rust/labels [1] https://github.com/rust-lang/rust/issues/5016
comment by masklinn · 2016-01-18 · in Dear open-source maintainers, a letter from GitLab -
…rustc 3 times for each snapshot to properly bootstrap that copy). The snapshots are listed here: https://github.com/rust-lang/rust/blob/master/src/snapshots.... In the past the snapshots were taken almost weekly as massive language churn…
comment by Gankro · 2016-01-12 · in Two Weeks of Rust -
…and more wants to an idea until it sinks. Same thing with the discussion about a `yield` keyword: https://github.com/rust-lang/rust/issues/7746 https://github.com/rust-lang/rfcs/issues/388 It reminds me of the JCP in Java. I guess every…
comment by pjungwir · 2016-01-12 · in Two Weeks of Rust -
…generally know the issues, and that privacy is the #1 way the abstraction boundary is maintained. https://github.com/rust-lang/rust/issues/9883#issuecomment-1... Privacy may be the best way to limit unsafety, but C and C++ already have…
comment by btrask · 2016-01-11 · in The Scope of Unsafe -
…it is not introducing anything new, and so the refutations you often receive still apply. [1]: https://github.com/rust-lang/rust/blob/dfaddb732ced1da9d3109... [2]: https://github.com/iron/iron/blob/d3942d72e3178e7b34ebf1ea0e... [3]:…
comment by dbaupp · 2016-01-11 · in The Scope of Unsafe -
…a few libraries, which can be determined by looking at the `extern crate` statements in this file: https://github.com/rust-lang/rust/blob/master/src/libstd/lib... . Ignore libtest and liblog because they're conditionally used only in…
comment by kibwen · 2016-01-09 · in RustBelt: Logical Foundations for the Future of Safe Systems Programming -
…can't import C++ in Rust, rustc is written in Rust, and yet it uses LLVM. [0] might be in https://github.com/rust-lang/rust/tree/master/src/rustllvm though I'm not quite sure
comment by masklinn · 2015-12-31 · in Swift: Commonly Rejected Changes -
Here's a link to the bug in question: https://github.com/rust-lang/rust/issues/10184 , which can be realized by casting floats whose value is beyond a certain threshold to integers and then using them to index. The ultimate fix will…
comment by kibwen · 2015-12-30 · in A problem with LLVM's undef -
…browser implementations—is the result of optimizations that are enabled by undefined behavior. [1]: https://github.com/rust-lang/rust/issues/10184
comment by pcwalton · 2015-12-24 · in The Problem with Friendly C -
> Other examples: Rust has E-easy and E-mentor https://github.com/rust-lang/rust/labels/E-easy https://github.com/rust-lang/rust/labels/E-mentor
comment by masklinn · 2015-11-25 · in First Timers Only -
…to reducing friction with the language - a goal which often goes too long without attention. [1]: https://github.com/rust-lang/rust/issues/24407
comment by nathankleyn · 2015-11-19 · in Making Elm faster and friendlier in 0.16 -
…constructor segfaults) [0] https://msdn.microsoft.com/en-us/library/dd402872(v=vs.110).... [1] https://github.com/rust-lang/rust/blob/master/src/libcore/tu... [2] https://downloads.haskell.org/~ghc/7.2.2/docs/html/libraries...
comment by masklinn · 2015-11-16 · in Modern Java – A Guide to Java 8 -
…to spend optimizing Rust code. There have still been general compiler improvements this cycle (e.g. https://github.com/rust-lang/rust/pull/27943 ), but the MIR work is necessary for long-term improvements going forward.
comment by kibwen · 2015-10-29 · in Announcing Rust 1.4 -
…Meanwhile, support for driving LLVM IR generation from the MIR is in the pipeline as we speak: https://github.com/rust-lang/rust/pull/29217
comment by kibwen · 2015-10-29 · in Announcing Rust 1.4 -
As another example it seems that Rust does the same: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by mden · 2015-10-29 · in PyPy 4.0.0 Released – A Jit with SIMD Vectorization and More -
…We're actually in the midst of arguing whether to violate this convention and do it for RefCell: https://github.com/rust-lang/rust/issues/27733
comment by Gankro · 2015-10-26 · in Java 8’s new Optional type doesn't solve anything -
…has always been a tough pill for some to swallow, FreeBSD at least has already switched to Clang) https://github.com/rust-lang/rust#license The OpenBSD folks have done great work through auditing and writing safer code in C, and I agree…
comment by rhelmer · 2015-10-05 · in Is OpenSMTPD worthy of OpenBSD inclusion? -
…"non-lexical borrows". The tracking issue is here: https://github.com/rust-lang/rfcs/issues/811 and https://github.com/rust-lang/rust/issues/6393 is the older issue it superseded, with examples. There hasn't been an RFC yet, because we're…
comment by steveklabnik · 2015-10-01 · in Trying Rust for web services -
…Rustdoc can _certainly_ use way more improvements. Many of the things you've expressed are here: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... I would love to re-write all of Rustdoc, frankly, but haven't been able to.…
comment by steveklabnik · 2015-10-01 · in Trying Rust for web services -
…breaking change needed to fix it), it seems plain sanity should prefer a generated parser. https://github.com/rust-lang/rust/issues/28777 I'm not a compiler hacker, so I don't know how to weigh it really though.
comment by kzrdude · 2015-10-01 · in LALRPOP, an LR(1) parser generator for Rust -
…own parser to a rust native tool? Now it apparently uses antlr4 along with some custom rust code: https://github.com/rust-lang/rust/tree/master/src/grammar
comment by e12e · 2015-09-29 · in LALRPOP, an LR(1) parser generator for Rust -
…CPUs will do! For the record, there seem to be a lot of bounds checking independent of indexing: https://github.com/rust-lang/rust/blob/master/src/libcollect... https://github.com/rust-lang/rust/blob/master/src/libcollect...…
comment by acconsta · 2015-09-24 · in Linus on compiler warnings and code reviews -
…There's exactly one line in the Rust stdlib that provides bounds checking for indexing, right here: https://github.com/rust-lang/rust/blob/master/src/libcore/sl... . All you would need to do is take out that line and compile Servo with…
comment by kibwen · 2015-09-23 · in Linus on compiler warnings and code reviews -
…as inline functions in a C-language header file, so they were not actually dynamically linkable: https://github.com/rust-lang/rust/commit/a8dbb92b . In both of these cases I would have loved to just #include the C header, but…
comment by geofft · 2015-09-22 · in On Go, Portability, and System Interfaces -
…more detailed release notes: "Porting Rust on Windows from the GNU toolchain to MSVC continues ( https://github.com/rust-lang/rust/pull/26569 , https://github.com/rust-lang/rust/pull/26741 , https://github.com/rust-lang/rust/pull/26741 ,…
comment by kibwen · 2015-09-17 · in Announcing Rust 1.3 -
Welcome improvements! I guess I'll be able to compile all my code on stable 1.4 judging by https://github.com/rust-lang/rust/pull/28339 .
comment by arthursilva · 2015-09-17 · in Announcing Rust 1.3 -
Not yet, but a big stabilization PR was: https://github.com/rust-lang/rust/pull/28339
comment by kzrdude · 2015-09-17 · in Announcing Rust 1.3 -
Lots of great little things in this release (my favorite is probably https://github.com/rust-lang/rust/pull/26926 , hooray for removing external dependencies (come oooooon LLD...)), but what I'm really excited about is the upcoming 1.4…
comment by kibwen · 2015-09-17 · in Announcing Rust 1.3 -
…is important for perf and exception safety, though we have briefly mused allowing it to panic: https://github.com/rust-lang/rust/issues/26951
comment by Gankro · 2015-09-17 · in Asynchronous IO in Rust -
Ahh excellent, thank you! https://github.com/rust-lang/rust/issues/28053
comment by steveklabnik · 2015-08-27 · in Lock freedom without garbage collection in Rust -
…manually [1]: http://huonw.github.io/simd/simd/struct.f32x4.html#method.lo... [2]: https://github.com/rust-lang/rust/issues/22987
comment by dbaupp · 2015-08-24 · in SIMD in Rust -
…function in the handler since they allocate memory, so it's not super useful. Here's the bug, https://github.com/rust-lang/rust/issues/27335 . And, here is the original one https://github.com/rust-lang/rust/issues/14674 . (Side note: I…
comment by mtanski · 2015-08-17 · in Rust web framework, Iron -
…Take Servo, for instance: https://github.com/servo/servo/tree/master/components or rustc itself: https://github.com/rust-lang/rust/tree/master/src Each of these subdirectories (basically, a few aren't) is a crate, so you'll only be…
comment by steveklabnik · 2015-08-14 · in Rust in 2016 -
…hand I find it makes the text a bit less dry to not take yourself too seriously. :) re italics: https://github.com/rust-lang/rust/pull/27414
comment by Gankro · 2015-07-31 · in The Advanced Rust Programming Language Book Draft -
…the first draft. Lots of errors and TODOs. Source is here if you want to file issues or patches: https://github.com/rust-lang/rust/tree/master/src/doc/tarpl
comment by Gankro · 2015-07-31 · in The Advanced Rust Programming Language Book Draft -
Rust also has experimental support for MUSL as of April: https://github.com/rust-lang/rust/pull/24777
comment by markus2012 · 2015-07-24 · in OpenWrt switches to musl by default, replacing uClibc -
…contributors) posted a valgrind example yesterday on one of the issues that individual linked ( https://github.com/rust-lang/rust/issues/19776 ). ==21255== HEAP SUMMARY: ==21255== in use at exit: 312 bytes in 7 blocks ==21255== total heap…
comment by rjshayes · 2015-07-23 · in Five lists of six things about Rust -
…ago. He acknowledged this on one of the very issues the original comment was in reference to. See https://github.com/rust-lang/rust/issues/19776 alexcrichton commented a day ago @huonw did you test on linux? You may have been using the ELF…
comment by rjshayes · 2015-07-23 · in Five lists of six things about Rust