A recent release of Free Pascal has a rather interesting behaviour for its list implementation. Lists grow additivitely (rather than multiplicatively) above 128MiB, trading off computational complexity for trying to avoid out-of-memory issues!
https://wiki.lazarus.freepascal.org/User_Changes_3.0.4#TList_auto-growth
miniblog.
Related Posts
I've started using DNSControl for configuring DNS for my personal domains and it's been delightful. Declarative DNS!
I get comments (the DSL is just JS), history (it's in git) and trivial rollback! I've switched my DNS provider to Hetzner (which is free!) to use this.
I've now worked on several systems where the JSON was so big that avoiding pretty-printing was a performance win!
I eventually learned that there's a 'correct way up' for USB A cables. The two small holes should be on top.
Tragically not all power adapters get this right, even for name brands. My ability to get the cable right first time still isn't much better than 50%!