Erlang/OTP v19.3 發布
OTP 是包裝在Erlang中的一組庫程序。OTP構成Erlang的行為機制(behaviours),用于編寫服務器、有限狀態機、事件管理器。不僅如此,OTP的應用行為(the application behavior)允許程序員把寫好的Erlang代碼打包成一個單獨的應用程序;監測行為(the supervisor behavior )允許程序員創建有層次結構的進程,使得某個進程死后,會重新啟動復活。
OTP提供大量通用的庫程序,用以輕松創建具有高度容錯、熱機換碼等功能的高質高效的程序。主要特點:
- 通用服務器、有限狀態機、事件管理器;
- 標準化應用程序結構;
- 代碼熱機更換;
- 監測樹行為機制,讓你的進程永不停擺。
更新日志
- crypto, ssh: The implementation of the key exchange algorithms diffie-hellman-group-exchange-sha* are optimized, up to a factor of 11 for the slowest ( = biggest and safest) group size.
- dialyzer: The peak memory consumption is reduced. Analyzing modules with binary construction with huge strings is now much faster.
- erts: A received SIGTERM signal to beam will generate a 'stop' message to the init process and terminate the Erlang VM nicely. This is equivalent to calling init:stop/0.
- kernel: The functions in the
file
module that take a list of paths (e.g.file:path_consult/2
) will now continue to search in the path if the path contains something that is not a directory. - kernel: Two OTP processes that are known to receive many messages are
rex
(used byrpc
) anderror_logger
.Those processes will now store unprocessed messages outside the process heap, which will potentially decrease the cost of garbage collections. - public_key: New function
pkix_verify_hostname/2,3
implements certificate hostname checking. See the manual and RFC 6125. - public_key, ssh: The ssh host key fingerprint generation now also takes a list of algorithms and returns a list of corresponding fingerprints. See
public_key:ssh_hostkey_fingerprint/2
and the optionsilently_accept_hosts
inssh:connect
. - ssl: Move PEM cache to a dedicated process, to avoid making the SSL manager process a bottleneck. This improves scalability of TLS connections.
- stdlib:
filename:safe_relative_path/1
to sanitize a relative path has been added.Thanks to more than 20 different contributors
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/7c3a5916
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!