Instant Download Structure and Interpretation of Computer Programs 2e JavaScript Edition Harold Abelson PDF All Chapters
Instant Download Structure and Interpretation of Computer Programs 2e JavaScript Edition Harold Abelson PDF All Chapters
Instant Download Structure and Interpretation of Computer Programs 2e JavaScript Edition Harold Abelson PDF All Chapters
com
https://ebookmeta.com/product/structure-and-interpretation-
of-computer-programs-2e-javascript-edition-harold-abelson/
OR CLICK BUTTON
DOWNLOAD NOW
https://ebookmeta.com/product/the-oxford-companion-to-the-brontes-
anniversary-edition-oxford-companions-alexander/
ebookmeta.com
https://ebookmeta.com/product/runes-and-astrology-symbol-and-
starcraft-in-the-northern-tradition-3rd-edition-nigel-pennick/
ebookmeta.com
https://ebookmeta.com/product/not-yet-megan-borgert-spaniol/
ebookmeta.com
Communication & Human Behavior 7th Edition Brent D Ruben
https://ebookmeta.com/product/communication-human-behavior-7th-
edition-brent-d-ruben/
ebookmeta.com
Structure and Interpretation of Computer Programs
JavaScript Edition
Structure and Interpretation of Computer Programs
JavaScript Edition
The text of this book is derived from the book Structure and Interpretation of Computer
Programs, Second Edition, 1996, (SICP) and is subject to a Creative Commons
Attribution-ShareAlike 4.0 International License (CC BY-SA). A comparison edition available
at http://sicp.sourceacademy.org indicates the changes that were made to the text. The figures
are derived from figures created by Andres Raba in 2015 and are also subject to CC BY-SA.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
The JavaScript programs in this book are derived from the Scheme programs in SICP and are
subject to the GNU General Public License v3.0. To view a copy of this license, visit
https://www.gnu.org/licenses/gpl-3.0.html.
The original image of MIT founder William Barton Rogers in section 2.2.4 is courtesy MIT
Museum.
The cover image is adapted from Le Moyen Age et la Renaissance, Paris, 1848–1851.
This book was set in Times by the authors using the LATEX typesetting system and ancillary
scripts (see https://github.com/source-academy/sicp), and was printed and bound in the United
States of America.
Names: Abelson, Harold, author. | Sussman, Gerald Jay, author. | Henz, Martin, adapter. |
Wrigstad, Tobias, adapter. | Sussman, Julie, other.
Title: Structure and interpretation of computer programs / Harold Abelson and Gerald Jay
Sussman; adapted to JavaScript by Martin Henz and Tobias Wrigstad; with Julie Sussman.
Description: Javascript edition. | Cambridge : The MIT Press, [2022] | Series: MIT electrical
engineering and computer science series | Includes bibliographical references and index.
Identifiers: LCCN 2021047249 | ISBN 9780262543231 (paperback)
Subjects: LCSH: Computer programming. | JavaScript (Computer program language)
Classification: LCC QA76.6 .A255 2022 | DDC 005.13–dc23
LC record available at https://lccn.loc.gov/2021047249
10 9 8 7 6 5 4 3 2 1
This book is dedicated, in respect and admiration,
to the spirit that lives in the computer.
“I think it’s extraordinarily important that we in computer science keep fun
in computing. When it started out, it was an awful lot of fun. Of course,
the paying customers got shafted every now and then, and after a while we
began to take their complaints seriously. We began to feel as though we
really were responsible for the successful, error-free, perfect use of these
machines. I don’t think we are. I think we’re responsible for stretching them,
setting them off in new directions, and keeping fun in the house. Fun comes
in many ways. Fun comes in making a discovery, proving a theorem, writing
a program, breaking a code. Whatever form or sense it comes in I hope the
field of computer science never loses its sense of fun. Above all, I hope we
don’t become missionaries. What you know about computing other people
will learn. Don’t feel as though the key to successful computing is only in
your hands. What’s in your hands, I think and hope, is intelligence: the ability
to see the machine as more than when you were first led up to it, that you
can make it more.”
—Alan J. Perlis (April 1, 1922–February 7, 1990)
Contents
Foreword xiii
Preface xxi
Prefaces to Structure and Interpretation of Computer Programs, 1996 & 1984 xxiii
Acknowledgments xxvii
References 567
Index 573
is not as distant from Lisp as you would think, and as this edition of Structure and
Interpretation of Computer Programs demonstrates, it is a good alternate framework
for presenting the key ideas. SICP was never about a programming language; it
presents powerful, general ideas for program organization that ought to be useful in
any language.
What do Lisp and JavaScript have in common? The ability to abstract a compu-
tation (code plus some associated data) for later execution as a function; the ability
to embed references to such functions within data structures; the ability to invoke
functions on arguments; the ability to draw a distinction (conditional execution); a
convenient universal data structure; completely automatic storage management for
that data (which seems like a no-brainer, given everything else, until you realize
that many widely used programming languages don’t have it); a large set of useful
functions for operating on that universal data structure; and standard strategies for
using the universal data structure to represent more specialized data structures.
So maybe the truth is somewhere in between the extremes that Perlis so elo-
quently posited. Maybe the sweet spot is something more like 40 functions general
enough to operate usefully on a universal data structure such as lists, but also 10
sets of 6 functions each that are relevant when we take one of 10 specialized views
of that universal data structure. This is manageable if we give good names to these
functions and specialized views.
As you read this book, please pay attention not only to the programming lan-
guage constructs and how they are used, but also to the names given to functions
and variables and data structures. They are not all as short and vivid as the names
Iverson chose for his APL functions, but they have been chosen in a deliberate and
systematic way to enhance your understanding of the overall program structure.
Primitives, means of combination, functional abstraction, naming, and conven-
tions for using a universal data structure in specialized ways by drawing distinctions:
these are the fundamental building blocks of a good programming language. From
there, imagination and good engineering judgment based on experience can do the
rest.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.