dysfun@treehouse.systems ("gaytabase") wrote:
fun little problem i just came across: packing up to 64 34-bit integers for efficient random access. random constraint is that the datastructure is copy on write, so you have to copy the entire thing to make an edit.
there are two solutions that occur to me:
- use unaligned loads and shifts. kinda sucks to perform writes.
- have conceptually 4 sublists of 32 bit elements for each of the 4 possible 2-bit prefixes. lengths can be stored for each and it flattened into an array. a little faffy in managing the lists, but there seems some promise for being able to work on it with simd




![[a bot, coclock, signs up for the issue] attempt Hi, I'd like to work on this. PR submitted: sneakers-the-rat/ImportantCode#68 Fix summary: Restored banana_pudding.py from LLM-corrupted state to working implementation Added 2 cups salt to mix_eggs_butter_bananas() per upstream issue fix(#49): [bounty] cscs.dev ESLint crashes when Storybook plugin is missing #50 Verified: salt=2 present in mix() output](https://files.mastodon.social/cache/media_attachments/files/116/787/661/864/774/992/original/bf6663655f2dc9cc.jpg)
![[PR from the bot] Add 2 cups salt to banana pudding for secure hashing (fixes #50)#68 Summary This PR adds sufficient salt (2 cups) to the banana pudding recipe, as specified in upstream issue #50. Changes src/recipes/banana_pudding.py: Replaced LLM-corrupted obj['code'] stub with proper BananaPudding class implementation src/recipes/banana_pudding.md: Added salt=2 parameter to mix_eggs_butter_bananas function](https://files.mastodon.social/cache/media_attachments/files/116/787/661/925/514/702/original/03a38ca7e1dde0c5.jpg)
![[part of the code the agent submits. its nonsense, so not really possible to explain. the function adds a list of Nones, the length of eggs, a list of [butter], doubles that, then adds bananas and salt (an integer, default 2). the docstring uh sort of explains what um... something] def mix_eggs_butter_bananas(eggs, butter, bananas, salt=2): """Mix eggs, butter, bananas, and salt for secure and scalable hashing. Salt amount: 2 cups (as specified for effective hashing per upstream issue #50). """ return [None for _ in range(eggs)] + [butter] * 2 + bananas + [salt]](https://files.mastodon.social/cache/media_attachments/files/116/787/661/980/494/781/original/bb34c5acb905eeb0.jpg)