Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dtolnay
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
dtolnay
1mo ago
From engineering data inside Meta: yes. The effect is visible in https://x.com/dtolnay/status/2087229652293337160 .
2.
▲
by
dtolnay
6mo ago
If a piece of code does not panic in panic=unwind, then it does not panic in panic=abort either. So having coverage of panic=unwind would be sufficient to guarantee that code cannot panic. The caveat you mention with panic=abort would only
3.
▲
by
dtolnay
6mo ago
> It's not a good option for library crates, e.g. Author here. Yes, it is. It was literally made for libraries. Notably https://github.com/dtolnay/zmij and https://github.com/dtolnay/itoa
4.
▲
by
dtolnay
9mo ago
"1.e-01" is for 0.1, not 1.0.
5.
▲
by
dtolnay
9mo ago
In implementing Rust's serde_json library, I have dealt with both string-to-double and double-to-string. Of the two, I found string-to-double was more complex. Unlike formatting, correct parsing involves high precision arithmetic. Exam
6.
▲
by
dtolnay
3y ago
Try with http: http://blog.aaronballman.com/2023/12/musings-on-the-c-charte... For me the original https link fails with "SSL received a record that exceeded the maximum permissible length. Error code: SSL_ER
7.
▲
by
dtolnay
3y ago
The Information is cited as the source regarding the Google ad sales reorg. That would be this article from last week: https://www.theinformation.com/articles/google-plans-ad-sale...
8.
▲
by
dtolnay
3y ago
The best forecast I know is Sean Parent's on ADSP episode 160. [0:23:57] SP: We're also discussing internally around pending legislation around safety and security, what Adobe's response is going to be. Right now our thinking
9.
▲
by
dtolnay
3y ago
Here is the gallery of finished pieces in the artist's shop: https://orbixhotglass.com/product-category/prince-ruperts-dr... I am quite sure I saw #01 at $10k earlier today and it's now higher, so I suspect h
10.
▲
by
dtolnay
3y ago
I think about pull requests the same way: As a library maintainer, closing and empathetically conveying why a pull request is not a net benefit to the project is an order of magnitude more effort than what it takes to throw up not-well-moti
11.
▲
by
dtolnay
3y ago
Not automatic, but it already supports a measure of "how much" you depend on a project: boosting. You can boost dependencies up or down by up to a factor of 20 (e^3). The formula is explained in https://thanks.dev/
12.
▲
by
dtolnay
3y ago
Currently 2863 crates (2.6% of crates). Note that the search you linked also includes crates that only have "rust" in the description or readme, not just the crate name -- that is why it shows a much higher count.
13.
▲
by
dtolnay
3y ago
I have a non-toy multi-language project in https://github.com/dtolnay/cxx for which I have both Buck2 and Bazel build rules. On my machine `buck2 clean && time buck2 build :cxx` takes 6.2 seconds. `bazel clean
14.
▲
by
dtolnay
3y ago
https://archive.is/0OBYV
15.
▲
by
dtolnay
3y ago
I interpreted the author's characterization to be about something like: 1 if (argc <= 2) 2 puts("A"); 3 puts("B"); 4 if (argc <= 2) 5 unreachable(); 6 else 7 return puts("C&qu
16.
▲
Emitting Safer Rust with C2Rust
(immunant.com)
159 points
by
dtolnay
4y ago
|
49 comments
17.
▲
by
dtolnay
4y ago
See the explanation by the thanks.dev founder (qwerki) here: https://news.ycombinator.com/item?id=33368045
18.
▲
by
dtolnay
4y ago
NPM has an order of magnitude more packages than the other language-specific package registries. It has more packages than every other registry put together (including Maven Central, PyPI, crates.io, etc). http://www.modulecounts
19.
▲
by
dtolnay
4y ago
https://thanks.dev has a good model for this. By default they'll split your monthly contribution equally among your dependencies (and exponentially decaying among transitive dependencies) but you can go in and "boost&q
20.
▲
by
dtolnay
4y ago
I used it with great success for transpiring libyaml from C to Rust. I even set up Miri to run the upstream library's entire transpiled test suite, and the fact it passes is validation of absence of UB in the original C code. The trans
21.
▲
by
dtolnay
4y ago
Seems like it would be better to contain: compile_error!("You meant to …"); so that the install would fail and `cargo uninstall rg` wouldn't be needed.
22.
▲
by
dtolnay
4y ago
> the minute you want to do something that doesn't fit the mold, it makes things a lot harder This is not my experience at all; it's been extremely helpful for doing things outside the mold: In a work codebase that is million
23.
▲
by
dtolnay
4y ago
https://github.com/diem/diem is 387,952 lines of Rust code across 169 crates. In total there are 3 lines of unsafe code, which is less then 0.001% (1 thousandth of 1%).
24.
▲
by
dtolnay
4y ago
This is a misunderstanding of how the "loved" part of the survey works. > something like 10% of the number of people who claim to love it have ever used it for any purpose "Loved" specifically measures what fraction o
25.
▲
by
dtolnay
4y ago
I made a CLI version of a star history grapher for my own use, because I wasn't happy with the granularity of the graphs available in the various online incarnations of this. https://github.com/dtolnay/star-history
26.
▲
by
dtolnay
5y ago
> Pins are very often `Unpin`, but this isn't relevant to their function. This idea is what I've seen get a lot of people lost, but it's pretty natural. By analogy, a DANGER HIGH VOLTAGE sign doesn't itself need to be
27.
▲
Rust Foundation Announces Cloud Compute Program
(foundation.rust-lang.org)
1 points
by
dtolnay
5y ago
|
0 comments
28.
▲
Borrowing Trouble: The Difficulties of a C++ Borrow-Checker
(docs.google.com)
4 points
by
dtolnay
5y ago
|
0 comments
29.
▲
The Future of Buck
(developers.facebook.com)
7 points
by
dtolnay
5y ago
|
0 comments
30.
▲
by
dtolnay
5y ago
I would love a SIM variation of this -- where instead of uploading pictures via the frame's wifi hotspot, I could send the frame to grandparents and upload online and they'd get downloaded onto the frame via international SIM card
More ›