Viewing profile — nicula
nicula
HN member- Joined
- Wed, Feb 19, 2025, 3:15 PM UTC
- HN karma
- 84
- Public activity
- 17 items
- HN profile
- View on Hacker News ↗
About nicula
Recent public activity
- story
- story
-
comment
Comment #43327694
Yeah it's quite interesting. I don't think I've seen this come up in anything besides that talk which is about the HFT space. However, I did hear a few times about cases where you'…
- story
-
comment
Comment #43314621
Great observations, thanks! I wrote the code that you suggested (LMK if I understood your points): https://godbolt.org/z/jW4o3cnh3 And here's the benchmark output, on my machine: h…
-
comment
Comment #43314216
Thanks for looking into it! I modified the footnote to get rid of the misleading statements regarding the 'backfiring' of the optimization. :)
-
comment
Comment #43312897
> I'm not sure how "it can go the other way around too" -- in that case (assigning to a uint8_t local variable), it seems like that particular optimisation is just not being applie…
-
comment
Comment #43311933
Some people already mentioned this in the r/cpp discussion. Small correction: 256 is not the correct number of iterations, since if all elements in that slice are even, then your 8…
-
comment
Comment #43311897
Like @wffurr mentioned, this is indeed discussed in a footnote. I just added another remark to the same footnote: "It's also debatable whether or not Clang's 'optimization' results…
-
comment
Comment #43311675
haha I didn't even notice that
- story
-
comment
Comment #43186355
> So it's not a Clang regression per se, it's an issue with the LLVM core? Yes. > If you run LLVM 18's `opt` on bytecode generated by Clang 19 and then compile it, does it also gen…
-
comment
Comment #43148998
This issue doesn't require large switch tables in order to show up. Even if you have 4 cases and the rest of them are default'ed, Clang 18 optimizes that to a switch, while Clang 1…
- story
-
comment
Comment #43148680
Oh wow didn't know about this. Somebody else posted it for me. Sorry for the dup:)
- story
- story