8 ms·
Overview and Introduction to Lisp (1986) [video]
- tosh 9y agoI love the direct start on why "Computer Science" and "Geometry" are not ideal at conveying what they stand for.
- cup-of-tea 9y agoI love that too. It's a wonderful teaching style where you get another piece of information for free along with the primary lesson. It makes it stick so much better too because you have more connections in your brain. It's similar to how I succesfully learnt French grammar which was to learn English grammar at the same time. I came out with twice the knowledge and something which is much more than the sum of its parts.
- cup-of-tea 9y agoThis series is brilliant. Why don't they teach computer science this way any more? I was so disappointed to learn that MIT switched from Scheme to Python in Programming 101.
- yorwba 9y agoTheoretically, all the same concepts could be taught in Python as well, but I doubt they are doing that. Many of the more mind-bending things that are made relatively easy in Scheme due to the uniform syntax and small core actually become much more complex to do for Python (e.g. writing a self-interpreter).
- bitwize 9y agoThe reason why is because in the 80s it was useful to build up programs from scratch. So you could build an introductory course around that and even use an arcane language like Scheme, which the students are bound to almost never encounter in real-world usage, to illustrate the principles. These days, to teach someone real-world software development, you have to show them how to find and use a library that does what they want, or maintain an already-existing code base -- use cases for which Python is a much better fit. Building a program up from scratch is almost never done.
- hjek 9y ago> an arcane language like Scheme, which the students are bound to almost never encounter in real-world usage Posted on a site running on MzScheme.
- vram22 9y ago>> an arcane language like Scheme, which the students are bound to almost never encounter in real-world usage >Posted on a site running on MzScheme. Posted on a site running MzScheme, that probably tens, if not hundreds of thousands of people, read often, get useful info from, that is of help to them in the real world, and that many people get jobs from.
- erikj 9y agoThis shift of focus from fundamental computer science to "real-world software development" training seems to be short-sighted and more appropriate for a vocational school or a coder bootcamp rather than a place like MIT.
- dragonwriter 9y agoIn the 1980s, people used libraries and maintained already existing code bases in "real-world software development", too. Computer science education isn't just vocational training for software development gruntwork, though.
- brudgers 9y agoYes. As Perlis put it: 54. Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy. Unlike Scheme, Python requires extensive research of the documentation in order to get the correct syntax and semantics even for the simple code in SICP. It's not just simple facts like operator precedence, it's the conceptual baggage of statements versus expressions. It's the one true way of iteration rather than recursion. It's the arbitrary distinctions of a core language, built in functions, a standard library and PiP. And Python has objects just because. But everything isn't an object. SICP was an introductory programming class (though obviously being used at MIT allowed certain assumptions).
- fulafel 9y ago"[...] Costanza asked Sussman why MIT had switched away from Scheme for their introductory programming course, 6.001. This was a gem. He said that the reason that happened was because engineering in 1980 was not what it was in the mid-90s or in 2000. In 1980, good programmers spent a lot of time thinking, and then produced spare code that they thought should work. Code ran close to the metal, even Scheme -- it was understandable all the way down. Like a resistor, where you could read the bands and know the power rating and the tolerance and the resistance and V=IR and that's all there was to know. 6.001 had been conceived to teach engineers how to take small parts that they understood entirely and use simple techniques to compose them into larger things that do what you want. But programming now isn't so much like that, said Sussman. Nowadays you muck around with incomprehensible or nonexistent man pages for software you don't know who wrote. You have to do basic science on your libraries to see how they work, trying out different inputs and seeing how the code reacts. This is a fundamentally different job, and it needed a different course. [...]" (From http://wingolog.org/archives/2009/03/24/international-lisp-conference-day-two http://wingolog.org/archives/2009/03/24/international-lisp-c...)
- cup-of-tea 9y agoSurely the best engineers writing code for cars and aeroplanes are not programming like this? MIT is teaching people to be web devs.
- sokoloff 9y agoOne of the most common complaints about MIT CS (from outsiders and hiring managers) is that it’s not practical enough. There’s very little “applied” industry CRUD-type programming in the curriculum. I think this is a good thing, but also lament the changes in 6.001.
- msla 9y agoIf courses were less expensive, they could afford to be less practical. Maybe this wouldn't quiet the hiring managers, but it's easier to tell someone to screw off when what you're selling isn't a huge investment which has been built up to be vitally important to justify that pricetag.
- vram22 9y ago>This series is brilliant. Why don't they teach computer science this way any more? I was so disappointed to learn that MIT switched from Scheme to Python in Programming 101. Does anyone know why they did that? I did read about it around the time, but do not remember reading about the reasons. As a Pythonista, and one interested in Lisp, I'd like to know. Update: Okay, I was going sequentially and did not at first see a few answers (sibling comments) below. Still, if anyone else has any insights, interested to know more.
- PricelessValue 9y agoIt's ridiculous. My university tried to switch the CS program from C/C++ ( OS, networking, etc ) and Scheme ( functional, programming languages, etc ) to java and there was a mass movement against it and we kept the "traditional" languages. I don't know why there is such a movement in academia to dumb down everything.
- 0x445442 9y agoOne reason might be because their (academia's) customers demand a return on investment. And that return is difficult to realize when Recruiter Joe is screening you for a job and asking how many years of "The Java" you've had. Don't get me wrong, this is in no way an argument against what you said. I'm just offering up a possible answer.
- erikj 9y agoTheir demands should be fulfilled by vocational schools, not universities.
- qilo 9y agoThis is from MIT OCW course Structure and Interpretation of Computer Programs [1] [1] https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/ https://ocw.mit.edu/courses/electrical-engineering-and-compu...
- mattkellyshow 9y agoA really moving and inspirational quote from the opening of SICP: "A computational process is indeed much like a sorcerer's idea of a spirit. It cannot be seen or touched. It is not composed of matter at all. However, it is very real. It can perform intellectual work. It can answer questions. It can affect the world by disbursing money at a bank or by controlling a robot arm in a factory. The programs we use to conjure processes are like a sorcerer's spells. They are carefully composed from symbolic expressions in arcane and esoteric programming languages that prescribe the tasks we want our processes to perform."
- ra88it 9y agoMore than anything else, that paragraph is what kept me coming back when I first started learning to program and struggled mightily. I lugged that huge book around in my book bag for months, trying and failing to fully grok one of the earlier chapters, until I found a professor who was willing to help me with it. Ultimately we (the professor and I) were able to do a one semester independent study focusing on the material from SICP. I used to read and re-read that paragraph. I read it aloud to my parents and to girlfriends, trying to find somebody to share my awe.
- adamc 9y ago<3 Sometimes it is hard to find others who share an appreciation of the beauty of mathemtics or computing. People look at me funny when I say programming is every bit as much an art as writing a poem. Almost any human activity can be an art.
- lisper 9y ago> writing a poem On that analogy, Lisp is like French. Other languages are like German. (And before you downvote me please note: I am a native German speaker.)
- mooss 9y agoThat's funny because I am a native French speaker and I find German to be a very pleasing language to speak out loud. The sonorities are oddly satisfying to me. Please note that I am nowhere near fluent in German. It just feels great, especially the way words can agglutinate to form comically long words, while still transporting meaning.
- Legogris 9y agoAnother fun introduction to Lisp: http://landoflisp.com/ http://landoflisp.com/
- tromp 9y agoAt 1:05:20 one can see a bug where (average 1.5 (/ 2 1.5)) evaluates to 1.3333 rather than 1.4166 Nitpicking aside, I would have loved to have this sorcerer among my CS professors!
- junke 9y agoNote that in the very next slide, the value 1.41667 is actually there, as the next tried value. (defun average (x y) (/ (+ x y) 2)) (defun iterate (start) (loop repeat 3 for val = start then (average val (/ 2 val)) collect (list val (float val)))) (iterate 4/3) ((4/3 1.3333334) (17/12 1.4166666) (577/408 1.4142157)) (iterate 3/2) ((3/2 1.5) (17/12 1.4166666) (577/408 1.4142157)) Not sure if this is really a software bug, maybe a slide preparation bug.
- qwerty456127 9y agoFor a person who loves Scala, Haskell and Python and have heard a lot about LISP (and even uses a DIY LISP notation to serialize some stuff in some projects) yet didnt't have time to actually study LISP yet... In what parts can LISP or Scheme be better than Haskell as a programming language from the practical point of view? I.e. why should I choose to code a program in LISP rather than in Haskell or some other functional language?
- mark_l_watson 9y agoI have been programming Lisp languages since about 1980, and in the last six years have become a Haskell enthusiast (but still learning). For what it’s worth, my opinion is that Haskell is a Lisp. When I am writing pure Haskell code (algorithms, not touching the external world) working in Emacs, it feels like my workflow is very similar to using Common Lisp or Scheme. If you like Haskell, then you have found a good home.
- pjmlp 9y agoYou should check the paper "Why calculating is better than scheming", from Phil Wadler.
- moocowtruck 9y agoi have and i'm still not seeing why calculating is better than scheming. it also lays into lack of lazy evaluation, but haven't we determined over time in haskell that lazy by default has it's own tradeoffs? Could you maybe break it all down for us ? thanks
- kqr 9y agoWhen you want there to be a lot of moving parts that are easy to swap out and change and develop as the end user, while using it, pick Lisp. When you want the design to be fixed and predictable and easy to develop for the developer, before the program runs, pick Haskell.
- gekkonier 9y ago
- smoyer 9y agoA great video from a great course ... not much has changed since it was recorded in 1986. (yikes - how I remember the hair-dos from those days)
- leoc 9y agoIs there anyone out there who might be able to persuade Gerry Sussman to do a HN AMA? That would be great.
- simdiab 9y agoHow did they display the lecture slides on the in-classroom television in those days?
- pjmlp 9y agoMost likely using overhead projectors. It was quite some "fun" doing the printouts, and playing around to get them to display properly.
- vram22 9y agoGood question and answer. >It was quite some "fun" doing the printouts, and playing around to get them to display properly. Ha ha, good one. I never had to do it (or had the privilege of doing it, depending on one's point of view), but saw it being done some (as a junior), for internal or client presentations at companies where I worked earlier. Another name for it was "transparencies", IIRC. Ugh. Fiddly stuff. Something like the difference between writing articles or books on paper (or typewriter) versus using a wordprocessor or text editor, with all the attendant slowness and rework in the former cases.
- ilovegrimson69 9y agoNote the statement about geometry teachers disliking inductive definitions at 01:03:02 https://www.youtube.com/watch?v=XYKRVNQ_MqE&t=1h3m5s https://www.youtube.com/watch?v=XYKRVNQ_MqE&t=1h3m5s And then the same comment by another MIT professor 22 years later at 00:45:12 https://www.youtube.com/watch?v=SXR9CDof7qw&t=45m12s https://www.youtube.com/watch?v=SXR9CDof7qw&t=45m12s
- peonicles 9y agoThe entire series of 20 lectures (uploaded by MIT) is available here: https://www.youtube.com/watch?v=2Op3QLzMgSY&list=PLE18841CABEA24090 https://www.youtube.com/watch?v=2Op3QLzMgSY&list=PLE18841CAB...
- Divver 9y agoMy First CS class at Berkeley (CS61A) was the last semester (Fall 2010, my first semester of college) where it was taught it in Scheme. After that they apparently switched the class to python. My professor was Brian Harvey whose doctoral advisor at MIT was one of the authors of the SICP book we used for the class. It was a good book. One of the few CS textbooks I actually read. Many CS books are pretty badly written imo. But there are a few that I consider very well written. This book was one of them.
- Divver 9y agoAs a side note, Scheme and parenthesis hell when writing code on the midterms.... Also car caar cdr cddr etc etc (you can theoretically nest as deeply as needed) hahaha that class...
- krylon 9y ago> Scheme and parenthesis hell when writing code on the midterms.... Writing code on paper sucks in many (all?) languages. At least the ones I have tried. Python might actually have an advantage on that front, Haskell, too.
- Divver 9y agoYeah I agree with you. But scheme especially when you have code like this: (letrec ((even? (lambda (n) (if (zero? n) #t (odd? (- n 1))))) (odd? (lambda (n) (if (zero? n) #f (even? (- n 1)))))) (even? 88)) The level of nesting can get rediculous. Writing that on a midterm is harder than Python or java. I’d say Python is nicest when writing out code.