News for hackers. Stuff that matters.
Re:Why Pendulum had to write the most cursed "+" operator in... by jvolkman on Wednesday October 07, 2026 @05:52PM (#49999286)
I'll one up this with my hack that changes the value of `sys.platform` based on the caller: https://github.com/jvolkman/rules_pycross/blob/main/pycross/...

This is used when cross compiling binary wheels (e.g., building a macos wheel on a linux build host or vice versa).

Re:Why Pendulum had to write the most cursed "+" operator in... by ariebovenberg on Thursday October 08, 2026 @10:54AM (#50006555)
That's indeed quite the hack! Also the filename heuristic is...quite something. Certainly agrees with my experience that in build-related scripts, all notions of clean code go out the window fast.

edit: wording