Computer Things

Archives
Subscribe
  Back to the email
C
cben
October 23, 2025, morning

Great overview of this field! One other use I've seen, is simply coloring each identifier uniquely, to help see dataflow at a glance. Apparently first introduced in KDevelop in 2009 (also under the name "semantic highlight" — https://zwabel.wordpress.com/2009/01/08/c-ide-evolution-from-syntax-highlighting-to-semantic-highlighting/), spread via https://medium.com/@evnbr/coding-in-color-3a6db2743a1e post to emacs (https://github.com/Fanael/rainbow-identifiers, https://github.com/ankurdave/color-identifiers-mode) and there are a bunch of VSCode extensions too (e.g. https://marketplace.visualstudio.com/items?itemName=KevinGhadyani.vscode-colormate, I've used several but don't remember which one has good/bad performance...)

P.S. I'll also mention https://blog.brownplt.org/2018/06/11/philogenic-colors.html which is a neat algorithm to pick colors that are as non-similar as possible. That's not a stable hash, but may be useful for other uses here?

Reply Report
Powered by Buttondown, the easiest way to start and grow your newsletter.