Wednesday, November 26, 2008
Tuesday, September 09, 2008
Book 28: The Elementary Particles (Houellebecq)
Excellent modern fiction. Too much graphic sex, but some excellent philosophy.
Book 27: Ha'penny (Walton)
Very good Farthing sequel. A couple of characters are the same, heroine is of the same type as Farthing's.
Wednesday, July 09, 2008
Book 26: Irresistible Revolution (Claiborne)
Very good activist Christian stuff. "Do small things with great love."
Book 25: Out of the Silent Planet (Lewis)
Surprisingly good. With Lewis you rarely escape the feeling of being preached to, and he seems to be fighting a battle with some old ideas for which Weston's a stand-in (check Wikipedia), but on the whole it was fairly cool.
Thursday, June 12, 2008
Book 23: The Monsters of St. Helena (Hansen)
Pretty good story about Napoleon in exile. Not as weird as Hansen's other stuff, and not as interesting either.
Book 22: Perlman's Ordeal (Hansen)
Good story about a hypno-therapist in early-20c London. Gets kind of weird.
Monday, May 26, 2008
Book 21: A History of Violence (Wagner)
Good graphic novel. Can now see why Cronenberg did the movie.
Friday, May 16, 2008
Book 19: Mr B. Gone (Barker)
OK horror. Most books bring you in by putting the protagonist in jeopardy. This one tries to put you in jeopardy, but it's not convincing. Angel/demon negotiations were pretty cool.
Friday, May 02, 2008
Book 16: Watch Your Back (Westlake)
Decent Dortmunder novel. Don't know who that support group at the end were, though!
Tuesday, April 29, 2008
Book 14: Disunited States of America (Turtledove)
Pretty good. Alternate-worlds adventure. Kind of juvenile.
Book 13: Aristoi (Williams)
Very irritating. Annoying protagonist and poorly-fleshed-out world. The fork thing was cool, though.
Thursday, April 17, 2008
Book 11: Butcher Bird (Kadrey)
Grotesque fantasy: piercings, drugs, and Dante. Free download from Tor.
Book 10: Old Man's War (Scalzi)
Good space adventure. Some cool ideas, and an engaging protagonist. Free download from Tor.
Friday, March 28, 2008
Book 9: The Devil in a Forest (Wolfe)
Medieval Wolfe. What is his obsession with boxes of sand? Short Sun books have it too! Seriously, good book. I wouldn't have gotten the twist had he not discussed it at the end. Keep track of everyone's weapons!
Book 8: Slave Nation (Blumrosen)
American revolutionaries endorse slavery to ensure success of their revolution.
Wednesday, March 19, 2008
Book 7: The Golden Ocean (O'Brian)
Nautical story in mid-18th century. All the great things from the Aubrey/Maturin series, condensed. Very very good.
Thursday, March 13, 2008
Thursday, January 31, 2008
Book 4: Blood Meridian (McCarthy)
Good. Relentlessly violent western. Unsuccessful stabs at philosophy. Imprisoned: leave your people and you may die.
Book 2: The Ladies of Grace Adiue (Clarke)
Very good. Fairy stories in the vein of Jonathan Strange and Mr. Norrell, with mostly happy endings. And a pig.
Monday, January 07, 2008
2008 Reading List
I plan to keep track of the books I read in 2008 (like I did in 2006). My goal is, again, to read fifty books this year.
Scheme: Through the List Once
The simplest way to compute the average of the numbers in a list is:
- compute the sum of the numbers in the list
- compute the length of the list
- divide the sum by the length, giving the average
sum and len defined as (define (sum l) (foldl 0 + l))
(define (len l) (foldl 0 (lambda (x y) (+ 1 y)) l))then we can compute the average as: (define (two-pass-average l)
(cond
((null? l) 0)
(else (/ (sum l) (len l)))
)
)This solution is correct, but it walks the list twice (once to compute the sum and once to compute the length). If we add a couple of accumulators and a facade function, we can compute the average with one list pass, like this:(define (one-pass-average len-acc sum-acc l)
(cond
((and (null? l) (= 0 len-acc)) 0)
((null? l) (/ sum-acc len-acc))
(else (one-pass-average (+ 1 len-acc) (+ (car l) sum-acc) (cdr l)))
)
)
(define (average l) (one-pass-average 0 0 l))The drawback to the one-pass method is that we've lost the nice definition of sum and len in terms of foldl. I wonder if we can restore it?
Subscribe to:
Comments (Atom)