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
-
https://github.com/rust-lang/rust/blob/master/src/libstd/sys... Looks like it’s relying glibc for lock elision. Mind you the parking_lot::Mutex in the article is not the stdlib implementation, documented here:…
comment by bluejekyll · 2020-01-04 · in Mutexes are faster than Spinlocks -
https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... is the list of soundness bugs. They are considered major, but they’re more compiler bugs than something broken in the language itself. They are taken seriously, but bugs will…
comment by steveklabnik · 2020-01-01 · in Measuring mutexes, spinlocks and how bad the Linux scheduler is -
…), and did the upstream work in GDB to get it to understand things. (There's also more work to do: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... ) That being said, yes, we see integration into the parent platform as being…
comment by steveklabnik · 2019-12-29 · in Why are my Go executable files so large? -
…for this, I think. It seems like Rust also needs this, either through linker magic or extern C: https://github.com/rust-lang/rust/search?utf8=%E2%9C%93&q=er...
comment by x3ro · 2019-12-27 · in The Unix C library API can only be reliably used from C -
…made (as the > policy notes though, we are inclined to accept such a request). > regards, > Niko https://github.com/rust-lang/rust/issues/53287 This thread in the project's (hyperbola) issue tracker seems silly and needlessly exclusive,…
comment by tndl · 2019-12-23 · in HyperbolaBSD Roadmap: hard fork of the OpenBSD kernel and userspace -
…I'm curious about as I really thought it would have segfaulted. It's a signal handler, of course: https://github.com/rust-lang/rust/blob/d8bdb3fdcbd88eb16e1a6...
comment by saagarjha · 2019-12-19 · in Make CPython segfault in 5 lines of code -
…printf line causes everything after it in the file to be recompiled without there being a need: https://github.com/rust-lang/rust/issues/47389
comment by est31 · 2019-12-11 · in Speeding Up the Rust Compiler -
…codegen on the user's computer. But that's still complex, and not necessarily much faster. See https://github.com/rust-lang/rust/issues/38913 .
comment by GrayShade · 2019-12-11 · in Speeding Up the Rust Compiler -
Worth noting that support for custom allocators in standard collections is not finalized yet: https://github.com/rust-lang/rust/issues/32838 The (awesome) bumpalo crate that you link to gets around this by providing ported implementations…
comment by dunkelheit · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig -
…I am still waiting for RFC0066[1] to be fixed. It is from 2014-05-04! Here is its GitHub Issue: https://github.com/rust-lang/rust/issues/15023 . Backstory: I started writing a relatively simple Rust program many years ago when I ran into…
comment by johnisgood · 2019-12-08 · in GCC-Rust: Rust frontend for GCC -
…again ) was found in both LLVM and GCC (they made a C reproducer, so they could test in both). See: https://github.com/rust-lang/rust/issues/54878 (rustc) https://bugs.llvm.org/show_bug.cgi?id=39282 (LLVM)…
comment by cesarb · 2019-12-08 · in GCC-Rust: Rust frontend for GCC -
…is done on collections of objects instead, the problem can be tackled more easily I think. [1]: https://github.com/rust-lang/rust/issues/53488 [2]: http://smallcultfollowing.com/babysteps/blog/2018/04/16/rust...
comment by est31 · 2019-12-03 · in Microsoft is creating a new Rust-based programming language for secure coding -
…like `Pin` would have to have been proven on its own in an ad-hoc way not covered by RustBelt. [0] https://github.com/rust-lang/rust/labels/I-unsound%20%F0%9F%... [1] https://gitlab.mpi-sws.org/iris/lambda-rust/tree/popl18
comment by lidHanteyk · 2019-11-29 · in Unsoundness in Pin -
…I'm not entirely sure yet about the impact of this one, will have to read the thread I guess. [1]: https://github.com/rust-lang/rust/issues/62149#issuecomment-...
comment by est31 · 2019-11-29 · in Unsoundness in Pin -
…not needed any more, but currently support is still in the compiler. This is a PR to remove it: https://github.com/rust-lang/rust/pull/65703
comment by est31 · 2019-11-29 · in Real hardware breakthroughs, and focusing on rustc -
…generally [1] can't be converted to a function pointer as it requires both code and state. [1] https://github.com/rust-lang/rust/issues/39817
comment by mmastrac · 2019-11-25 · in Neat Rust Tricks: Passing Closures to C -
…org/?version=stable&mode=release&edit... [1]: https://doc.rust-lang.org/src/std/f64.rs.html#724-726 + https://github.com/rust-lang/rust/blob/bc0e288ad02ef362b5a6c... Edit: Actually, I can't reproduce the author's situation on godbolt. The…
comment by Arnavion · 2019-11-12 · in Floating point oddity -
…note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
comment by gpm · 2019-11-02 · in They Might Never Tell You It’s Broken -
There is an example of indexed vecteur in the rustc source code https://github.com/rust-lang/rust/blob/master/src/librustc_i...
comment by likeliv · 2019-11-01 · in Typestates in Rust (2018) -
You can see here some discussion of that question: https://github.com/rust-lang/rust/issues/32255 https://github.com/rust-lang/rust/issues/59567
comment by winstonewert · 2019-10-31 · in Typestates in Rust (2018) -
…a particularly "fun" instance of this sort of Makefile weirdness back when we used Make for Rust... https://github.com/rust-lang/rust/blob/efec34a95a76212b2324d... (Discussed on HN: https://news.ycombinator.com/item?id=13655081 )
comment by steveklabnik · 2019-10-29 · in Evaluating Bazel for building Firefox -
…down to -ffast-math, right? Is there an equivalent in Rust? Edit: After some search I found these: https://github.com/rust-lang/rust/issues/21690 https://doc.rust-lang.org/core/intrinsics/fn.fadd_fast.html Writing a wrapper around f64 that…
comment by leni536 · 2019-10-24 · in Rust and C++ on Floating-Point Intensive Code -
…of the error, in format file.rs:line:column, eg main.rs:5:10 There are a few example errors here: https://github.com/rust-lang/rust/issues/36611 Are the annotated code snippets after the first line useless with screen readers? I wonder if…
comment by DougBTX · 2019-10-21 · in Elm 0.19.1 -
…to Rust's libstd recently for vxworks [0]. Expect it to be a bit buggy until Rust 1.42 or so. [0]: https://github.com/rust-lang/rust/pulls?utf8=%E2%9C%93&q=is%...
comment by mastax · 2019-10-10 · in VxWorks now with C++17 and Rust support, alongside Ada and SPARK -
There is an issue for that: https://github.com/rust-lang/rust/issues/54878
comment by adrianN · 2019-09-19 · in Closing the gap: cross-language LTO between Rust and C/C++ -
> Too bad it‘s so broken in LLVM :( TBF it wasn't just LLVM: in https://github.com/rust-lang/rust/issues/54878 "nikic" and "comex" provided C test cases which failed in both clang[0] and gcc[1]. Though GCC has since fixed the issue while…
comment by masklinn · 2019-09-12 · in Why is Rust slightly slower than C? -
…defined in Rust. This is even an issue for C, because `while(1) {}` is a valid in C but UB in C++. https://github.com/rust-lang/rust/issues/28728
comment by CodesInChaos · 2019-09-12 · in Why is Rust slightly slower than C? -
…the mix of unrolled loops, inlined functions and restrict annotations which triggers the issue. [0] https://github.com/rust-lang/rust/issues/54462 [1] https://github.com/rust-lang/rust/issues/54878
comment by masklinn · 2019-09-12 · in Why is Rust slightly slower than C? -
…easiest example I can find of this is in the buffered IO code [1], but there have been others [1]: https://github.com/rust-lang/rust/blob/f0b58fcf03391a91f7422...
comment by shepmaster · 2019-09-11 · in Why is Rust slightly slower than C? -
…be communicated. To express this better in the type system, Rust would need an effect system. [1] https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais...
comment by the_duke · 2019-08-30 · in Linux kernel drivers in Rust might become an option in the future -
…[2] https://kyren.github.io/2018/09/14/rustconf-talk.html [3] https://github.com/rust-lang/rust/pull/45225
comment by Twisol · 2019-08-28 · in Rust is the future, C is the new Assembly: Josh Triplett (Intel) -
…have a very fast SIMD round instruction but its behavior doesn't exactly match libc round. See https://github.com/rust-lang/rust/issues/55107 for a deeper discussion.
comment by raphlinus · 2019-08-28 · in Python rounds float values by converting them to string and then back -
…references ever alias. Things have been held up for a while on this LLVM bug, though[0]. [0] https://github.com/rust-lang/rust/issues/54878
comment by lytigas · 2019-08-27 · in Incrementing vectors -
…(LLVM equivalent of __restrict). Unfortunately, this feature is disabled due to an LLVM bug: https://github.com/rust-lang/rust/issues/54878 On the other hand, if you use the more idiomatic `&mut [u8]`, that passes the pointer and size by…
comment by comex · 2019-08-27 · in Incrementing vectors -
…issue that is not being taken seriously I think. I raised the issue about platform size in June: https://github.com/rust-lang/rust/issues/61978 and its actually gotten worse since then, significantly worse. In the 2 months since then the…
comment by svnpenn · 2019-08-21 · in Thoughts on Rust bloat -
Rust platform size has recently increased by 50%: https://github.com/rust-lang/rust/issues/61978 which puts it at over double the size of Go. Worse is seems to be no impetus to fix this. Also notable is Rust still doesnt have a Map…
comment by svnpenn · 2019-08-15 · in Rust 1.37.0 -
Depending on your profiency : - you can actually contribute to the compiler itself : https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Ais... - you can contribute to the low-level abstracting graphics library :…
comment by rvdca · 2019-08-15 · in Rust 1.37.0 -
Seems like async/await is going to slip into Rust 1.39 instead: https://github.com/rust-lang/rust/pull/63209#issuecomment-52...
comment by pietroalbini · 2019-08-15 · in Rust 1.37.0 -
…anyone else is curious, async/await isn't part of this release but should be in the next (1.38): https://github.com/rust-lang/rust/issues/62149
comment by eyeinthepyramid · 2019-08-15 · in Rust 1.37.0 -
…and secure languages, toolchains, even OS themselves into IoT, IIoT, and even RTOS worlds. [1] https://github.com/rust-lang/rust/pull/61946
comment by xvilka · 2019-08-14 · in Urgent/11 – Zero Day Vulnerabilities Impacting VxWorks -
…LLVM and GCC both miscompile the same numerical code involving mildly tricky aliasing constraints. https://github.com/rust-lang/rust/issues/54878#issuecomment-... I think I'd prefer that safety-critical code be written in languages that…
comment by dodobirdlord · 2019-08-08 · in A Boeing Code Leak Exposes Security Flaws Deep in a 787's Guts -
…disabled their use of the buggy features, Rust/LLVM was producing _numerically incorrect_ code. https://github.com/rust-lang/rust/issues/54878#issuecomment-...
comment by btown · 2019-08-07 · in A Boeing Code Leak Exposes Security Flaws Deep in a 787's Guts -
…get monomorphization-free iterator libraries, but until then Rust isn't perfect for wasm. [1]: https://github.com/rust-lang/rust/issues/46477
comment by est31 · 2019-08-02 · in Psyche: A domain specific language designed for creating WebAssembly modules -
…empty enum.[1] There is also a RFC for unions, but that doesn't seem to have gone anywere.[2] [0]: https://github.com/rust-lang/rust/issues/57012 [1]: Such as https://crates.io/crates/void which also provides helpers for safely coercing…
comment by Nullabillity · 2019-07-19 · in Notes on a Smaller Rust -
Nah. The Rust compiler's warnings are wonderful, as ever: https://github.com/rust-lang/rust/blob/master/src/librustc/i...
comment by _nhynes · 2019-07-18 · in Rust Solved Dependency Hell -
…model. It has even been relaxed recently, so you can go from a &Cell<[T]> to a &[Cell<T>]: https://github.com/rust-lang/rust/pull/61620 The same could be done for struct fields if the type system knew about it, and the whole thing could…
comment by Rusky · 2019-07-04 · in Announcing Rust 1.36.0 -
…automatic regression test to ensure it so the ability comes and goes. Here's the tracking issue: https://github.com/rust-lang/rust/issues/34902
comment by kibwen · 2019-07-04 · in Announcing Rust 1.36.0