I am Lucky Today Also
-
I gave up on figuring out an algorithm to shift bits of an arbitrarily long buffer so I asked Perplexity. Its' answer was not correct but it got me started. The reworked code almost works. All that remains is getting the byte order correct. I will finish it after watching a movie.
-
I gave up on figuring out an algorithm to shift bits of an arbitrarily long buffer so I asked Perplexity. Its' answer was not correct but it got me started. The reworked code almost works. All that remains is getting the byte order correct. I will finish it after watching a movie.
htcw_bits/include/htcw_bits.hpp at master · codewitch-honey-crisis/htcw_bits · GitHub[^] This has shift_left and shift_right which work on arbitrary buffers
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
I gave up on figuring out an algorithm to shift bits of an arbitrarily long buffer so I asked Perplexity. Its' answer was not correct but it got me started. The reworked code almost works. All that remains is getting the byte order correct. I will finish it after watching a movie.
BernardIE5317 wrote:
Its' answer was not correct but it got me started
There's been numerous times where I couldn't figure out how to invoke some obscure API with little or no documentation, and some AI got me started. I never take for granted anything it comes up with will work, so I review and test everything carefully instead of blindly cutting and pasting into my code, so it does have its uses (and clearly, its limitations). Obscure APIs, or writing boilerplate code that I've written a million times before, but can't be bothered to remember at that particular instant (or to refactor once and for all into something reusable, but that's a separate matter) :-)