@iateyourgranny Just like a, which is not assigned a value either, Its a formal parameter of sum. It will be difined when you call sum. For instance: (sum-int 1 5) will evaluate to 1+2+3+4+5 == 15. (In this case, a will be 1 and b will be 5).
I absolutely love how that last dude, after being answered by The Sussman, enters in a deep, deep meditation as the camera zooms off. He is totally immersed in the universe, and the universe is becoming one with him; he had a glimpse of reaching Satori.
I had tried that out ... ; also didn't fully work (and I wondered about that, since this here is MIT too) . Now I'm at standard common lisp (SBCL); maybe I give another try to the MIT-scheme ... :
Actually then I gave a second try to mit-scheme, and found that it actually works; I prefer this now and have done useful stuff with it already too ...
But I found a hack on the net to use vi (and the screen-program) instead of the emacs-editor, to emulate some sort of slime-like environment; that made part of the difference ...;
seems to be quite some good language ! (mit-scheme)
Anyway, thanks for clearing this up, I can now Scheme happily. If you like the Lisp syntax, and want to check out other interesting languages, I highly recommend Prolog.
The SWI-Prolog is free software, and can be found on their webpage.
@chiefthegreat You can sudo apt-get install mit-scheme from a Ubuntu related distro and it works perfectly. That interpreter should be available on many flavors or Linux.
keep spirit MIT :D
NewKeepSharing31 1 week ago
This has been flagged as spam show
Mulher Dinossauro Dá a Luz a um Bebê Adulto
Procurem no youtube por: "Gigante Dá a Luz"
victorldf100 1 month ago in playlist MIT 6.001 Structure and Interpretation, 1986
Thanks for the great video
pjojin0 1 month ago
Very awesome
TheSanovita 1 month ago
awesome
MyDavidsun 1 month ago
thanks for the video!!
andreeaweed 1 month ago
but b wasn't defined in the iterative implementation of SUM, or was it?
iateyourgranny 1 month ago
@iateyourgranny "b" is the ubber bound, its just a number.
YouDabian 1 month ago
@YouDabian *upper
YouDabian 1 month ago
@YouDabian uh-huh, and where is its value defined?
iateyourgranny 1 month ago
@iateyourgranny Just like a, which is not assigned a value either, Its a formal parameter of sum. It will be difined when you call sum. For instance: (sum-int 1 5) will evaluate to 1+2+3+4+5 == 15. (In this case, a will be 1 and b will be 5).
YouDabian 1 month ago
@iateyourgranny It seems like you're right there. I think the definition is wrong, instead of:
(define (sum term a next) ...
It probably should have been:
(define (sum term a next b) ...
Like the recursive version.
YouDabian 1 month ago
Mantap, Good Video!!
ngeliatduit 2 months ago
It's great
karimfaidh 2 months ago in playlist MIT 6.001 Structure and Interpretation, 1986
good video, very informative
Flusercom 2 months ago 5
Nice video Thumb up
Spasatcom 2 months ago 5
It's funny to see just how little has changed since 1986 to present time as far as general structure goes.
DroidooNetwork 2 months ago
I absolutely love how that last dude, after being answered by The Sussman, enters in a deep, deep meditation as the camera zooms off. He is totally immersed in the universe, and the universe is becoming one with him; he had a glimpse of reaching Satori.
felipecotti 3 months ago 5
Thumb up if you see a bug in the listing at 19:00
DovletTatlok 4 months ago 3
Thank you MIT for posting such quality material. Even though this is 25 years old, going over this material is still incredibly illuminating.
eatme690808 6 months ago
Damn sound quality!
mahcuz 8 months ago
It's hilarious how easy it is to translate this into Prolog.
Perhaps they are secret fans?
Also, thanks for showing a secret (dirty) way of doing loops recursively. :D
KillaHaakon 2 years ago
Look up drscheme, and then google for sicp for drscheme and download/install that
tcrayford 2 years ago
Does anyone know a lisp-compiler that runs on a today linux, which can actually work like that ?
I just find that it's not replicable anymore: Have maybe 6 lisp's here, and none of them really works ...
chiefthegreat 2 years ago
search MIT Scheme
maybe you will get something. =)?
Dynamics18 2 years ago
I had tried that out ... ; also didn't fully work (and I wondered about that, since this here is MIT too) . Now I'm at standard common lisp (SBCL); maybe I give another try to the MIT-scheme ... :
Which one gives more freedom to the programmer ?
chiefthegreat 2 years ago
@chiefthegreat
Did tcrayford's suggestion work?
So far I've just used prolog, and I'd like to use LISP, as they aren't really the same at all. (They have similar syntax though)
KillaHaakon 2 years ago
Actually then I gave a second try to mit-scheme, and found that it actually works; I prefer this now and have done useful stuff with it already too ...
But I found a hack on the net to use vi (and the screen-program) instead of the emacs-editor, to emulate some sort of slime-like environment; that made part of the difference ...;
seems to be quite some good language ! (mit-scheme)
chiefthegreat 2 years ago
The code shown in these videos perfectly run on MIT Scheme. This is Scheme dialect of Lisp not Common Lisp.
oakenshield1 2 years ago
Yes, your'e right; I verified that then too ... .
Anyhow the built-in editor keeps you from beeing productive; that's why I use "vi" and "screen" to work around ...
chiefthegreat 2 years ago
@chiefthegreat
Heathen!
Emacs is superior! :p
Anyway, thanks for clearing this up, I can now Scheme happily. If you like the Lisp syntax, and want to check out other interesting languages, I highly recommend Prolog.
The SWI-Prolog is free software, and can be found on their webpage.
KillaHaakon 2 years ago
@chiefthegreat You can sudo apt-get install mit-scheme from a Ubuntu related distro and it works perfectly. That interpreter should be available on many flavors or Linux.
eatme690808 6 months ago