Erlang/OTP v19.0.2 發布

jopen 8年前發布 | 8K 次閱讀 分布式 Erlang/OTP

OTP 是包裝在Erlang中的一組庫程序。OTP構成Erlang的行為機制(behaviours),用于編寫服務器、有限狀態機、事件管理器。不僅如此,OTP的應用行為(the application behavior)允許程序員把寫好的Erlang代碼打包成一個單獨的應用程序;監測行為(the supervisor behavior )允許程序員創建有層次結構的進程,使得某個進程死后,會重新啟動復活。

OTP提供大量通用的庫程序,用以輕松創建具有高度容錯、熱機換碼等功能的高質高效的程序。主要特點:

  • 通用服務器、有限狀態機、事件管理器;
  • 標準化應用程序結構;
  • 代碼熱機更換;
  • 監測樹行為機制,讓你的進程永不停擺。

更新日志 

  • compiler, stdlib:
    • New preprocessor macros ?FUNCTION_NAME, ?FUNCTION_ARITY
    • New preprocessor directives -error(Term) and -warning(Term) to cause a compilation error or warning, respectively.
    </li> </ul>
    • gen_statem a new state machine behavior
    • mnesia_ext: plugin of external storage solutions to mnesia
    • crypto: uses EVP interface in OpenSSL resulting in generally better performance and support for HW acceleration
    • ssh: performance improvements, uses the new gen_statem behavior
    • ssl: enhanced error log messages
    • dialyzer: the support for maps is very much extended both the type specification syntax and the type analysis.
    • erts:
      • erlang:open_port(spawn, ...) 3-5 times faster
      • tracing, extensive improvements (scalability, speed, match specifications on send/receive, support for lttng, ...)
      • dirty schedulers improved
      • per process configurable handling of message_queue
      • fast loading of multiple modules
      • max_heap_size process flag
      </li>
    • erts/kernel:
      • Experimental support for Unix Domain Sockets
        Example: gen_udp:open(0, [{ifaddr,{local,"/tmp/socket"}}])
      • </ul> </li> </ul>

        下載

         本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
         轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
         本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!