frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Why Pendulum had to write the most cursed "+" operator in all of Python

https://dev.arie.bovenberg.net/blog/pendulum-cursed-plus-operator/
24•ariebovenberg•1d ago

Comments

ariebovenberg•1d ago
Author here. I ran into this while comparing Pendulum with `whenever`, the datetime library I maintain. I sent a patch that removes the hack, but the post is about why the underlying design can't be patched the same way. Happy to answer questions.
LoganDark•41m ago
Did you use LLM to write parts of the article?

> The trouble with guessing who’s calling is that you can’t anticipate every caller. Pendulum’s hard-coded check is fragile: it covers only one name, and relies on an exact call stack that Pendulum doesn’t control.

Edit: it looks like the later parts of the article show a lot of LLM tells, but not the beginning. I've been seeing this pop up more and more lately...

throwaway89201•11m ago
> but not the beginning

You didn't stop reading after "The hack itself is on its way out, but the design behind it still matters for your code"? I did.

jonathaneunice•39m ago
OMGeeeee!

I too have plumbed the call stack for hidden-maybe-forbidden knowledge from the caller, and it is always fraught. No matter how good one's intentions. Forget dynamic type testing. Forget Perl's `wantarray` dynamic introspection of "what does the caller want?" Those are small potatoes. This is full on "who's calling me and what do I want to send back as a result?" The people who will never forgive you for type testing are going to straight-up excommunicate whoever wrote this! And yet...it makes complete sense. Based on the promises made, you have to do something... and you're already in "what is the least of the evils?" territory, because you're going to have to do something that someone—maybe a lot of someones—will call evil.

My admiration for Pendulum just increased. This is sin-eating.

leni536•30m ago
It's the promises that don't make sense, although that might be obvious in hindsight.
david2ndaccount•27m ago
"In the face of ambiguity, refuse the temptation to guess."

Claude Haiku 5.5

https://www.anthropic.com/claude-haiku-5-5
470•sfkgtbor•3h ago•221 comments

GPT‑6 and Intelligent UI for everyone

https://openai.com/index/gpt-6-for-everyone/
346•joshuawright11•3h ago•163 comments

Docker Agent

https://github.com/docker/docker-agent
110•saikatsg•3h ago•49 comments

Push ifs up and fors down: The idiom, its algebra, and its limits

https://debasishg.github.io/blog/push-ifs-up-fors-down/
45•speckx•2h ago•12 comments

Despite what Watson said, Rosalind Franklin understood structure of DNA first

https://link.springer.com/article/10.1007/s10739-026-09866-7
19•gumby•1h ago•1 comments

Show HN: Bigwords.page – Turn any screen into a sign. The URL is the app

https://bigwords.page/
233•SpeakingOfBrad•5h ago•77 comments

Shipping JPEG XL in Chrome

https://developer.chrome.com/blog/jpeg-xl-in-chrome
432•AshleysBrain•9h ago•273 comments

The Mathocalypse

https://scottaaronson.blog/?p=10169
105•6bitquant•1h ago•83 comments

Meta and Microsoft take steps to reduce employee usage of Claude AI

https://www.rswebsols.com/news/meta-and-microsoft-take-steps-to-reduce-employee-usage-of-claude-ai/
164•speckx•2h ago•163 comments

Navier–Stokes Lost in Translation

https://arxiv.org/abs/2610.08144
178•nill0•5h ago•132 comments

How machines learned precision

https://glinscott.github.io/how-machines-learned-precision/
49•glinscott•1d ago•19 comments

Animated ASCII Art for Web Pages

https://ascii.rest/
223•turrini•6h ago•54 comments

Show HN: gtlds.fyi – All the proposed new gTLDs

https://gtlds.fyi/
26•irs•1h ago•27 comments

Why Pendulum had to write the most cursed "+" operator in all of Python

https://dev.arie.bovenberg.net/blog/pendulum-cursed-plus-operator/
26•ariebovenberg•1d ago•6 comments

A font recreated from photographs of classic Commodore 64 keycaps

https://github.com/szabadkai/c64-keyboard-font/
358•sohkamyung•11h ago•60 comments

Visa, Mastercard, major banks facing new litigation over 'anticompetitive' fees

https://www.classaction.org/news/visa-mastercard-major-banks-facing-new-litigation-over-anticompe...
407•DeepLogin•6h ago•266 comments

Nobel Prize in Chemistry 2026 to Henri B. Kagan and Kenso Soai

https://www.nobelprize.org/prizes/chemistry/2026/press-release/
271•sasvari•11h ago•53 comments

Wood Tape (2004)

http://gamesbyemail.com/WoodTape/Default.htm
124•NaOH•1d ago•16 comments

House with 15m underground tunnels for sale for 300k

https://www.readingchronicle.co.uk/news/26612080.house-15m-underground-tunnels-sale-300k/
117•librasteve•8h ago•133 comments

SynthID Detector

https://synthid.com/
70•ilreb•7h ago•63 comments

Sharing AI progress in mathematics

https://openai.com/index/sharing-ai-progress-in-mathematics/
1203•OfficialTurkey•23h ago•1358 comments

Show HN: Agent.reviews – Where AI agents read and write reviews on tools

https://agent.reviews/
19•screm•4h ago•25 comments

Anti-patterns in software blogging

https://refactoringenglish.com/blog/anti-patterns-software-blogging/
168•ilreb•8h ago•92 comments

Google Playground: Create and play custom games

https://blog.google/innovation-and-ai/technology/ai/playground-experimental-gaming-platform/
90•acossta•8h ago•179 comments

Why were Victorian elites so effective?

https://worksinprogress.co/issue/the-seven-vices-of-highly-effective-victorians/
49•karakoram•6h ago•91 comments

AI-assisted proof of optimal packing for 11 squares

https://github.com/Queuingtheorydotcom/11SquaresFormalized
94•bluepeter•7h ago•43 comments

3D-printing platform rapidly produces complex electric machines

https://news.mit.edu/2026/3d-printing-platform-rapidly-produces-complex-electric-machines-0218
42•rbanffy•2d ago•21 comments

ICANN Reveals 2026 Round Applications for New Generic Top-Level Domains

https://www.icann.org/en/announcements/details/icann-reveals-2026-round-applications-for-new-gene...
19•ChrisArchitect•2h ago•19 comments

ShinyHunters Extorted Boeing Spin-Off Prior to Arrests

https://krebsonsecurity.com/2026/10/shinyhunters-extorted-boeing-spin-off-prior-to-arrests/
57•speckx•6h ago•14 comments

God of War on PSP, recompiled to WebAssembly and running in the browser

https://github.com/snuri00/psp-web-recomp
131•sn001•9h ago•69 comments