97
submitted 1 week ago* (last edited 1 week ago) by Umechan@hexbear.net to c/technology@hexbear.net

Do they honestly expect me to believe that there wasn't a more appropriate way to abbreviate "cumulative maximum" than cummax? Imagine the headaches the inventor of the world's first Python powered sexbot will suffer when they realise that the method name cummin has already been taken.

top 28 comments
sorted by: hot top new old
[-] invalidusernamelol@hexbear.net 10 points 6 days ago* (last edited 6 days ago)

I regret to inform you that pandas is based on R and R had the names first

Technically (according to the docs) it was originally proposed in 1988

[-] Umechan@hexbear.net 5 points 6 days ago

They're still responsible for adopting the functions without renaming them.

[-] invalidusernamelol@hexbear.net 5 points 6 days ago* (last edited 6 days ago)

You never rename a function, no matter how bad it is lol. There's been a multi-year fight on the Python Forums about re.match being confusing since it anchors the expression to the start of the string while some other languages use match to search the whole string.

I propose that they deprecate cumsum and instead provide an alternative spelling sumcum since that will group it with the other sum functions in the language server autocomplete options

Of course this applies to the related functions maxcum, mincum, and prodcum

[-] meler@hexbear.net 6 points 6 days ago
[-] Umechan@hexbear.net 2 points 6 days ago

Matlab? Is that the scientific socialist alternative to matplotLIB ?

And don't call them cumtrapz. Regardless of their unusual and risky sexual behaviour, you know very well that they all have names.

[-] cockmushroom@reddthat.com 2 points 5 days ago

Always thought matlab was closed source and paid for

[-] ChaosMaterialist@hexbear.net 2 points 6 days ago

Oh god I'm Cumulative Minimum!

[-] trompete@hexbear.net 26 points 1 week ago

I'll defend this. No amount of funny connotations would get me to rename an otherwise perfectly good function name. And not out of a childish desire for mischief like you lot, just out of general principle.

[-] trompete@hexbear.net 9 points 6 days ago

Seriously, I will never rename a thing just because it has a little cum on it.

[-] Rom@hexbear.net 25 points 1 week ago

I'M DELETING YOU, DADDY!πŸ˜­πŸ‘‹

β–ˆβ–ˆ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] 10% complete.....

β–ˆβ–ˆβ–ˆβ–ˆ]]]]]]]]]]]]]]]]]]]]]]]]]]] 35% complete....

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ]]]]]]]]]]]]]]]] 60% complete....

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ] 99% complete.....

🚫ERROR!🚫 πŸ’―TrueπŸ’― Daddies are irreplaceable πŸ’–I could never delete you Daddy!πŸ’– Send this to ten other πŸ‘ͺDaddiesπŸ‘ͺ who give you πŸ’¦cummiesπŸ’¦ Or never get called ☁️squishy☁️ again❌❌😬😬❌❌ If you get 0 Back: no cummies for you πŸš«πŸš«πŸ‘Ώ 3 back: you're squishyβ˜οΈπŸ’¦ 5 back: you're daddy's kittenπŸ˜½πŸ‘ΌπŸ’¦ 10+ back: DaddyπŸ˜›πŸ˜›πŸ’•πŸ’•πŸ’¦πŸ‘…πŸ‘…

[-] cockmushroom@reddthat.com 1 points 5 days ago

Is this hornypasta?

[-] segfault11@hexbear.net 21 points 1 week ago

fr, "cummax()"? a more sensible API designer would call it "goon()"

[-] RION@hexbear.net 10 points 6 days ago

β˜οΈπŸ€“ cummax is a distinct kink subculture!

[-] dadarobot@lemmy.ml 11 points 1 week ago
[-] Umechan@hexbear.net 9 points 1 week ago* (last edited 1 week ago)

From what little I know about the devs, I expect they already created a function called goon() as an abbreviation of something mundane like "generate one-tenth of number" and just divides a number by 10.

[-] Umechan@hexbear.net 16 points 1 week ago

Standard Python is guilty of this too. Who the fuck abbreviates "standard deviation" as std? At least Python's inventor has the excuse that he's Dutch.

[-] GaveUp@hexbear.net 9 points 6 days ago

Python programmers when you make a symbol name longer than 5 characters

maddened

[-] invalidusernamelol@hexbear.net 2 points 5 days ago* (last edited 5 days ago)

item = obj.get_item()

long long mv_NEW_API_ItemGetter_st = *IMPL_obj_ref->NEW_itemGetter_st()

Don't get me started on c++ name mangling

[-] CupcakeOfSpice@hexbear.net 5 points 6 days ago
#include <cstd.h>

using namespace std;
[-] radio_free_asgarthr@hexbear.net 15 points 1 week ago

If you think that's bad, you should see how much cum functions numpy has.

[-] Umechan@hexbear.net 15 points 1 week ago

I can't help but read numpy as numpty unless it's capitalised as NumPy. Why is Python such an unserious language? The 16-18 year olds I learned PHP and SQL with 20+ years ago, always sremoveded when one of the teachers talked about "queries" or the website's "backend". The instructors would have probably had a stroke if they had to teach them about cum functions.

[-] ClathrateG@hexbear.net 10 points 1 week ago* (last edited 1 week ago)

sremoveded

Hexbear hasn't solved the Sremovedhorpe problem? smdh

[-] invalidusernamelol@hexbear.net 4 points 5 days ago

We're Sremovedhorpe maximalists here

[-] cockmushroom@reddthat.com 3 points 5 days ago

What's the removed string?

[-] ClathrateG@hexbear.net 4 points 5 days ago* (last edited 5 days ago)

the N word in what I quoted, C word in the rest of the comment

[-] miz@hexbear.net 12 points 1 week ago* (last edited 1 week ago)

cumprod

what Isn'treal uses to try to get the semen in time

[-] an_engel_on_earth@hexbear.net 11 points 1 week ago

use polars, its much faster. Unfortunately it still has the cum methods but theres an underscore in the middle if that makes it better.

[-] Speaker@hexbear.net 8 points 6 days ago

Definitively makes it worse.

this post was submitted on 28 Apr 2026
97 points (100.0% liked)

technology

24350 readers
197 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 5 years ago
MODERATORS