Better HN
topnewbestaskshowjobs
Log inSign up

Pop_-

372 karma · joined Mar 28, 2022 (4y ago) · 16 submissions

miao.dev
Submissions

1.

We found a bug in the hyper HTTP library(blog.cloudflare.com ↗)

163 points · by Pop_- · 5mo ago · 87 comments

comment 12mo ago · link · parent

I just scanned through their ToS, "pre-installed with the proprietary Linux OS". Looks not good to me lol.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

I don't know why but this really makes me laugh

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

The author has updated the title and also contacted me. But unfortunately I'm no longer able to update it so.

11.

Rust std fs slower than Python? No, it's hardware(xuanwo.io ↗)

687 points · by Pop_- · 2y ago · 240 comments

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Thanks for such a detailed introduction! This along can be made as a blog post tbh.

14.

Ask HN: How do big tech companies manage their DNS?

4 points · by Pop_- · 4y ago · 1 comment

comment 4y ago · link · parent

To my experience, it’s the integrated OCR that really pleased me as a new mac user come from linux. I basically get to treat images with text like normal paragraph. And it just get my daily work done without any issue.