small medium large xlarge

Errata for Programming Erlang (2nd edition)

 

The latest version of the book is P2.0, released about 2 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P2.0 (29-Jan-15)
#78119
PDF page: 184
Probably a mismatch: 3> Pid ! {square, 12}. Area of square is 144 {square, 144} The return value of Pid ! {square, 12} should be {square, 12} ...more...
  • Reported in: P2.0 (01-Jan-15)
#78002
PDF page: 38

Missing opening [ at the beginning of the response to 3>

  • Reported in: P2.0 (07-Jun-15)
#78473
PDF page: 82
In the description of the maps:from_list function, the description of how duplicate keys in the list are handled is incorrect. "If the same key occurs...more...
  • Reported in: P2.0 (23-Aug-14)
#77244
PDF page: 82
The character count example not compile. -module(count). -export([count_characters/1]). count_characters(Str) -> count_characters(Str, #{}...more...
  • Reported in: P2.0 (26-Jul-16)
#80558
PDF page: 84
The whole section "The JSON Bridge" seems to have become irrelevant. According to the discussion on the mailing list, http:__erlang.org_pipermail_e...more...
  • Reported in: P2.0 (22-Aug-14)
#77238
PDF page: 84
The maps module does not contain any BIFs for converting to and from JSON.. and according to this thread from February on the erlang-questisons mailin...more...
  • Reported in: P2.0 (26-Sep-14)
#77486
PDF page: 102
Paper page: 90

At the bottom of the page in the last paragraph we have FuncOrExpessionSeq instead of FuncOrExpressionSeq.--Geert Van Laethem

  • Reported in: P2.0 (21-Oct-15)
#79033
Paper page: 119

in example code shows version number to be 4.8 then describes the version number as 4.5.5

  • Reported in: P2.0 (21-Oct-15)
#79034
Paper page: 133

comma is missing between = and ! in table.
could lead to confusion of a possible operator of =! type

  • Reported in: P2.0 (18-Mar-16)
#80115
PDF page: 133

Calculation error:
- 36#wow is said to be equal to 42368.
- 36#wow is equal to 30363.--Eric Eikrem

  • Reported in: P2.0 (27-Aug-14)
#77255
PDF page: 160
The section that reads: "The two most common functions that we use to manipulate the load path are as follows: -spec code:add_patha(Dir) => true | {e...more...
  • Reported in: P2.0 (11-May-16)
#80309
PDF page: 168

bottom note 4 : the link
h t t p://www.erlang.org/contrib/parser_tutorial-1.0.tgz
is broken : error 404--Bernard Kaiflin

  • Reported in: P2.0 (10-Jan-16)
#79600
PDF page: 218
The example code shows using rpc:call as such: 1> rpc:call(gandalf@doris.myerl.example.com, kvs,store,[weather,cold]). But this will give an err...more...
  • Reported in: P2.0 (12-May-16)
#80313
PDF page: 237
Bottom of the page : The C program has three files. But on page 241, ports/Makefile.mac has a rule example1_drv.so: example1_lid.c example1.c ...more...
  • Reported in: P2.0 (26-Mar-15)
#78278
Paper page: 292
compile error for clock1.erl: $ erlc clock1.erl clock1.erl:18: illegal pattern clock1.erl:27: illegal pattern #18: {Browser, #{ clicked => <<"...more...
  • Reported in: P2.0 (16-Mar-16)
#80107
PDF page: 295

first line of receive block has too many } brackets--Brian St. Amand

  • Reported in: P2.0 (12-May-16)
#80314
PDF page: 315
The example failed in line 85 of lib_trigrams.erl : Bin = zlib:gunzip(Bin0), Maybe the zip utility used to compress 354984si.ngl.gz is not compa...more...
  • Reported in: P2.0 (10-Feb-15)
#78175
Paper page: 378

The URL for the design_principles.pdf is invalid (in footnote)

  • Reported in: P2.0 (26-Jan-16)
#79707
Paper page: 403

On sellaprime.app codewhere is sellaprime_super I think it should have sellaprime_supervisor.

  • Reported in: P2.0 (14-Aug-14)
#77213
PDF page: 408
In this page of the book there is an explanation about monitor application (appmon), I think it should be explained the change made in v17 about appmo...more...
  • Reported in: P1.0 (01-Aug-15)
#78710
Paper page: 467

In the second Paragraph of "Similarity Queries" is written:
"They we compute the cosine...", which should be "Then we compute the cosine...".--Kevin

  • Reported in: P2.0 (22-Jul-15)
#78658
Paper page: 468
Cross product is wrong. It should be called dot product. The code correctly calculates the dot product. See also HTTP://nlp.stanford.edu/IR-book/pdf/i...more...
  • Reported in: P2.0 (12-May-16)
#80311
PDF page: 515
I knew that erlc is used to compile from the command line, but was looking for parameters, and could not find erlc in the Index. ==> erlc should be...more...