Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rostayob
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
31.
▲
by
rostayob
4y ago
It could be that when splicing to /dev/null (which I'm doing), the kernel knows that they their content is never witnessed, and therefore no copy is required. But I haven't verified that
32.
▲
by
rostayob
4y ago
Yes, this all makes sense, although like everything splicing-related, it is very subtle. Maybe I should have mentioned the subtleness and dangerousness of splicing at the beginning, rather than at the end. I still think the man page of vmsp
33.
▲
by
rostayob
4y ago
Actually, from re-reading the man page for vmsplice, it seems like it _should_ depend on SPLICE_F_GIFT (or in other words, it should be safe without it). But from what I know about how vmsplice is implemented, gifting or not, it sounds like
34.
▲
by
rostayob
4y ago
(I am the author of the post) I haven't digested this comment fully yet, but just to be clear, I am _not_ using SPLICE_F_GIFT (and I don't think the fizzbuzz program is either). However I think what you're saying makes sense
35.
▲
by
rostayob
4y ago
It's not written in perl, it's written in C, and it uses splice() (one of the syscalls discussed in the post).
36.
▲
How fast are Linux pipes anyway?
(mazzo.li)
698 points
by
rostayob
4y ago
|
200 comments
37.
▲
Xournalpp++ – closs-platform, open source note taking software
(xournalpp.github.io)
199 points
by
rostayob
4y ago
|
87 comments
38.
▲
Programming Parallel Computers
(ppc.cs.aalto.fi)
15 points
by
rostayob
5y ago
|
2 comments
39.
▲
Since 2021-09-15 Nixpkgs has merged ~17k PRs
(twitter.com)
1 points
by
rostayob
5y ago
|
1 comments
40.
▲
How Goedel's Proof Works
(quantamagazine.org)
3 points
by
rostayob
5y ago
|
0 comments
41.
▲
Building a quality USB-C microphone
(youtube.com)
1 points
by
rostayob
5y ago
|
1 comments
42.
▲
Epic Megagrant to Develop SDL Next-Gen Rendering API
(patreon.com)
4 points
by
rostayob
5y ago
|
0 comments
43.
▲
How to Build an Igloo
(youtube.com)
1 points
by
rostayob
5y ago
|
0 comments
44.
▲
Factorio in Lieu of Resumes
(twitter.com)
3 points
by
rostayob
5y ago
|
0 comments
45.
▲
by
rostayob
5y ago
I've been using this script for years, and it works great: https://mazzo.li/posts/autoscreen.html It's very much like eternal terminal, but requires no upfront setup apart from having screen installed on the
46.
▲
Mimalloc: Free List Sharding in Action [pdf]
(microsoft.com)
3 points
by
rostayob
5y ago
|
0 comments
47.
▲
Backing up WhatsApp data through the multi-device web client
(mazzo.li)
3 points
by
rostayob
5y ago
|
0 comments
48.
▲
Remote, encrypted ZFS storage server with NixOS
(mazzo.li)
5 points
by
rostayob
5y ago
|
1 comments
49.
▲
by
rostayob
5y ago
Thanks for the info. By the way, your writing on floating point arithmetic is very informative -- I even cite a message of yours on FMA in the post itself!
50.
▲
by
rostayob
5y ago
Ah, regarding edge cases: the only edge cases I do not handle are infinities and the origin. In my case these are both uninteresting: we deal with points from panoramic images, so those both make no sense. I did want to deal with 0s in eith
51.
▲
by
rostayob
5y ago
(I'm the author) You're right, I should have specified -- it is glibc 2.32-48 . This the source specifying how glibc is built: https://github.com/NixOS/nixpkgs/blob/97c5d0cbe76901da0135b0... . I
52.
▲
Speeding up atan2f
(mazzo.li)
245 points
by
rostayob
5y ago
|
103 comments
53.
▲
Beating the L1 cache with value speculation
(mazzo.li)
157 points
by
rostayob
5y ago
|
53 comments
54.
▲
by
rostayob
5y ago
> The only option is when all TU are given at the same time to the compiler Exactly -- which is the case here. But implementing such a cross cutting implementation would probably be annoying, which is what I wanted to convey with > I
55.
▲
by
rostayob
5y ago
I am not advocating static. I'm advocating for looking at what the compiler outputs when surprising behavior is encountered. The example is extracted from a larger piece of code, and I reported the minimal case as-is. If anything, the
56.
▲
by
rostayob
5y ago
Thanks, that's good to know!
57.
▲
by
rostayob
5y ago
Yes, see last few paragraphs of the post, in which I also speculate why GCC doesn't infer that there is only one compilation unit.
58.
▲
by
rostayob
5y ago
Author here -- just to be clear, I agree that marking the variable as const is the "right" thing to do here. I reported the investigation as-is because removing a static declaration made the code slower, which I then narrowed down
59.
▲
by
rostayob
5y ago
Author here -- I agree that const is better. The perf difference I encountered was due to the static keyword though, which is why the blog post talks about that specific issue.
60.
▲
When static makes your C code 10 times faster
(mazzo.li)
201 points
by
rostayob
5y ago
|
108 comments
More ›