Peter's Dance Party

Old CS Notes

Carry Look-ahead Adder

Carry Lookahead Adder

Binary Integer Division

Integer Division

Next time I need to do binary integer division by hand I'm sure this will be useful. It could also serve as a hilarious interview question.

Lambda Calculus

Lambda Calculus

Emacs variable eval-expression-print-length

Often I'll use (pp) or (message) to inspect a data structure in elisp. For example lets say I have a list l:

(setq l '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)) (message l) => (1 2 3 4 5 6 7 8 9 10 11 12 ...)

Often times I want to see the entire list instead of the truncated version. That's where eval-expression-print-length comes in. Setting this variable to nil results in the entire list being printed.

(message "%s" eval-expression-print-length) => 12 (setq eval-expression-print-length nil) (message "%s" l) => (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)

Interesting Links for 01-19-2009

Interesting Links for 01-18-2009

Interesting Links for 01-16-2009