HNHacker News
TopNewBestAskShowJobs

QuaternionsBhop

90 karma · joined June 1, 2024

submissionscomments
QuaternionsBhop··on Saving another 100TB of RAM
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.
QuaternionsBhop··on Nvidia announces native GPU programming in Rust
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.
QuaternionsBhop··on A Stupid Idea for AI Alignment We Came with by Looking at Specification Gaming
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.
QuaternionsBhop··on I want extern "fil-C"
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.
QuaternionsBhop··on Multiple Mouse Cursors in Wayland
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!
QuaternionsBhop··on Rewriting Bun in Rust
Jokes require mutual context. You failed to create a joke because you did not ensure the prerequisites were met.
QuaternionsBhop··on Zig's new bitCast semantics and LLVM back end improvements
Is pasting em-dashes everywhere some kind of inside joke?
QuaternionsBhop··on Minecraft: Java Edition 26.2, the first version with Vulkan 1.2
Minecraft (and Java) just runs great on Linux. I've personally experienced a 30% performance improvement from Windows.
QuaternionsBhop··on AURpocalypse now: a look at the recent AUR attacks
I was not affected
QuaternionsBhop··on SpaceX to buy Cursor for $60B
Elon flees to Mars*
QuaternionsBhop··on Klondike Solitaire game for curses in 5k of C
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.
QuaternionsBhop··on Firefox Merges Support for Vulkan Video Decoding
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.
QuaternionsBhop··on The Third Hard Problem
Base conversions are easy, but which off by one is it? base 4 or base 6?
QuaternionsBhop··on Leaving the Physical World
This comment is AI, presumably AI translated
QuaternionsBhop··on Linux gaming is faster because Windows APIs are becoming Linux kernel features
No, I believe it's futex_waitv
QuaternionsBhop··on Linux gaming is faster because Windows APIs are becoming Linux kernel features
> I wouldn't recommend using Nvidia on Linux though.

This was true 4 years ago, but is outdated knowledge now. Nvidia used to disallow distributing drivers with distro images, but they have since made agreements with some popular distros. If the distro image you download includes drivers or you know how to install them, the proprietary drivers work really well.

QuaternionsBhop··on Linux gaming is faster because Windows APIs are becoming Linux kernel features
> You can't rely on server-side detection either, because some of the cheats are so advanced they go to great lengths to "behave" like a highly skilled human player would with their aiming

Shouldn't that be the goal of anti cheat? That cheating is indistinguishable from expert gameplay? Seems to me like these companies are just trying to avoid implementing proper infallible server-authoritative gameplay by offloading the cheat detection to the untrustworthy client, and then trying to lock down the client to make it trustworthy.

QuaternionsBhop··on Researchers discover advanced language processing in the unconscious human brain
This happens to me too. Often my dream plows forwards with unsound assumptions and I wake up believing something confusing.
QuaternionsBhop··on A more efficient implementation of Shor's algorithm
If only AI safety research had a mechanism this clear. "We have proof that building the machine will kill everybody, so get to work making a provably safe version."
QuaternionsBhop··on The future of everything is lies, I guess: Where do we go from here?
This is called the AI Stop Button Problem. Computerphile has a great video on this (featuring Robert Miles) which explains why this is not a reliable solution to AI getting out of control. When the AI is smarter than all of humanity combined, the only real solution is for the AI to not get out of control in the first place.
QuaternionsBhop··on Return of the Obra Dinn: spherical mapped dithering for a 1bpp first-person game
The final dithering effect appears to be mis-sampled and is no longer 1 bit per pixel
QuaternionsBhop··on Avoiding Trigonometry (2013)
I also invented this! There is cool stuff like angle adding and angle doubling formulas, but the main downside is that you can only directly encode 180 degrees of rotation. I use it for FOV in my games internally! (With degrees as user input of course.) In order to actually use it to replace angles, I assume you'd want to use some sort of half angle system like quaternions. Even then you still have singularities, so it does have its warts.
QuaternionsBhop··on My “grand vision” for Rust
> Reasoning about code written this way makes me experience profound fatigue and possess an overwhelming desire to return to my domicile;

I didn't understand that you were making fun of verbosity until the word 'domicile'. I must be one of those insufferable people who expresses simple thoughts with ornate vocabulary...

The article was comprehensible to me, and the additional function colorings sound like exciting constraints I can impose to prevent my future self from making mistakes rather than heavy winter gear. I guess I'm closer to the target audience?

QuaternionsBhop··on I'm helping my dog vibe code games
The fact that LLMs pick from the most likely tokens is really on its side here when the objective is putting together a plausible continuation of random characters.
QuaternionsBhop··on Rust--: Rust without the borrow checker
Fighting the borrow checker is something you do when you're learning Rust. After you learn how to design things that way in the first place, it's just there to keep you honest.
QuaternionsBhop··on Constructing the Word's First JPEG XL MD5 Hash Quine
Webp was not as exciting. JpegXL has cool features like 20% improved lossless jpeg recompression and progressive decoding. Not to mention all the cool stuff used in the writeup like implementing a font in the prediction engine.
QuaternionsBhop··on Ask HN: How would you set up a child’s first Linux computer?
> visual coding impeded their ability to learn text-based coding

As a former child, my opinion is the opposite. I learned visual programming with Lego Mindstorms NXT in ~2008, and later developed an interest in text programming on Roblox in ~2012. It's my belief that my fluency with concepts like control flow and values output from one part of the program serving as inputs for another part of the program were largely transferable to text-based programming. Learning a first programming language is 30% learning syntax, and 70% learning programming.

QuaternionsBhop··on Myths Programmers Believe about CPU Caches (2018)
Since the CPU is doing cache coherency transparently, perhaps there should be some sort of way to promise that an application is well-behaved in order to access a lower-level non-transparent instruction set to manually manage the cache coherency from the application level. Or perhaps applications can never be trusted with that level of control over the hardware. The MESI model reminded me of Rust's ownership and borrowing. The pattern also appears in OpenGL vs Vulkan drivers, implicit sync vs explicit sync. Yet another example would be the cache management work involved in squeezing out maximum throughput CUDA on an enterprise GPU.
QuaternionsBhop··on Ergonomic errors in Rust: write fast, debug with ease, handle precisely
I have never seen anything use Result<_,&'static str>, that is such an anti-rust thing to start with.
QuaternionsBhop··on The issue of anti-cheat on Linux (2024)
How about with homomorphic encryption?
Page 1 of 2Next →