Cute elisp trick I haven't seen before: point works as a place with setf!
;; Move point to the beginning of the buffer
(setf (point) (point-min))
;; Equivalent:
(goto-char (point-min))
miniblog.
Related Posts
Today I learnt about a cunning trick used by GNU diff to make Myer's algorithm faster: https://github.com/mitsuhiko/similar/issues/15
If you do an initial pass to find items that only occur on one side, you can discard them before diffing! They'll always be shown as changed.
I'm beginning to suspect that the act of writing a blogging engine is just to trick yourself into writing a few blog posts.
Fascinating deep dive on Twitch deliberately constructing a 10GiB array to reduce the number of GC cycles in Go: https://blog.twitch.tv/en/2019/04/10/go-memory-ballast-how-i-learnt-to-stop-worrying-and-love-the-heap/
(This trick is no longer necessary in the new Go 1.19 apparently, as it's added a GOMEMLIMIT environment variable.)