Many programming languages allow code in foreign languages to be linked into the application executable. In Erlang, we don’t allow this for reasons of safety.1 If we were to link an external program into the Erlang executable, then a mistake in the external program could easily crash the Erlang system. For this reason, all foreign language code must be run outside the Erlang system in an external operating system process. The Erlang system and the external process communicate through a byte stream.

1 Response to “[抄书]Erlang如何使用外部程序”

  1. cheng Says:
    你抄书,我就照读。。

Leave a Reply