otp README

The project's README from github.com/erlang/otp. As one markdown file: README.md.

Erlang/OTP

Erlang is a programming language and runtime system for building massively scalable soft real-time systems with requirements on high availability.

OTP is a set of Erlang libraries, which consists of the Erlang runtime system, a number of ready-to-use components mainly written in Erlang, and a set of design principles for Erlang programs. Learn more about Erlang and OTP.

Learn how to program in Erlang.

Examples

There are several examples on the website to help you get started. The below example defines a function world/0 that prints "Hello, world" in the Erlang shell:

-module(hello).
-export([world/0]).

world() -> io:format("Hello, world\n").

Save the file as hello.erl and run erl to enter the Erlang shell to compile the module.

Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Eshell V12.2  (abort with ^G)
1> c(hello).
{ok,hello}
2> hello:world().
Hello, world
ok

Learn more about the Erlang syntax of modules, functions and expressions on Erlang.org.

Installation

Binary Distributions

Erlang/OTP is available as pre-built binary packages by most OS package managers.

apt-get install erlang

Compiling from source

To compile Erlang from source, run the following commands. The complete building and installation instructions can be found here.

git clone https://github.com/erlang/otp.git
cd otp

Checkout the branch or tag of your choice

git checkout maint-27    # current latest stable version

Configure, build and install

./configure
make
make install

Alternatively, you can use Kerl, a script that lets you easily build Erlang with a few commands.

Bug Reports

Please visit our GitHub Issues page for reporting bugs. The instructions for submitting bugs reports can be found here.

Security Disclosure

Please do not report security vulnerabilities through public channels, like GitHub issues, discussions, or pull requests.

Please disclose the security issues following our SECURITY guidelines.

Contributing

We are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving Erlang/OTP. We appreciate your help!

Contribution Guide

Read our contribution guide to learn about our development process, how to propose fixes and improvements, and how to test your changes to Erlang/OTP before submitting a pull request.

Help Wanted

We have a list of Help Wanted bugs that we would appreciate external help from the community. This is a great place to get involved.

Awesome-Erlang

You can find more projects, tools and articles related to Erlang/OTP on the awesome-erlang list. Add your project there.

License

Erlang/OTP is released under the Apache License 2.0.

For any license inquiry, please send an email to [email protected]

%CopyrightBegin%

SPDX-License-Identifier: Apache-2.0

Copyright Ericsson AB 2010-2025. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

%CopyrightEnd%

otp (erlang/otp)

Searching Database…

12.4K ·GitHub
这是什么?Erlang 是一种编程语言和运行时系统,用于构建大规模可扩展的软实时系统,这类系统必须保持高可用性。这个仓库同时包含语言本身和 OTP。
OTP 就是这门语言本身,还是随它一起打包的东西?Erlang 是语言;OTP 是随它一起发布的一套 Erlang 库——包括运行时系统、开箱即用的 Erlang 编写组件,以及 Erlang 程序的设计原则。
它能运行在 Windows 和 macOS 上吗,还是只支持 Linux?支持 Linux、macOS 和 Windows。大多数操作系统的包管理器都提供预编译的二进制包,而且 Erlang 可以从源码构建,所以你也可以在其他平台上自行编译。
我怎么编写并运行我的第一个程序?把代码保存为 hello.erl,运行 erl 进入 Erlang shell,然后在那里编译模块。Erlang.org 上有更多入门示例,以及关于模块、函数和表达式的语法文档。
Kerl 是什么?是 README 中推荐的一个脚本,用几条命令就能轻松构建 Erlang——是安装软件包或手动执行完整源码构建之外的另一种选择。
在哪里能找到基于 Erlang/OTP 构建的项目和工具?README 中指向了 awesome-erlang 列表,这是一个相关项目、工具和文章的合集——你也可以把自己的项目加进去。
What are similar projects?elixir, gleam, scala, unison, bend, tokio, clojure, morloc
Creator
erlang
Size
627.9 MB
Stars
12.4K
Age
16y
Commits · 90 Days