HN user

paul_reiners

117 karma

I'm a professional programmer and an amateur musician and live in Minnesota.

Posts22
Comments30
View on HN
spectrum.ieee.org 18y ago

10 Great Tech Books

paul_reiners
11pts7
news.ycombinator.com 18y ago

Q about car-circularity

paul_reiners
1pts1
www1.umn.edu 18y ago

You Get What You Pay for With Online Q&A Sites

paul_reiners
2pts0
www.fraunhofer.de 18y ago

Soccer Robots Compete for the Title

paul_reiners
2pts0
www.automatous-monk.com 18y ago

Solutions to Exercises in "ANSI Common Lisp"

paul_reiners
23pts0
www.salon.com 18y ago

Nim Chimpsky: The Chimp Who Would Be Human

paul_reiners
1pts0
www.ddj.com 18y ago

Once An Algorithms Guy, Always An Algorithms Guy

paul_reiners
7pts0
www.computerworld.com 18y ago

Back to Basics: Algorithms

paul_reiners
2pts0
news.ycombinator.com 18y ago

Q about Exercise 13.3(b) in "ANSI Common Lisp"

paul_reiners
2pts1
www.artima.com 18y ago

Django Wired

paul_reiners
1pts0
news.ycombinator.com 18y ago

Q about Lisp union

paul_reiners
5pts7
dir.salon.com 18y ago

Party of One: The Loners' Manifesto

paul_reiners
4pts1
news.ycombinator.com 18y ago

Q about Exercise 10.4 in "ANSI Common Lisp"

paul_reiners
7pts10
www.businesswire.com 18y ago

SIGGRAPH’s International Animation Competition Opens to Public

paul_reiners
1pts0
www.artima.com 18y ago

Math and the Current State of Coarse-Grained Parallelism in Python

paul_reiners
4pts0
www.computerworld.com 18y ago

The Getty makes art accessible with online database

paul_reiners
4pts0
blogs.zdnet.com 18y ago

Sir Tim Berners-Lee: Semantic Web Is Open for Business

paul_reiners
4pts1
www.ddj.com 18y ago

Social Networks and Software Development

paul_reiners
1pts0
www.msnbc.msn.com 18y ago

Teaching a Computer to Appreciate Art

paul_reiners
1pts0
www.princeton.edu 18y ago

MacArthur Grant Supports Princeton Laptop Orchestra Initiatives

paul_reiners
1pts0
www.news.com 18y ago

Kurzweil: 'Exponential' Change Ahead for Games, People

paul_reiners
14pts6
www.nytimes.com 18y ago

The Indian Clerk

paul_reiners
13pts11

* Sherlock Holmes: Because he was the coolest guy ever, even if he was fictional.

* Bobby Fischer: The world had never seen such monomania before and probably never will again. (Of course, he went mad in the end.)

* Lennon and McCartney: The greatest popular music composers since the Gershwins.

* Kurt Gödel: The greatest logician of all time.

* Bach and Chopin: The greatest composers for the keyboard of all time.

Right now I'm in the middle of a study group that I started here at work. We're studying Graham's book "ANSI Common Lisp" and studying inference in particular, so we're also covering some of "Paradigms of Artificial Intelligence Programming".

After that's done, I'm going to either spend some time working on the Netflix Prize (just to learn more, not in a real attempt to win) or doing some music programming in either Lisp, using the Common Music API, or Mathematica.

Eric Raymond is an excellent writer and you can't go wrong reading this article.

Also, learn how to do mathematical proofs. I don't know what the best way to do this is. I learned from 10th-grade Euclidean geometry class. Maybe you can pick up a good book on Euclidean geometry that has a lot of exercises in it.

Finally, pick up a good book on Lisp that has a lot of exercises in it and do all the exercises in it. Winston and Horn is good. "The Little Lisper" is also good.

Q about Lisp union 18 years ago

Actually, I take back my statement that this is not set-theoretic union.

If I'm willing to accept '(a a) as representing the set '(a) when I use it as an input to union, I should be just as willing to accept '(a a b) as representing the set '(a b) when I receive it back from union.

Q about Lisp union 18 years ago

Yes, you're right. The fact that they leave the behavior of union in this case undefined in the standard is surprising to me. The fact that SBCL and GNU CLISP implement it the way they do is just bizarre to me.

I'm not sure, but I think you need to use labels, rather than flet, in this case, since local functions defined using flet cannot be recursive. At least that's how I interpret what it says on page 319.

At any rate, this solution works using labels:

  (defmacro ntimes (n &rest body)
      (let ((h (gensym))
            (g (gensym)))
        `(let ((,h ,n))
           (labels ((ntimes-local (,g) 
                    (if (> ,g 0) 
                        ,@body)
                    (if (zerop ,g)
                        nil
                        (ntimes-local (1- ,g)))))
             (ntimes-local ,h)))))
(Sorry, but again I don't know how to preserve the formatting of my code in this newsgroup.)

I guess I'm not understanding the problem then, because I thought we were not supposed to expand into a do, since the problem states:

"Define ntimes (page 167) to expand into a (local) recursive function instead of a do."

Isn't the problem asking you to write this without expanding into a do, or am I missing something here? What would be a correct solution to the problem?

Sorry about the non-pretty printing. It was nicely formatted, when I entered it (I swear). Is there something like a <code> tag I could use?

Also, not all of the error message printed. What's up with that?

I took that class from Kunen at Wisconsin in the late 80s. But I'll be damned if I can find my copy of that yellow book or remember enough to be of any help.

I have to admit that I never really did understand forcing.

It seemed like all the logic professors at UW at that time, including Kunen, were getting interested in computer science.

Kleene was still around at that time, too.

The Indian Clerk 18 years ago

I'm about half-way through it. I put it down for awhile and just started reading it again. There are nice sections on Lisp and Gödel in it. It's a good book.

The Indian Clerk 18 years ago

I haven't read Leavitt’s book on Turing, so I can't comment on it.

I have read "Alan Turing: The Enigma" by Andrew Hodges, which was excellent, both in the biographical details and the mathematical details.

The Indian Clerk 18 years ago

I agree with you that it does draw a lot of attention to the personal, emotional relationships of Hardy, Ramanujan, Littlewood, and so on. But, for someone who has already read and loved "A Mathematician's Apology" and studied math in college, reading about these personalities can be quite fascinating. Of course, since this is a novel, it's hard to say what is surmise, what is fact, and what is invented. I never was able to find much biographical material on Hardy (I was only able to find 2 pictures of him (this was in the 80s before Google)).

I need to read the book on Ramanujan you mentioned, though.

So, religiosity = c / wealth for some constant c, with the U.S. (and Kuwait) as an outlier. Why am I not surprised, yet somehow disappointed?

The Indian Clerk 18 years ago

This book has been out for awhile, but I just started reading it and am having a hard time putting it down. If you're interested in G.H. Hardy or Ramanujan, you should definitely read it. Of course, it's a novel, but the portrait of Hardy is fascinating.

I would ask for a lot more money to finish the job (a lot more) and say "take it or leave it". If he isn't willing to pay the extra money, I would just walk away.

There's nothing to be gained from debating with a troublesome manager who doesn't understand programming. You would just be wasting your time.