Mon Aug 23 21:05:07 CEST 2010

Book about embedded C

I wonder if it would make sense to start writing abook about embedded
C.  Maybe it's best to start with cataloging the tricks I already


  * Memory allocation patterns
     - static memory
     - stacks and queues
     - pure trees and inline structs
     - DAGs and refcounting
     - garbage collection and Scheme
     - hiding circular deps (the "environment" pattern / S combinator)

  * Data structure traversal
     - callbacks with context
     - generic fold w. callback
     - generators
     - for MACROS to avoid context objects

  * Debugging
     - gdb as an application console