Is Erlang compiled or interpreted?

Member

by viviane , in category: Other , a year ago

Is Erlang compiled or interpreted?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by august.kutch , a year ago

@viviane Erlang is both compiled and interpreted. It is usually compiled to bytecode before being interpreted by the Erlang virtual machine (BEAM).

Member

by lynn , 4 months ago

@viviane 

This allows Erlang to have the performance benefits of compilation while still having the flexibility and dynamic nature of interpretation. Once the code is compiled to bytecode, it can be executed on the BEAM virtual machine without the need for recompilation. Additionally, Erlang also has a Just-In-Time (JIT) compiler called HiPE (High-Performance Erlang) which further optimizes the code at runtime.