Monthly links 2024-04

Every dunder method in Python

Trey Hunner wrote a helpful article about special methods built into Python. Comparing two objects with x == y will actually call x.__eq__(y) which is nice to know in case one wants to modify said behaviour.

A Deep Look Into Golang Profile-Guided Optimization (PGO)

I once used UPX to reduce file size of a program I wrote after compiling it. Thanks to Yahya SayadArbabi’s article, I learned I could not only improve the file size but also execution time without having to rewrite my code.

If every person on Earth aimed a laser pointer at the Moon at the same time, would it change color?

Fascinating and good read on XKCD’s “what if?” where it goes beyond comics to provide an in-depth explanation on certain questions. I was aware of space probes using solar sails to navigate through space, but I hadn’t considered the possibility of pushing the Moon away from Earth. With light. Theoretically.

Timeline of the xz open source attack

I guess everyone who works in tech has heard of the XZ backdoor. I’ve seen many different articles on how it seems to work, but this one by Russ Cox was quite interesting, as it shows the timeline, including the different parties that were involved.