miniblog.

How do you calculate the length of a singly-linked list that may be cyclic? CLHS includes a nice implementation: https://clhs.lisp.se/Body/f_list_l.htm
Emacs command of the day: eww-search-words, bound to M-s M-w. Do a web search for the text in the current region using the built-in browser.
Blogged: Searching A Million Lines Of Lisp
Emacs command of the day: facemenu-set-face, bound to `M-o o'. This lets you set faces on plain text, great for experiments and prototypes.
It's remarkable how much of Emacs' byte-compiler optimiser is unchanged from 1992!
Explaining suggest.el to new users has sometimes been tricky. I've added a slew of examples:
Photo
Announcing refs.el! An Emacs package for finding all the callers of a function, or all the references to a variable:
Photo
Squashing commits is great for s/w, but it perhaps not for blog posts. Seeing old drafts is valuable. Choosing granularity is hard though.
I'm impressed by Airbnb: they rejected my PR, but in a really friendly, supportive way:
"Your objects are special and they deserve special treatment." The moldable GTInspector deconstructed https://www.humane-assessment.com/blog/the-moldable-gtinspector-deconstructed #pharo
Today I learnt that ert has a ton of useful features from the results buffer! E.g. press `b' to see a backtrace:
Emacs 25.1 has added a generators! https://github.com/emacs-mirror/emacs/blob/emacs-25.1/lisp/emacs-lisp/generator.el In true lisp style, it's just a library :)
TIL: Bower is no longer maintained: https://github.com/reactjs/redux/issues/944#issuecomment-154858804 (I'm happily using npm+webpack these days anyway)
I am fascinated by Unison: https://unisonweb.org/2015-05-07/about.html#post-start — it's structured editing, immutable codebases, *and* parallel programming! Seems viable.
Here's a novel approach to programming fonts: ligatures! https://github.com/tonsky/FiraCode I think it'd take a while to get used to.
Photo
Showing 4,156-4,170 of 7,584 posts