Better HN
topnewbestaskshowjobs
Log inSign up

jhtom

2 karma · joined May 13, 2013 (13y ago) · 2 submissions

Submissions

comment 13y ago · link · parent

Speaking about concepts perhaps Norvig post "(How to Write a (Lisp) Interpreter (in Python))" http://norvig.com/lispy.html can be useful. The concept of a dotted pair (the car and the cdr are interesting historical facts.

I wish you the best for your presentation for the Mit class, it seems interesting but perhaps it should have a link to some standard techniques like machine learning.

I am curious about the small projects, will they be available in the page of the course?

comment 13y ago · link · parent

Just a small note. In the definition of the Cons class, the iterate method is calling each time to len before proceeding, and that is terribly inefficient.

def __iter__(self): current = self

            while len(current) > 0:
                yield current.head
                current = current.tail