HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Pop_-

no profile record

Submissions

We found a bug in the hyper HTTP library

blog.cloudflare.com
163 points·by Pop_-·20 hari yang lalu·87 comments

Rust std fs slower than Python? No, it's hardware

xuanwo.io
687 points·by Pop_-·3 tahun yang lalu·240 comments

comments

Pop_-
·8 bulan yang lalu·discuss
I just scanned through their ToS, "pre-installed with the proprietary Linux OS". Looks not good to me lol.
Pop_-
·2 tahun yang lalu·discuss
The github icon on the site directs to the author’s own page, and I couldn’t find any repository for the site, which makes me curious why do they even put the github link? Just for a follow?
Pop_-
·3 tahun yang lalu·discuss
I don't know why but this really makes me laugh
Pop_-
·3 tahun yang lalu·discuss
Switching to non-default allocator does not always brings performance boost. It really depend on your workload, which requires profiling and benchmarking. But C/C++/Rust and other lower level languages should all at least be able to choose from these allocators. One caveat is binary size. Custom allocator does add more bytes to executable.
Pop_-
·3 tahun yang lalu·discuss
It's a known issue for AMD and has been tested by multiple people, and by the data provided by the author. It's fair to pin this problem to AMD.
Pop_-
·3 tahun yang lalu·discuss
The root cause is AMD's bad support for rep movsb (which is a hardware problem). However, python by default has a small offset when reading memories while lower level language (rust and c) does not, which is why python seems to perform better than c/rust. It "accidentally" avoided the hardware problem.
Pop_-
·3 tahun yang lalu·discuss
It's not stating python is faster than c in general. This is just one very specific case where non-page-aligned memeory reading on AMD is involved.
Pop_-
·3 tahun yang lalu·discuss
Disclaimer: The title has been changed to "Rust std fs slower than Python!? No, it's hardware!" to avoid clickbait. However I'm not able to fix the title in HN.
Pop_-
·3 tahun yang lalu·discuss
The author has updated the title and also contacted me. But unfortunately I'm no longer able to update it so.
Pop_-
·3 tahun yang lalu·discuss
Immutable doesn’t mean it cannot be updated. It just means that updates are happening without touching the same copy. This CoW-ish style is what they’re selling.
Pop_-
·4 tahun yang lalu·discuss
Thanks for such a detailed introduction! This along can be made as a blog post tbh.