wr
hn
Top
New
Best
Ask
Show
Jobs
Back
Q
QuaternionsBhop
Joined 2 years ago
Karma
90
Submissions
40
Member since
Jun 1
View on Hacker News
Recent submissions
Comment · 1 month ago
Plus it's limited to 65k entries. Perhaps a btree where parent nodes sum the weights of child nodes would work well. Using the input hash scaled by total weight, a binary search lookup would compute the partial sums for comparison on the fly. Adding/removing a node would only update the ~8 parents when the btree order is 4. Eytzinger layout and struct-of-arrays could be used to improve cache locality during lookup. This does mean an add/remove could drastically change the overall mapping, perhaps that's why consistent hashing is used instead.
Comment · 1 month ago
There are two types of programmers: the pragmatists who see programming as a chore and would gladly never write a line of code again given the right tools, and the gardeners who don't want their enjoyable and rewarding garden-tending work taken away from them.
Comment · 1 month ago
This is mentioned in the article. Your mistake is that you've assumed that the intelligence has an innate survival instinct, or an aversion to "harm", which is simply not guaranteed for something not honed by millions of years of evolution.
Comment · 2 months ago
This would also mean that you wouldn't need unsafe{} to call into the Fil-C ffi. The majority of unsafe{} in (non pure-rust) cargo dependencies is calling C ffi. Rust + Fil-C is a great match that fills a particular niche, I'd love to see it happen.
Comment · 3 months ago
I've always thought this was a cool idea. It's obviously been on the minds of Wayland protocol developers since the beginning, otherwise it wouldn't be possible!
Comment · 3 months ago
Jokes require mutual context. You failed to create a joke because you did not ensure the prerequisites were met.
Comment · 4 months ago
Is pasting em-dashes everywhere some kind of inside joke?
Comment · 4 months ago
Minecraft (and Java) just runs great on Linux. I've personally experienced a 30% performance improvement from Windows.
Comment · 4 months ago
I was not affected
Comment · 4 months ago
Elon flees to Mars*
Comment · 4 months ago
I recently wrote klondike in Rust after getting frustrated with bugs in my friend's LLM-written version. I highly recommend it as a recreational programming exercise, the first 4 hour blitz filling out the types was a blast. Later, trying to make as many invalid moves unexpressable by the given types as possible was a fun challenge. I ended up with a 232 byte struct for the board state with all values stack-allocated. The only way to make it considerably smaller would probably be to encode card permutations.
Comment · 4 months ago
This is great news for nvidia users on Linux. It means that they don't need to install a VAAPI compatibility tool like nvidia-vaapi-driver. I also hope to see Vulkan Video supported in the open source userspace nvidia driver NVK soon too.
Comment · 5 months ago
Base conversions are easy, but which off by one is it? base 4 or base 6?
Comment · 5 months ago
This comment is AI, presumably AI translated
Comment · 5 months ago
No, I believe it's futex_waitv