Elixir (Programmiersprache)

Elixir
Elixir Logo
Basisdaten
Paradigmen: Multi-Paradigma Programmiersprache: funktional, nebenläufig, prozedural, homoikonisch
Erscheinungsjahr: 2011[1]
Designer: José Valim
Entwickler: José Valim
Aktuelle Version 1.20[2] (3. Juni 2026)
Typisierung: stark, dynamisch
Beeinflusst von: Erlang, Ruby, Clojure
Beeinflusste: LFE
Betriebssystem: Erlang
Lizenz: Apache-Lizenz, Version 2.0[3]
elixir-lang.org

Elixir ist eine funktionale, nebenläufige Allzweck-Programmiersprache, die auf der virtuellen Maschine von Erlang (BEAM) läuft. Es lassen sich damit verteilte, fehlertolerante, in weicher Echtzeit sowie permanent durchlaufende Programme erstellen. Darüber hinaus kann Elixir Metaprogrammierung mittels Makros und Polymorphismus mittels Protokollen abbilden.[4]

Geschichte

Elixir wurde von José Valim seit 2011 als Teil eines Forschungsprojekts im Unternehmen Plataformatec entwickelt. Das Ziel war eine erweiterbare und produktive Programmiersprache zu schaffen, die mit den Bibliotheken und Werkzeugen von Erlang kompatibel bleibt.[5]

Beispiele

Eine einfache Hello-World Funktion:

  def hello do
    IO.puts "Hello World"
  end

Literatur

  • Simon St. Laurent, J. David Eisenberg: Introducing Elixir: Getting Started in Functional Programming. 2. Auflage. O’Reilly Media, 2017, ISBN 978-1-4919-5677-9.
  • Martin Grotz: Robuste Prozesse. Elixir: pragmatisch und leicht zu erlernen. In: iX Special 2020 – Moderne Programmiersprachen. Heise Medien, 2020, S. 104–109.

Einzelnachweise

  1. Elixir Releases older than 0.7.0. Abgerufen am 21. August 2018 (englisch).
  2. github.com.
  3. elixir-lang.org. (abgerufen am 2. Februar 2020).
  4. Elixir. In: José Valim. Abgerufen am 17. Februar 2013 (englisch).
  5. Elixir v0.5.0 released

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.