Brutkey

Lynnesbian :bune_ylw:
@lynnesbian@fedi.lynnesbian.space
github feature proposal simulator

Bloplang Pull Request #48592: Add zip method to iterators gh_closed_1​gh_closed_2​gh_closed_3​

bean_red This is a proposal to add the zip method to iterators. This would allow you to join two iterators together, alternating between results from both. E.g. tens.zip(hundreds) would give [10, 100, 20, 200, 30].... This has been the most requested feature on our wishlist for seven months, and my initial implementation here provides a 12% speed up on the test_cases/thousands_of_types.blop. πŸ‘πŸ‘ 532 πŸ‘ŽπŸ‘Ž 12 πŸš€πŸš€ 226 πŸ‘€πŸ‘€ 114 πŸ˜•πŸ˜• 3

bot BlobBot says: Hi red_bean bean_red ! Thanks for opening a pull request to Bloplang! I've run your code, and found this: Maximum regression: 0.05%. Maximum improvement: 12.03%. I've assigned curly_brace curly_brace to approve your code. Don't forget to leave a star! πŸ‘πŸ‘ 221 πŸš€πŸš€ 179 πŸ‘€πŸ‘€ 12

bot BlopBot added the "BlopBot Seal of Approval" "No regressions" labels.

rct_guest I've never heard of "zip" before. Googling it, it seems to be a compression algorithm? Not sure what this has to do with iterators. I suggest naming it interleave instead. πŸ‘πŸ‘ 23 πŸ‘ŽπŸ‘Ž 34

bean_red zip seems to be pretty widely accepted. For example, Rust and Python call it zip. πŸ‘πŸ‘ 27 πŸ˜•πŸ˜• 1

green_is_my_pepper yeah i've never head of zip before. interleave is too long tho, how about weave πŸ‘πŸ‘ 54 πŸ‘ŽπŸ‘Ž 27

↕↕️ This comment was marked as off-topic.

ℹℹ️ curly_brace requested 1 change.

curly_brace This for loop could be better expressed as a map. πŸ˜•πŸ˜• 1
acnl_smile How about spritz? In the idiolect of English spoken by my Discord server, spritz is very commonly used to refer to mixing things together. EDIT If you're going to laugh react, please leave a comment explaining why. πŸ‘πŸ‘ 5 πŸ˜†πŸ˜† 143

green_is_my_pepper wtf is a spritz πŸ‘ŽπŸ‘Ž 5 πŸ˜•πŸ˜• 26

↕↕️ This comment was marked as off-topic.

↕↕️ This comment was marked as off-topic.

curly_brace Please don't leave "+1" comments. They pollute the thread and send useless emails. Use the react feature to add thumbs ups to the pull request if you want to express your approval. πŸ‘πŸ‘ 118 πŸ‘ŽπŸ‘Ž 4

gynecologist who else is here from reddit? πŸ‘ŽπŸ‘Ž 122 πŸ˜†πŸ˜† 16 πŸ˜•πŸ˜• 33
[ Click to load 281 additional comments ] *

curly_brace That's a bug with your Linux distribution’s zip command, which has nothing to do with Bloplang. Open a thread on the Fedora forums to discuss that, although they'll probably tell you that Fedora 32 is EOL. πŸ‘πŸ‘ 66

rct_guest Okay, so we have 17 votes in favour of zip, 12 for weave, 5 for spritz, and somehow only 2 for interleave. Oh, and 1 each for sprinkle, intersperse_at_least_two_iterators_with_each_other, and sum. I'm beginning to suspect botting. πŸ‘πŸ‘ 7 πŸ˜•πŸ˜• 12

curly_brace Hey read bean bean_red - this pull request is out of sync with main. Could you rebase on top of the twelve thousand commits that have occurred since you opened this? Thanks! πŸ‘πŸ‘ 63 πŸš€πŸš€ 2

gale whats stoping this from being merged? can we get an eta πŸ‘πŸ‘ 12 πŸ˜•πŸ˜• 2

rct_guest It's mostly a debate on the name to use. I'm not sure why people aren't voting for interleave. I've provided numerous arguments as to why it's the obvious option, and I've even linked a conversation with ChatGPT 4-o proving that it makes the most sense. Sigh. πŸ‘πŸ‘ 2 πŸ˜•πŸ˜• 70 πŸ˜†πŸ˜† 11

ℹℹ️ Pull request #53223 "Add interleave method to iterators" was marked as a duplicate of this one.

↕↕️ This comment was marked as off-topic.

πŸ€–πŸ€– No activity detected for 90 days. πŸ‘ŽπŸ‘Ž 121 πŸ˜•πŸ˜• 89

Stalebot πŸ€–πŸ€– marked this pull request as stale.

Conversation locked and limited to contributors.