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
-
Thanks so much! Yes, I'm eagerly awaiting https://github.com/rust-lang/rust/pull/58457 and your follow-up https://github.com/rust-lang/rust/pull/60703 . AFAIK, a global allocator is still required with them (so we still have to initialize…
comment by phil-opp · 2019-06-27 · in Writing an OS in Rust: Heap Allocation -
…nothing to prevent allocation earlier and that will fail. But there is work in progress (first https://github.com/rust-lang/rust/pull/58457 ) that will allow using local allocators, removing the ambient authority that makes that failure…
comment by Ericson2314 · 2019-06-27 · in Writing an OS in Rust: Heap Allocation -
…quite a few things have happened in that time, including some features having become stabilized. https://github.com/rust-lang/rust/blob/master/RELEASES.md 1.35.0 is the current stable Rust toolchain indeed.
comment by codetrotter · 2019-06-26 · in Building Standalone Python Applications with PyOxidizer -
…mips works completely fine to build smaller rust packages, e.g cargo [2] ripgrep [3] [1] https://github.com/rust-lang/rust/issues/56888 [2] https://buildd.debian.org/status/package.php?p=cargo [3] https://buildd.debian.org/status/package.ph…
comment by infinity0x-2 · 2019-06-19 · in Debian Riscv64 port in mid 2019 -
…and higher levels of abstraction. Hopefully, formal verification will arrive soon as well. [1] https://github.com/rust-lang/rust/pull/61946 [2] https://internals.rust-lang.org/t/proposal-business-applicat...
comment by xvilka · 2019-06-19 · in Facebook picked Rust to implement Libra -
…a duration is ambiguous without a context and it would be misleading to present it as exact. [1] https://github.com/rust-lang/rust/blob/master/RELEASES.md#ve... (in case you wonder)
comment by lifthrasiir · 2019-06-19 · in Fixing a Small Calc.exe Bug -
…rustc/cargo in particular you also have to set the $TERM environment variable to "xterm" [1]. [1] https://github.com/rust-lang/rust/issues/45728#issuecomment-...
comment by spellcard199 · 2019-06-17 · in Presenting the Eshell -
…om/rust-lang/rfcs/blob/master/text/2457-non-... [2]: https://github.com/rust-lang/rfcs/pull/2457 [3]: https://github.com/rust-lang/rust/issues/55467
comment by estebank · 2019-06-08 · in Rust, Macros, λ-calculus/Church numerals, oh my -
…Pin stabilization tracking issue as an example of just one semantic discussion towards this end: https://github.com/rust-lang/rust/issues/49150
comment by kibwen · 2019-05-28 · in Update on await syntax in Rust -
It has been usable on nightly since `nightly-2019-05-09` (with https://github.com/rust-lang/rust/pull/60586 )
comment by Arnavion · 2019-05-28 · in Update on await syntax in Rust -
…toolchain from source. That means downloading and building at least the following two from source: https://github.com/rust-lang/rust https://github.com/rust-lang/cargo That includes building the bundled bits of LLVM from source. If your…
comment by codetrotter · 2019-05-23 · in Announcing Rust 1.35.0 -
…inhibit DCE, constant propagation and inlining [0] https://www.youtube.com/watch?v=s4wnuiCwTGU [1] https://github.com/rust-lang/rust/issues/44041 [2] https://bugs.openjdk.java.net/browse/JDK-8005071
comment by the8472 · 2019-05-17 · in Zero Cost Abstractions -
…contains the debug symbols. On Mac, they're in a separate .dSYM file from what I understand. See https://github.com/rust-lang/rust/issues/46034 . According to that thread, the size jump of the unstripped binary is probably from libstd…
comment by edflsafoiewq · 2019-05-16 · in Why is a Rust executable large? (2016) -
…jemalloc was removed and the default allocator switched to system in 1.32 (January 2019)[0]. [0] https://github.com/rust-lang/rust/blob/master/RELEASES.md#co...
comment by masklinn · 2019-05-16 · in Why is a Rust executable large? (2016) -
…miscompilation, or otherwise weasel out of things that the language is meant to guarantee: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... At this point these are mostly edge cases that you're unlikely to hit in real code,…
comment by pornel · 2019-05-16 · in Four Years of Rust -
https://github.com/rust-lang/rust currenly has 4738 open and 25,000 closed. https://github.com/golang/go currently has 4412 open and 27,000 closed. https://github.com/npm/npm had 2166 before moving to community,forum.…
comment by mtmail · 2019-05-15 · in Ask HN: Which GitHub repo has the most open issues? -
…to bypass safety checks without marking the code as unsafe. But so do most of the bugs listed in https://github.com/rust-lang/rust/labels/I-unsound%20%F0%9F%... ? What makes this different that it's a security issue now?
comment by bennofs · 2019-05-13 · in Security Advisory for the Standard Library -
https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is... shows 108 open, 309 closed for me, not 700. And that’s out of the almost 30,000 issues reported so far. You can do bump allocation in non-GC’d languages too; here’s an example…
comment by steveklabnik · 2019-05-10 · in Memory Allocation Benchmark -
…keyword only shows up in contexts where identifiers aren't expected, so there's no ambiguity? [1] https://github.com/rust-lang/rust/pull/54411
comment by wyldfire · 2019-05-06 · in A final proposal for Rust await syntax -
…safe to use in a signal handler? Relevant bug from Rust: "TLS accesses aren't async-signal-safe", https://github.com/rust-lang/rust/issues/43146 I'm thinking even if it works on certain OSes, it's not guaranteed, because a signal handler's…
comment by jlokier · 2019-05-02 · in Use mmap with care -
…minimal support for fallible allocation through the try_reserve method on various collections. See https://github.com/rust-lang/rust/issues/48043 for more information. Other than that, there is ongoing work for custom allocator support in…
comment by phil-opp · 2019-04-27 · in Writing an OS in Rust: Testing -
…custom test runner front :) The custom test framework feature of Rust was silently introduced in https://github.com/rust-lang/rust/pull/53410 and I didn't know that it even existed a month ago. But it works really well and seems like a…
comment by phil-opp · 2019-04-27 · in Writing an OS in Rust: Testing -
Yes, as of a couple of days ago in nightly (pre-1.36): https://github.com/rust-lang/rust/pull/58623
comment by anderskaseorg · 2019-04-27 · in Open-sourcing F14 for memory-efficient hash tables -
…I don't know whether the "1.13.0-nightly" he used has that optimization enabled or disabled. (See https://github.com/rust-lang/rust/issues/31681 and https://github.com/rust-lang/rust/issues/54878 for the relevant Rust issues.)
comment by cesarb · 2019-04-25 · in Programming language ray tracing benchmarks project -
Not a borrow checker expert, but this PR was on the blocker list. Maybe it's what you mean? https://github.com/rust-lang/rust/pull/58739
comment by est31 · 2019-04-23 · in Rust's 2019 Roadmap -
The futures stabilization is very close as well, see https://github.com/rust-lang/rust/issues/59725 and https://github.com/rust-lang/rust/pull/59739 . Very soon! Like, hours. But yes, after that, the big issue is the syntax issues around…
comment by steveklabnik · 2019-04-23 · in Rust's 2019 Roadmap -
…Rusty news, two phase borrows just got enabled on nightly but stable Rust in the 2015 edition: https://github.com/rust-lang/rust/pull/59114 . If not backed out, it will most likely be part of the 1.36 release. This is a milestone of…
comment by est31 · 2019-04-23 · in Rust's 2019 Roadmap -
…world in comparison. First of all rust has a very incomplete sanitizers support. Ubsan, Msan etc https://github.com/rust-lang/rust/issues/39699 Secondly there is an order of magnitude more static analysis tools that support cpp than rust…
comment by The_rationalist · 2019-04-14 · in Moving to a provenance-aware memory object model for C: proposal for C2x -
…team members on this give me a different impression. See this comment from Niko for example: https://github.com/rust-lang/rust/issues/53668#issuecomment-... So, can you point me to a comment that tells me that the policy still holds and is…
comment by phaylon · 2019-04-12 · in Rust 1.34.0 -
…and riscv64gc-unknown-none-elf targets are now on stable rustc 1.34.0 :slightly_smiling_face: https://github.com/rust-lang/rust/blob/master/RELEASES.md#ve... https://github.com/rust-embedded/wg/issues/218#issuecomment-... EDIT: Mea culpa,…
comment by FullyFunctional · 2019-04-11 · in Rust 1.34.0 -
Ah yes, my bad https://github.com/rust-lang/rust/issues/26951
comment by steveklabnik · 2019-04-07 · in Is It Time to Rewrite the Operating System in Rust? [video] -
…and this were worked out very recently, and so it hasn’t totally ridden the trains to stable yet. https://github.com/rust-lang/rust/issues/59302
comment by steveklabnik · 2019-04-01 · in Git implemented in Rust -
That depends on how these features are added. https://github.com/rust-lang/rust/blob/master/RELEASES.md I would argue that cpp, despite being much older, is still adding features that are kinda backbreaking e.g. ranges.
comment by adamnemecek · 2019-03-25 · in Rust is not a good C replacement -
…are out since they only work if you restrict yourself to ~32GB, depending on alignments. [0] https://github.com/rust-lang/rust/pull/45225
comment by the8472 · 2019-03-06 · in JVM Anatomy Quarks: Compressed References -
…cases, a soundness problem that has yielded a lot of discussion because of that crate specifically: https://github.com/rust-lang/rust/issues/50781 The issue here is that the typemap crate was found to be relying on a compiler bug. The…
comment by pcwalton · 2019-03-04 · in Case Study: Npm uses Rust for its CPU-bound bottlenecks [pdf] -
…0.3.19 was using an irrefutable pattern in a method without a body, and this was prohibited: https://github.com/rust-lang/rust/pull/37378 However, if you run `cargo update` first, then the build succeeds. The 0.3.0 checkout fails because…
comment by burntsushi · 2019-03-03 · in Case Study: Npm uses Rust for its CPU-bound bottlenecks [pdf] -
…in nanoserver. With this release the standard library implements the logic of parsing argv itself. https://github.com/rust-lang/rust/pull/56568
comment by Arnavion · 2019-02-28 · in Announcing Rust 1.33.0 -
…the GitHub issue discussing it is one of the densest and most extensive threads I've seen: https://github.com/rust-lang/rust/issues/49150
comment by kibwen · 2019-02-28 · in Announcing Rust 1.33.0 -
…take. The point of Rust is to displace this stuff , not be the best at integrating with it. 1: https://github.com/rust-lang/rust/blob/7cb3ee453b829a513749e...
comment by ridiculous_fish · 2019-02-24 · in C++20 Design Is Complete: Modules, Coroutines in C++20 -
…it would have never even been called. But for example, malloc and free are used, not sbrk directly: https://github.com/rust-lang/rust/blob/master/src/libstd/sys...
comment by steveklabnik · 2019-02-18 · in LD_PRELOAD: The Hero We Need and Deserve -
…moved at all, as far as I've been able to tell. You can look at the numbers for the compilers: https://github.com/rust-lang/rust/graphs/contributors?from=2... https://github.com/ocaml/ocaml/graphs/contributors?from=1995... The uptick on…
comment by coder543 · 2019-02-15 · in Moving from Ruby to Rust -
…project. Internally rust stack allocates most local objects, but it's size is unchecked. see eg. https://github.com/rust-lang/rust/issues/48055 2nd rust had memory safety in early 0.x releases with a proper GC, but it was removed. Now you…
comment by rurban · 2019-02-13 · in Rust’s standard library was vulnerable for years and nobody noticed -
…agreed to be a good idea, but is a bit tricky to actually implement[1]. Hopefully some day. [1] https://github.com/rust-lang/rust/issues/15023
comment by TheCoelacanth · 2019-02-10 · in John Carmack: writing Rust code feels wholesome -
…borrow checkers since NLL is supposed to allow anything that the old borrow checker allows). [1] https://github.com/rust-lang/rust/issues/46908
comment by TheCoelacanth · 2019-02-10 · in John Carmack: writing Rust code feels wholesome -
…more tolerant. The mode's still called migration mode though, full NLL is to be unleashed later on: https://github.com/rust-lang/rust/issues/57895
comment by est31 · 2019-02-10 · in John Carmack: writing Rust code feels wholesome -
Please see the code: https://github.com/rust-lang/rust/blob/68650cacf23c60ee2f346... In edition 2018, migration mode is turned on. I learned myself about this today btw, after I saw this PR: https://github.com/rust-lang/rust/pull/58342 I…
comment by est31 · 2019-02-10 · in John Carmack: writing Rust code feels wholesome -
…to system(). Also note that Rust has contained a mitigation for that issue for a long time now: https://github.com/rust-lang/rust/pull/24034
comment by pcwalton · 2019-02-08 · in Open-Sourcing ClusterFuzz -
I haven't used it at all, but doesn't Rust have experimental support for coroutines? https://github.com/rust-lang/rust/issues/43122
comment by giornogiovanna · 2019-02-08 · in Coroutines in C (2000) -
…parallel code. I don't think Swift's runtime exclusivity checks give you any of that. [0]: https://github.com/rust-lang/rust/pull/50744
comment by giornogiovanna · 2019-02-05 · in Swift 5 Exclusivity Enforcement -
…available but currently disabled due to a bug in LLVM that can cause incorrect code generation. https://github.com/rust-lang/rust/issues/54878 This is not the first time it has been disabled due to an LLVM bug.…
comment by dodobirdlord · 2019-02-02 · in A Python Interpreter Written in Rust