Readit News logoReadit News
gravel7623 commented on NaN Is Weird   brassnet.biz/blog/nan-is-... · Posted by u/freediver
munchler · 16 hours ago

    >>> my_dict[nan] = 3
    >>> my_dict[nan]
    3
Wait, how does that work if nan isn't equal to itself?

gravel7623 · 16 hours ago
I guess because the hash of an instance stays consistent (which is used to retrieve the value from the dict). The `__eq__` method must disregard the hash and return False for all nans.
gravel7623 commented on Hacking Moltbook   wiz.io/blog/exposed-moltb... · Posted by u/galnagli
gravel7623 · a month ago
> We immediately disclosed the issue to the Moltbook team, who secured it within hours with our assistance

How do you go about telling a person who vibe-coded a project into existence how to fix their security flaws?

gravel7623 commented on The Startup Graveyard   loot-drop.io/... · Posted by u/skogstokig
aeve890 · 2 months ago
Ha, almost every "New Business Idea & Product Name" is heavily focused on AI. It tracks. Everytime I present a problem to an LLM the solution is the same "use AI". Can't blame them though.
gravel7623 · 2 months ago
I hate that every single Execution Plan says has "AI-first" in it. Is this an ad?
gravel7623 commented on .gitignore Everything by Default   pliutau.com/git-ignore-ev... · Posted by u/der_gopher
gravel7623 · 6 months ago
I kinda like it, but if you come to think of it, that's just a misuse of `git add -A`. Nothing goes into a git repository unless you specifically add it, so why not just be more careful when adding files?

u/gravel7623

KarmaCake day9September 11, 2025View Original