This document describes the changes made to the STDLIB application.
Several type specifications for standard libraries were wrong in the R14B01 release. This is now corrected. The corrections concern types in re,io,filename and the module erlang itself.
Own Id: OTP-9008
When several clients accessed a Dets table
simultaneously, one of them calling
Own Id: OTP-8856
When several clients accessed a Dets table simultaneously, inserted or updated objects were sometimes lost due to the Dets file being truncated. (Thanks to John Hughes.)
Own Id: OTP-8898
When several clients accessed a Dets table
simultaneously, modifications of the Dets server's
internal state were sometimes thrown away. The symptoms
are diverse: error with reason
Own Id: OTP-8899
If a Dets table was closed after calling
Own Id: OTP-8903
Cover did not collect coverage data for files such as
Yecc parses containing include directives. The bug has
been fixed by modifying
Own Id: OTP-8911
If a Dets table with fewer slots than keys was opened and then closed after just a lookup, the contents were no longer well-formed. This bug has been fixed. (Thanks to Matthew Evans.)
Own Id: OTP-8923
In a supervisor, when it terminates a child, if that child happens to have exited fractionally early, with normal, the supervisor reports this as an error. This should not be reported as an error.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8938 Aux Id: seq11615
The documentation filelib:wildcard/1,2 now describes the character set syntax for wildcards.
Own Id: OTP-8879 Aux Id: seq11683
Buffer overflows have been prevented in
Own Id: OTP-8892
Using a float for the number of copies for
Own Id: OTP-8915
New ETS option
Own Id: OTP-8922 Aux Id: seq11658
The default maximum number of slots of a Dets table has been changed as to be equal to the maximum number of slots. (Thanks to Richard Carlsson.)
Own Id: OTP-8959
reference() has been substituted for ref() in the documentation.
Own Id: OTP-8733
The ms_transform now warns if the fun head shadows surrounding variables (just like the warnings you would get for an ordinary fun in the same context).
Own Id: OTP-6759
ets:select_reverse/{1,2,3} are now documented.
Own Id: OTP-7863
Large parts of the
Most notable improvement is a reader optimized rwlock
implementation which dramatically improve the performance
of read-lock/read-unlock operations on multi processor
systems by avoiding ping-ponging of the rwlock cache
lines. The reader optimized rwlock implementation is used
by miscellaneous rwlocks in the runtime system that are
known to be read-locked frequently, and can be enabled on
ETS tables by passing the
There is also a new implementation of rwlocks that is not optimized for readers. Both implementations interleaves readers and writers during contention as opposed to, e.g., the NPTL (Linux) pthread rwlock implementation which use either a reader or writer preferred strategy. The reader/writer preferred strategy is problematic since it starves threads doing the non-preferred operation.
The new rwlock implementations in general performs better in ERTS than common pthread implementations. However, in some extremely heavily contended cases this is not the case. Such heavy contention can more or less only appear on ETS tables. This when multiple processes do very large amounts of write locked operations simultaneously on the same table. Such use of ETS is bad regardless of rwlock implementation, will never scale, and is something we strongly advise against.
The new rwlock implementations depend on atomic operations. If no native atomic implementation is found, a fallback solution will be used. Using the fallback implies a performance degradation. That is, it is more important now than before to build OTP with a native atomic implementation.
The
The
The changed API of the
Note: When building for x86, the
Own Id: OTP-8544
Some Built In Functions (BIFs) from the module erlang was never made autoimported for backward compatibility reasons. As local functions now override autoimports, new autoimports is no longer a problem, why the following BIFs are finally made autoimported: monitor/2, monitor/3, demonitor/2, demonitor/3, error/1, error/2, integer_to_list/2, list_to_integer/2.
Own Id: OTP-8763
The Erlang code preprocessor (
Own Id: OTP-8470
The abstract type 'fun' could not be printed by the
Erlang pretty printer (
Own Id: OTP-8473
The function
Own Id: OTP-8567
The documentation of
Own Id: OTP-8628 Aux Id: seq11576
The shell's line editing has been improved to more resemble the behaviour of readline and other shells. (Thanks to Dave Peticolas)
Own Id: OTP-8635
The Erlang code preprocessor (
Own Id: OTP-8665 Aux Id: OTP-7810
The module binary from EEP31 (and EEP9) is implemented.
Own Id: OTP-8217
The erlang pretty printer (
Own Id: OTP-8501
The Erlang code preprocessor (
Own Id: OTP-8503
Added function
Added functions to create and extract escripts. See
The undocumented function
Record fields has been annotated with type info. Source files as been adapted to fit within 80 chars and trailing whitespace has been removed.
Own Id: OTP-8521
The Erlang parser no longer duplicates the singleton
type
Own Id: OTP-8522
A regular expression with many levels of parenthesis could cause a buffer overflow. That has been corrected. (Thanks to Michael Santos.)
Own Id: OTP-8539
When defining macros the closing right parenthesis before the dot is now mandatory.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8562
Some properties of a compiled re pattern are defined to allow for guard tests.
Own Id: OTP-8577
Local and imported functions now override the auto-imported BIFs when the names clash. The pre R14 behaviour was that auto-imported BIFs would override local functions. To avoid that old programs change behaviour, the following will generate an error:
Doing a call without explicit module name to a local function having a name clashing with the name of an auto-imported BIF that was present (and auto-imported) before OTP R14A
Explicitly importing a function having a name clashing with the name of an autoimported BIF that was present (and autoimported) before OTP R14A
Using any form of the old compiler directive
If the BIF was added or auto-imported in OTP R14A or later, overriding it with an import or a local function will only result in a warning,
To resolve clashes, you
can either use the explicit module name
The
change makes it possible to add auto-imported BIFs
without breaking or silently changing old code in the
future. However some current code ingeniously utilizing
the old behaviour or the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8579
The undocumented, unsupport, and deprecated function
Own Id: OTP-8584
A bug in re that could cause certain regular expression matches never to terminate is corrected. (Thanks to Michael Santos and Gordon Guthrie.)
Own Id: OTP-8589
Nested records can now be accessed without parenthesis. See the Reference Manual for examples. (Thanks to YAMASHINA Hio and Tuncer Ayaz.)
Own Id: OTP-8597
Own Id: OTP-8623
The beam_lib:cmp/2 function now compares BEAM files in stricter way. The BEAM files will be considered different if there are any changes except in the compilation information ("CInf") chunk. beam_lib:cmp/2 used to ignore differences in the debug information (significant for Dialyzer) and other chunks that did not directly change the run-time behavior.
Own Id: OTP-8625
When a gen_server, gen_fsm process, or gen_event terminates abnormally, sometimes the text representation of the process state can occupy many lines of the error log, depending on the definition of the state term. A mechanism to trim out parts of the state from the log has been added (using a format_status/2 callback). See the documentation.
Own Id: OTP-8630
Calling
Own Id: OTP-8656
The Erlang scanner has been augmented with two new
tokens:
Own Id: OTP-8657
Expressions evaluating to integers can now be used in types and function specifications where hitherto only integers were allowed ("Erlang_Integer").
Own Id: OTP-8664
The compiler optimizes record operations better.
Own Id: OTP-8668
The recently added BIFs erlang:min/2, erlang:max/2 and erlang:port_command/3 are now auto-imported (as they were originally intended to be). Due to the recent compiler change (OTP-8579), the only impact on old code defining it's own min/2, max/2 or port_command/3 functions will be a warning, the local functions will still be used. The warning can be removed by using -compile({no_auto_import,[min/2,max/2,port_command/3]}). in the source file.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8669 Aux Id: OTP-8579
Now, binary_to_term/2 is auto-imported. This will cause a compile warning if and only if a module has got a local function with that name.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8671
The predefined builtin type tid() has been removed. Instead, ets:tid() should be used.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8687
Because of a race condition, using filelib:ensure_dir/1 from multiple processes to create the same path or parts of the same directory structure, filelib:ensure_dir/1 could return a meaningless {error,eexist}. That race condition has been eliminated, and {error,eexist} will now be returned only if there exists a regular file, device file, or some other non-directory file with the same name. (Thanks to Tuncer Ayaz.)
Own Id: OTP-8389
A number of bugs concerning re and unicode are corrected:
re:compile no longer loses unicode option, which also fixes bug in re:split.
re:replace now handles unicode charlist replacement argument
re:replace now handles unicode RE charlist argument correctly
re:replace now handles binary unicode output correctly when nothing is replaced.
Most code, testcases and error isolation done by Rory Byrne.
Own Id: OTP-8394
The loading of native code was not properly atomic in the SMP emulator, which could cause crashes. Also a per-MFA information table for the native code has now been protected with a lock since it turns that it could be accessed concurrently in the SMP emulator. (Thanks to Mikael Pettersson.)
Own Id: OTP-8397
user.erl (used in oldshell) is updated to handle unicode in prompt strings (io:get_line/{1,2}). io_lib is also updated to format prompts with the 't' modifier (i.e. ~ts instead of ~s).
Own Id: OTP-8418 Aux Id: OTP-8393
The re module: A regular expression with an option change at the start of a pattern that had top-level alternatives could cause overwriting and/or a crash. (Thanks to Michael Santos.)
Own Id: OTP-8438
The ability for the gen_server and gen_fsm callback modules to format their own state for display under the sys:get_status/1,2 calls has been restored and documented. (Thanks to Steve Vinoski.)
Own Id: OTP-8324
c:nc/{1,2} used to assume that the beam file was created
in the same directory as the source code and failed to
load the code if it was not. Corrected to look for the
beam file in the current directory or in the directory
specified by the
Own Id: OTP-8337
The documentation is now possible to build in an open source environment after a number of bugs are fixed and some features are added in the documentation build process.
- The arity calculation is updated.
- The module prefix used in the function names for bif's are removed in the generated links so the links will look like "http://www.erlang.org/doc/man/erlang.html#append_element-2" instead of "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-2".
- Enhanced the menu positioning in the html documentation when a new page is loaded.
- A number of corrections in the generation of man pages (thanks to Sergei Golovan)
- The legal notice is taken from the xml book file so OTP's build process can be used for non OTP applications.
Own Id: OTP-8343
Shell tab completion now works for quoted module and function names. (Thanks to Ulf Wiger.)
Own Id: OTP-8383
Explicit top directories in archive files are now optional.
For example, if an archive (app-vsn.ez) just contains an app-vsn/ebin/mod.beam file, the file info for the app-vsn and app-vsn/ebin directories are faked using the file info from the archive file as origin. The virtual direcories can also be listed. For short, the top directories are virtual if they does not exist.
Own Id: OTP-8387
Macros overloading has been implemented. (Thanks to Christopher Faulet.)
Own Id: OTP-8388
The new function
Own Id: OTP-8393
Improved handling of typed records in escripts
Own Id: OTP-8434
Added supervisor:count_children/1 to count the number of children being managed without the memory impact of which_children/1. (Thanks to Jay Nelson.)
Own Id: OTP-8436
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
[escript] The restriction that the first line in escripts
must begin with
[escript] Some command line options to the escript executable has now been documented. For example you can run an escript in the debugger by just adding a command line option.
[escript] The documentation of the escript header syntax
has been clarified. For example the header is optional.
This means that it is possible to directly "execute"
Own Id: OTP-8215
Optimized array:from_orddict/1, it is now faster and uses less memory if the orddict was sparse.
Changed array:reset/2, it will now never expand the array which it could before for non fixed arrays. See the documentation.
Own Id: OTP-8216
The Erlang Pretty Printer (
Own Id: OTP-8227
The extension ".xrl" used for Leex input files is now recognized by the compiler.
Own Id: OTP-8232
Some clarifications have been made in the documentation
regarding
Own Id: OTP-8255 Aux Id: seq11419
The -on_load() directive can be used to run a function when a module is loaded. It is documented in the section about code loading in the Reference Manual.
Own Id: OTP-8295
An erroneous type spec for
Own Id: OTP-8068 Aux Id: seq11323, seq11314
The linter used to crash on invalid
Own Id: OTP-8051
Bugs in
Own Id: OTP-8066
When trying to insert objects with
Own Id: OTP-8070
Running erlc in a very deep directory (with a path length
of more 256 or more characters) would cause the emulator
to crash in a call to
Own Id: OTP-8124
A few minor bugs have been fixed in the Erlang Code
Preprocessor (
Own Id: OTP-8130
A bug in The Erlang Meta Interpreter (
Own Id: OTP-8133
Option
Own Id: OTP-8113
When
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8129
The Erlang Meta Interpreter (
Own Id: OTP-8139
The Erlang Pretty Printer (
Own Id: OTP-8150
The text of tokens returned by the Erlang scanner
(
Own Id: OTP-7965
The documentation for
Own Id: OTP-7984
Two types in the
Own Id: OTP-8029 Aux Id: seq11296
Own Id: OTP-8033
Interpreted escripts are now tail recursive.
The function erl_eval:expr/5 has been introduced.
Own Id: OTP-7933
Own Id: OTP-7979
Random now supports seed with arity one,
Own Id: OTP-8019
The
Own Id: OTP-8024
The documentation of
Own Id: OTP-7895
The Erlang scanner no longer returns the text of
tokens when the start location is a pair of a line and
column unless the new option
There are new
functions to access the attributes of tokens:
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7892 Aux Id: OTP-7810
Several glitches and performance issues in the Unicode and I/O-system implementation of R13A have been corrected.
Own Id: OTP-7896 Aux Id: OTP-7648 OTP-7887
The type spec of filelib:wildcard/2 has been corrected.
Own Id: OTP-7915
New functions:
Own Id: OTP-7947
The function
Own Id: OTP-7948
Fixed a minor race conditions in
A process started by
Own Id: OTP-7669
The Erlang preprocessor used wrong line number when stringifying macro arguments. (Thanks to John Hughes.)
Own Id: OTP-7702
A bug in the
Own Id: OTP-7714
A new option,
Own Id: OTP-6674
The functions
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7230
The order of objects visited in select for ordered_set is now documented.
Own Id: OTP-7339
It is now possible to debug code in escripts and archives.
Own Id: OTP-7626
Support for Unicode is implemented as described in EEP10. Formatting and reading of unicode data both from terminals and files is supported by the io and io_lib modules. Files can be opened in modes with automatic translation to and from different unicode formats. The module 'unicode' contains functions for conversion between external and internal unicode formats and the re module has support for unicode data. There is also language syntax for specifying string and character data beyond the ISO-latin-1 range.
The interactive shell will support input and output of unicode characters when the terminal and operating system supports it.
Please see the EEP and the io/io_lib manual pages as well as the stdlib users guide for details.
I/O-protocol incompatibilities:
The io_protocol between io_Server and client is updated to handle protocol data in unicode formats. The updated protocol is now documented. The specification resides in the stdlib users manual, which is a new part of the manual.
io module incompatibilities:
The io:put_chars, io:get_chars and io:get_line all handle and return unicode data. In the case where binaries can be provided (as to io:put_chars), they shall be encoded in UTF-8. When binaries are returned (as by io:get_line/get_chars when the io_server is set in binary mode) the returned data is also always encoded as UTF-8. The file module however still returns byte-oriented data, why file:read can be used instead of io:get_chars to read binary data in ISO-latin-1.
io_lib module incompatibilities:
io_lib:format can, given new format directives (i.e "~ts" and "~tc"), return lists containing integers larger than 255.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7648 Aux Id: OTP-7580 OTP-7514 OTP-7494 OTP-7443 OTP-7181 EEP10 EEP11
The function
Own Id: OTP-7653 Aux Id: OTP-7603
Preprocessor directives are now allowed in escripts. This means that for example macros may be used in escripts.
Own Id: OTP-7662
When a process started with
Own Id: OTP-7740 Aux Id: seq10847
A new BIF,
Own Id: OTP-7752
Own Id: OTP-7797
The Erlang scanner has been augmented as to return
white spaces, comments, and exact location of tokens. The
functions
Own Id: OTP-7810
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7819
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7824
The argument passed to
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7827
The copyright notices have been updated.
Own Id: OTP-7851
A few missing match spec functions was added to dbg:fun2ms; exception_trace/0 and trace/2,3.
There is a new function queue:member/2.
A bug in io_lib:fread that made it accidentally concatenate fields separated by newline has been corrected. Reported and analyzed by Matthew Palmer to erlang-patches.
Own Id: OTP-7865
A bug in the
Own Id: OTP-7552
The characters 16#C0 and 16#E0 ("A" and "a" with grave
accent), were not properly converted by the
Own Id: OTP-7589
The function
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7603
The documentation for
Own Id: OTP-7604 Aux Id: seq11063
The split function is now added to the re library. Exceptions and errors from both run, replace and split are made more consistent.
Own Id: OTP-7514 Aux Id: OTP-7494
Processes spawned using
Also, if
The reason for the change is that keeping the initial fun (or a fun in an argument list), would prevent upgrading the code for the module. A secondary reason is that keeping the fun and function arguments could waste a significant amount of memory.
The drawback with the change is that the crash reports
will provide less precise information about the initial
call (only
Own Id: OTP-7531 Aux Id: seq11036
There is now experimental support for loading of code
from archive files. See the documentation of
The error handling of
An
An
An
The internal module
Own Id: OTP-7548 Aux Id: otp-6622
Enabled explicit control of which types of files that should be compressed in a ZIP archive.
Own Id: OTP-7549 Aux Id: otp-6622
In the job control mode, the "s" and "r" commands now take an optional argument to specify which shell to start. (Thanks to Robert Virding.)
Own Id: OTP-7617
A bug in the calendar module could cause calendar:local_time_to_universal_time_dst/1 to return duplicate identical values for local times in timezones without DST. Multiple values should only be returned when a local time is within the hour occurring twice due to shift from DST to non-DST, and certainly only in timezones with DST. The correct behaviour is now implemented.
Own Id: OTP-7344 Aux Id: seq10960
The documentation of
Own Id: OTP-7413
The soft upper limit of 60 on the number of non-white
characters on a line, which was introduced in R12B-0 for
the control sequences
Own Id: OTP-7421 Aux Id: OTP-6708
Some debug code has been removed from Dets.
Own Id: OTP-7424
The documentation of
Own Id: OTP-7445
Corrections of digraph(3). (Thanks to Vlad Dumitrescu.)
Own Id: OTP-7492
For the process that an escript runs in, the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7517
The documentation of
Own Id: OTP-7489
The re module is extended with repetitive matches (global option) and replacement function.
Own Id: OTP-7494 Aux Id: OTP-7181
The Erlang shell now displays a nicer error message when evaluating an undefined command. (Thanks to Richard Carlsson.)
Own Id: OTP-7495
zip:unzip to/from binary with empty directories did not work. (Thanks to Martin Dvorak.)
Own Id: OTP-7248
The documentation of the control sequence
Own Id: OTP-7324 Aux Id: OTP-7084
zip:unzip was not supporting a flavour of the zip format found in jar-files.
Own Id: OTP-7382 Aux Id: seq10970
An experimental module "re" is added to the emulator which interfaces a publicly available regular expression library for Perl-like regular expressions (PCRE). The interface is purely experimental and *will* be subject to change.
The implementation is for reference and testing in connection to the relevant EEP.
Own Id: OTP-7181
When inserting many small objects, Dets sometimes crashed when reaching the maximum number of slots. (Thanks to Daniel Goertzen.)
Own Id: OTP-7146
Processes linked to the Erlang shell did not get an exit signal when the evaluator process was killed. This bug, introduced in R12B-0, has been fixed.
Own Id: OTP-7184 Aux Id: OTP-6554
Invalid arguments to
Own Id: OTP-7226
For certain terminals, io:columns/0 could return 0 instead of enotsup. That is now corrected.
Own Id: OTP-7229 Aux Id: seq10886
When evaluating the
Own Id: OTP-7232
Own Id: OTP-7234
The
New functions:
Own Id: OTP-7064
The functions
Own Id: OTP-7084
Updated the documentation for
Own Id: OTP-7186
A new BIF ets:update_element/3. To update individual elements within an ets-tuple, without having to read, update and write back the entire tuple.
Own Id: OTP-7200
Own Id: OTP-7231 Aux Id: OTP-6671
Own Id: OTP-7238
Own Id: OTP-7244
Ets:select/3 in combination with ets:repair_continuation/2 and ordered_set data tables could result in function_clause although used as intended. This is now corrected. Thanks to Paul Mineiro for finding and isolating the bug!
Own Id: OTP-7025
The compiler warning for the deprecated function
The warning for the removed functions in the
Own Id: OTP-7034 Aux Id: seq10825
In
Own Id: OTP-7078 Aux Id: OTP-4962
Documentation bugfixes and clarifications.
(Thanks to Joern (opendev@gmail.com), Matthias Lang, and Richard Carlsson.)Own Id: OTP-7079
Duplicated objects were sometimes not deleted from the list of answers when a QLC table was traversed using a match specification. (Thanks to Dmitri Girenko.)
Own Id: OTP-7114
The documentation has been updated so as to reflect
the last updates of the Erlang shell as well as the minor
modifications of the control sequence
Superfluous empty lines have been removed from code examples and from Erlang shell examples.
Own Id: OTP-6944 Aux Id: OTP-6554, OTP-6911
Own Id: OTP-7009
It is now possible to hibernate a gen_server/gen_event/gen_fsm. In gen_server and gen_fsm, hibernation is triggered by returning the atom 'hibernate' instead of a timeout value. In the gen_event case hibernation is triggered by a event handler returning a tuple with an extra element containing the atom 'hibernate'.
Own Id: OTP-7026 Aux Id: seq10817
Some undocumented debug functionality has been added to Dets.
Own Id: OTP-7066
The functions
Own Id: OTP-7081
The compiler could generate suboptimal code for record updates if the record update code consisted of multiple source code lines.
Own Id: OTP-7101
Bugs have been fixed in
A few minor optimizations have been implemented as well.
Own Id: OTP-6673
A bug concerning the use of parameterized modules from the shell has been fixed.
Own Id: OTP-6785
A bug regarding the size expression of the bit syntax
has been fixed in the
Own Id: OTP-6787
The log_mf_h event handler didn't close the index file when it was done reading it causing a file descriptor leak.
Own Id: OTP-6800
Definitions for the
Own Id: OTP-6870
file:write_file/3, file:write/2 and file:read/2 could crash (contrary to documentation) for odd enough file system problems, e.g write to full file system. This bug has now been corrected.
In this process the file module has been rewritten to produce better error codes. Posix error codes now originate from the OS file system calls or are generated only for very similar causes (for example 'enomem' is generated if a memory allocation fails, and 'einval' is generated if the file handle in Erlang is a file handle but currently invalid).
More Erlang-ish error codes are now generated. For
example
The possibility to write
a single byte using
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6967 Aux Id: OTP-6597 OTP-6291
A bug concerning the evaluation of the
Own Id: OTP-6977
The behaviour of the internal functions gen:call/3,4 has been changed slightly in the rare case that when the caller was linked to the called server, and the server crashed during the call; its exit signal was consumed by the gen:call/3,4 code and converted to an exit exception. This exit signal is no longer consumed.
To even notice this change, 1) the calling process has to be linked to the called server.
2) the call must not be remote by name that is it must be local or remote by pid, local by name or global by name.
3) the calling process has to have set
4) the server has to crash during the call.
5) the calling process has to be sensitive to getting
previously consumed
The old behaviour was once the only way for a client
to notice if the server died, but has since
The affected user APIs are:
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-3954 Aux Id: Seq 4538
When an exception occurs the Erlang shell now displays
the class, the reason, and the stacktrace in a clearer
way (rather than dumping the raw EXIT tuples as before).
The new shell
command
Own Id: OTP-6554 Aux Id: OTP-6289
The function
Own Id: OTP-6671
The control sequence
Own Id: OTP-6708
The new module
Own Id: OTP-6733
Functions that have long been deprecated have now been
removed from the following modules:
The undocumented function
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6845
Minor documentation corrections for file:pread/2 and file:pread/3.
Own Id: OTP-6853
Contract directives for modules in Kernel and STDLIB.
Own Id: OTP-6895
The
The
The
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6906
The Erlang pretty printer
Own Id: OTP-6911
The documentation for ets:safe_fixtable/2, ets:foldl/3, and ets:foldr/3 is now clearer about what will happen if objects are inserted during table traversals.
Own Id: OTP-6928 Aux Id: seq10779
It is now possible to extract files in tar files directly into binaries. It is also possible to add files to tar files directly from binaries.
Own Id: OTP-6943
The functions
Own Id: OTP-6953
The new
Own Id: OTP-6964
The allowed syntax for -type() and -spec() was updated.
Own Id: OTP-6861 Aux Id: OTP-6834
The compiler will for forward compatibility ignore the -type() and -spec() attributes that will be introduced in the R12B release.
Own Id: OTP-6834
The log_mf_h event handler didn't close the index file when it was done reading it causing a file descriptor leak.
Own Id: OTP-6800
The dict:size/1 and orddict:size/1 functions have been documented.
Own Id: OTP-6818
Bugs have been fixed in Dets concerning comparison (==) and matching (=:=).
The STDLIB manual pages have been updated as to more carefully state when terms are matched and when they are compared.
Own Id: OTP-4738 Aux Id: OTP-4685
The shell has been updated to fix the following flaws: Shell process exit left you with an unresponsive initial shell if not using oldshell. Starting a restricted shell with a nonexisting callback module resulted in a shell where no commands could be used, not even init:stop/0. Fun's could not be used as parameters to local shell functions (in shell_default or user_default) when restricted_shell was active.
Own Id: OTP-6537
A bug in QLC's parse transform has been fixed.
Own Id: OTP-6590
A bug concerning
Own Id: OTP-6606
When calling
Own Id: OTP-6659
Functions of the
Own Id: OTP-6711
The
These changes affect the Erlang shell when running in
restricted mode: the callback function
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6714 Aux Id: seq10374
The new compiler option
Own Id: OTP-6585
For scripts written using
Own Id: OTP-6593
Minor Makefile changes.
Own Id: OTP-6689 Aux Id: OTP-6742
The MD5 calculation of a BEAM file done by
Own Id: OTP-6459
When sorting terms using the
The directory supplied with the
Own Id: OTP-6526
Bugs regarding
Own Id: OTP-6539
When sorting the operands of a join operation, QLC
called
Own Id: OTP-6562 Aux Id: seq10606
The functions
The function
The function
Own Id: OTP-6443
Added base64 as a module to stdlib, encoding and decoding
Own Id: OTP-6470
Added the functions to_upper/1 and to_lower/1 to the string module. These provide case conversion for ISO/IEC 8859-1 characters (Latin1) and strings.
Own Id: OTP-6472
The callback function
Own Id: OTP-6497 Aux Id: seq10555
There is a new
Own Id: OTP-6505
The
Own Id: OTP-6517
The control sequences
Own Id: OTP-6495
Added the option {cwd, Dir} to make zip-archives with relative pathnames without having to do (a global) file:set_cwd.
Own Id: OTP-6491 Aux Id: seq10551
The
This limitation has now been properly documented and the
behavior of the
(Thanks to Fredrik Linder)
Own Id: OTP-6345
The control sequence
The indentation takes more care not to exceed the right margin, if possible.
If the maximum depth is
reached while printing a tuple,
Own Id: OTP-6354
The Erlang shell command
Own Id: OTP-6390
The functions
Bugs have been
fixed in QLC:
Own Id: OTP-6359
A bug in
Own Id: OTP-6321 Aux Id: seq10497
The control sequences
Own Id: OTP-6230
Own Id: OTP-6271
The Erlang code preprocessor crashed if the predefined macros ?MODULE or ?MODULE_STRING were used before the module declaration. This bug has been fixed.
Own Id: OTP-6277
Support for faster join of two tables has been added
to the
Several other changes have also been included:
The new
The new
The
The new option
There is a new callback
QLC analyzes each and every QLC expression when trying to find constants for the lookup function. Hitherto only QLC expressions with exactly one generator were analyzed.
Note that only filters with guard
syntax placed immediately after the generator are
analyzed. The restriction to guard filters is an
incompatible change. See
In a similar way several match specifications for traversal of QLC tables can be utilized for different generators of one single QLC expression.
A bug has been fixed: when caching answers to a sufficiently complex query it could happen that some answers were not returned.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6038
The Erlang pretty printer (
Own Id: OTP-6227 Aux Id: OTP-5924
The Erlang shell now tries to garbage collect large binaries. Under certain circumstances such binaries could otherwise linger on for an indefinite amount of time.
Own Id: OTP-6239
To help Dialyzer find more bugs, many functions in the Kernel and STDLIB applications now only accept arguments of the type that is documented.
For instance, the functions
Also, the
Dialyzer will find most cases where those functions are passed arguments of the wrong type.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6295
The functions
Documentation of
The fact that the control sequence character
Own Id: OTP-6140
The shell command rr() sometimes failed to read record definitions from file(s). This problem has been fixed.
Own Id: OTP-6166 Aux Id: OTP-5878
The nonlocal function handler in
Own Id: OTP-6169 Aux Id: seq10374
ets:rename/1 could deadlock, or crash the SMP emulator when the table wasn't a named table.
ets:next/2, and ets:prev/2 could return erroneous results on the SMP emulator.
Own Id: OTP-6198 Aux Id: seq10392, seq10415
When closing a Dets table the space management data was sometimes saved in such a way that opening the table could not be done without repairing the file. This bug has been fixed.
Own Id: OTP-6206
A bugfix in QLC: two of the call-back functions used
for implementing QLC tables,
Several other minor bugs have been also been fixed.
Own Id: OTP-5195
The STDLIB modules
Own Id: OTP-5535
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5639
Referencing a so far undeclared record from the default value of some record declaration is from now on considered an error by the linter. It is also an error if the default value of a record declaration uses or binds a variable.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5878
When a file
Own Id: OTP-5944
Corrected
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5960 Aux Id: seq10240
The shell now handles records better when used in calls
on the form
Own Id: OTP-5990 Aux Id: OTP-5876
The functions
For the sake of consistency,
The
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6019
Correction in documentation for
Own Id: OTP-6072
When sorting terms using the
Own Id: OTP-6088
Improvements of the linter:
The
The new compiler option
The new compiler option
The Erlang code preprocessor
Own Id: OTP-5362
The formatting option
Own Id: OTP-5403
The control sequences
Own Id: OTP-5485
The linter emits warnings for functions exported more
than once in
Own Id: OTP-5494
A manual for STDLIB has been added,
Own Id: OTP-5530
Added the
Own Id: OTP-5786
Simple-one-for-one supervisors now store the pids of
child processes using
Own Id: OTP-5898
When given the new option '
The Erlang shell always applies strict record tests.
Own Id: OTP-5915 Aux Id: OTP-5714
The Erlang pretty printer (
Own Id: OTP-5924
The
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5985
The function
Own Id: OTP-6023
Added an example of how to reconstruct source code from
debug info (abstract code) to
Own Id: OTP-6073
The new compiler option
Own Id: OTP-6105
Own Id: OTP-5405 Aux Id: OTP-4101
Warnings are output whenever so far undeclared records are referenced from some default value of a record declaration. In STDLIB 1.14 (R11B) such forward references will cause a compilation error.
Own Id: OTP-5878
The linter's check of the
Own Id: OTP-5917
The Erlang pretty printer did not handle
Own Id: OTP-5926
Corrected documentation for
Added documentation for
Tried to clarify some other type declarations and
function descriptions in
Corrected documentation for
Fixed broken links in
Own Id: OTP-5931
Type checks have been added to functions in
Own Id: OTP-5939
The new STDLIB module
Own Id: OTP-5876 Aux Id: OTP-5435
The compiler will now warn that the
Own Id: OTP-5976
When calling
Own Id: OTP-5854
More detail on
Own Id: OTP-5789
The new function
Own Id: OTP-5813
The new function
Own Id: OTP-5846 Aux Id: seq10163
The function
Own Id: OTP-5848 Aux Id: seq10164
A couple of type errors have been fixed in
Own Id: OTP-5739
The pre-processor used to complain that the macro
definition '
Own Id: OTP-5777
The linter, QLC and the module
Own Id: OTP-5644
The manual pages for most of the Kernel and some of the STDLIB modules have been updated, in particular regarding type definitions.
The documentation of the return value for
The documentation for
Own Id: OTP-5360
Replaced some tuple funs with the new
The high-order functions in the lists module no longer
accept bad funs under any circumstances.
'
Unused, broken compatibility code in the
Eliminated 5 discrepancies found by Dialyzer in the Appmon application.
Own Id: OTP-5633
The
The
Own Id: OTP-5645 Aux Id: seq9984
Very minor corrections in
Own Id: OTP-5589
The
Added a note to the documentation of the
Added more information about the '
Own Id: OTP-5555
The new
The new type test
Own Id: OTP-5584
Also,
Own Id: OTP-5523 Aux Id: seq9824
Further improvements of encrypted debug info: New option
Own Id: OTP-5541 Aux Id: seq9837
When opening a Dets table read only an attempt was sometimes made to re-hash the table resulting in an error message. This problem has been fixed.
Own Id: OTP-5487 Aux Id: OTP-4989
It is now possible to encrypt the debug information in
Beam files, to help keep the source code secret. See the
documentation for
The
Own Id: OTP-5460 Aux Id: seq9787
Closing a Dets table kept in RAM would cause a crash if the file could not be written. This problem has been fixed by returning an error tuple.
Own Id: OTP-5402
Own Id: OTP-5412
The Erlang shell failed if the compiler was not in the code path. This problem has been fixed, but in order to evaluate records the compiler is still needed.
Own Id: OTP-5435
Corrected the example in the documentation for
Own Id: OTP-5452 Aux Id: seq9770, seq9789
The possibility to start the Erlang shell in parallel
with the rest of the system was reintroduced for
backwards compatibility in STDLIB 1.13.1. The flag to be
used for this is now called
Own Id: OTP-5406 Aux Id: OTP-5218
The compiler will now produce warnings when using the
deprecated functions in the
Own Id: OTP-5425
The function
Own Id: OTP-5432
Corrected two minor bugs found by the Dialyzer:
Calling a parameterized module from a restricted shell
(i.e. if
And a somewhat more serious one also found by
Dialyzer:
Cleaned up and removed redundant code found by
Dialyzer in
Own Id: OTP-5462
Bugs in the Erlang shell have been fixed.
Own Id: OTP-5327
Some dead code reported by Dialyzer was eliminated.
A bug in
Own Id: OTP-5329
The linter could output invalid warnings about bit patterns in record initializations. This problem has been fixed.
Own Id: OTP-5338
Own Id: OTP-5341
A BIF
Own Id: OTP-5376 Aux Id: OTP-5257
The
Own Id: OTP-5276
The restricted shell will now indicate if the return value from a user predicate is on an incorrect form.
Own Id: OTP-5335
Bugs concerning unused and shadowed variables have been fixed in the linter.
Own Id: OTP-5091
A bug in the evaluator that caused the shell to choke on bit syntax expressions has been fixed.
Own Id: OTP-5237
Own Id: OTP-5263
Bugs in the handling of the bit syntax have been fixed in the Erlang shell.
Own Id: OTP-5269
The documentation was also updated to explicitly
document functions that were only referred to as
'aliases' of a documented function. Also, a list of all
functions common to the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-5277
Debug messages have been removed from the QLC module.
Own Id: OTP-5283
The size of continuations returned from
Own Id: OTP-5232
The
Own Id: OTP-5248 Aux Id: OTP-5210
The Pman 'trace shell' functionality was broken as has now been fixed. Furthermore, Pman could not correctly find the pid of the active shell if more than one shell process was running on the node. This has also been corrected.
Own Id: OTP-5191
When the undocumented feature "parameterized modules" was used, the ?MODULE macro did not work correctly.
Own Id: OTP-5224
You can now start Erlang with the
erl -sname this_node -rsh other_node@other_host
Own Id: OTP-5210
The man page for the
Own Id: OTP-5213
The top level group leader used to be listed as job #1 in the job list in JCL mode. Since there is no shell associated with this process that can be connected to, it will no longer be listed.
Own Id: OTP-5214
The possibility to start the Erlang shell in parallel with the rest of the system has been reintroduced for backwards compatibility. Note that this old behaviour is error prone and should not be used unless for some reason necessary.
Own Id: OTP-5218 Aux Id: seq9534
The
Own Id: OTP-5226