| name = Elixir
| title =
| logo = [[File:Elixir_programming_language_logoElixir programming language logo.pngsvg|frameless|100px170px|elixir programming language]]
| logo caption = Elixir
| paradigms = [[multi-paradigm programming language|multi-paradigm]]: [[functional programming|functional]], [[concurrent programming|concurrent]], [[distributed programming|distributed]], [[process-oriented programming|process-oriented]]
| typing = [[type system|dynamic]], [[strong typing|strong]], [[duck typing|duck]]
| influenced = [[Gleam (programming language)|Gleam]], [[LFE (programming language)|LFE]]
| platform = [[Erlang (programming language)|Erlang]]
| license = [[Apache License 2.0]]<ref>{{cite web|url=https://github.com/elixir-lang/elixir/blob/master/LICENSE|title=elixir/LICENSE at master · elixir-lang/elixir · GitHub|work=GitHub}}</ref>
| year = {{start date and age|2012}}
| influenced_by = [[Clojure]], [[Erlang (programming language)|Erlang]], [[Ruby (programming language)|Ruby]]
| designer = [[José Valim]]
| origin = Brazil
| latest release version = {{wikidata|property|edit|reference|P348}}
| latest release date = {{start date and age|{{wikidata|qualifier|single|P348|P577}}}}
}}
'''Elixir''' is a Brazilian [[functional programming|functional]], [[concurrent computing|concurrent]], [[High-level programming language|high-level]] [[General-purpose programming language|general-purpose]] [[programming language]] that runs on the [[BEAM (Erlang virtual machine)|BEAM]] [[virtual machine]], which is also used to implement the [[Erlang (programming language)|Erlang]] programming language.<ref name=":0">{{Cite news|url=https://www.eliteinfoworld.com/blog/popular-programming-languages-2018/|title=Most Popular Programming Languages of 2018 - Elite Infoworld Blog|date=2018-03-30|access-date=2018-05-08|archive-date=2018-05-09|archive-url=https://web.archive.org/web/20180509080342/https://www.eliteinfoworld.com/blog/popular-programming-languages-2018/|url-status=dead}}</ref> Elixir builds on top of Erlang and shares the same abstractions for building [[Distributed computing|distributed]], [[fault-tolerant]] applications. Elixir also provides tooling and an [[extensible]] design. The latter is supported by compile-time [[metaprogramming]] with [[Macro (computer science)|macros]] and [[polymorphism (computer science)|polymorphism]] via protocols.<ref>{{cite web |url=https://elixir-lang.org|title=Elixir | work=José Valim | access-date=2013-02-17}}</ref>
The community organizes yearly events in the United States,<ref>{{Cite web|title = ElixirConf|url = http://elixirconf.com/|access-date = 2018-07-11}}</ref> Europe,<ref>{{Cite web|title = ElixirConf|url = http://elixirconf.eu/|access-date = 2018-07-11}}</ref> and Japan,<ref>{{Cite web|title = Erlang & Elixir Fest|url = https://elixir-fest.jp/|access-date = 2019-02-18}}</ref> as well as minor local events and conferences.<ref>{{Cite web|title = Elixir LDN|url = http://www.elixir.london/|access-date = 2018-07-12}}</ref><ref>{{Cite web|title = EMPEX - Empire State Elixir Conference|url = http://empex.co/|access-date = 2018-07-12}}</ref>
== History ==
The Brazilian José Valim is the creator ofcreated the Elixir programming language, as a [[research and development]] project created at Plataformatec. His goals were to enable higher extensibility and productivity in the Erlang VM while maintaining compatibility with Erlang's ecosystem.<ref>{{ cite AV media |url=http://vimeo.com/53221562|title=Elixir - A modern approach to programming for the Erlang VM | access-date=2013-02-17}}</ref><ref>{{ cite AV media |url=https://www.youtube.com/watch?v=IZvpKhA6t8A| archive-url=https://ghostarchive.org/varchive/youtube/20211117/IZvpKhA6t8A| archive-date=2021-11-17 | url-status=live|title=José Valim - ElixirConf EU 2017 Keynote | access-date=2017-07-14}}{{cbignore}}</ref>
Elixir wasis aimed at large-scale sites and apps. ElixirIt uses features of [[Ruby (programming language)|Ruby]], Erlang, and [[Clojure]] to develop a "high-concurrency" and "low-latency" language. ElixirIt was designed to handle large data volumes. Elixir is also used in the telecommunicationtelecommunications, eCommercee-commerce, and finance industries.<ref>{{ cite web |url=https://www.welcometothejungle.com/en/articles/btc-elixir-jose-valim/|title=Behinde the code: The One Who Created Elixir | access-date=2019-11-25}}</ref>
OnIn July2021, 12the Numerical Elixir effort was announced with the goal of bringing machine learning, 2018neural networks, HoneypotGPU releasedcompilation, adata mini-documentaryprocessing, onand computational notebooks to the Elixir ecosystem.<ref>{{Cite web|title = Numerical Elixir: A(Nx)| website=[[GitHub]] Mini-Documentary|url = https://cultgithub.honeypot.io/originalscom/elixir-the-documentarynx|access-date = 20212024-1005-3006}}</ref>
== Versioning ==
The following examples can be run in an <code>iex</code> [[Shell (computing)|shell]] or saved in a file and run from the [[command line]] by typing <code>elixir ''<filename>''</code>.
Classic [["Hello, World!" program|Hello world]] example:
<syntaxhighlight lang="iex">
[2, 4, 6, 8, 10]
iex> %{values: 1..5} |> Map.get(:values) |> Enum.map(& &1 * 2) |> Enum.sum()
30
</syntaxhighlight>
{{Reflist|30em}}
== ExternalFurther linksreading ==
* {{Cite book |author1=Simon St. Laurent |author2=J. Eisenberg |date=December 22, 2016 |title=Introducing Elixir: Getting Started in Functional Programming 2nd Edition|publisher=[[O'Reilly Media]] |isbn=978-1491956779 |language=en}}
* [https://elixir-lang.org Elixir language website]
* {{Cite book |author=Sasa Juric |date=January 12, 2019 |title=Elixir in Action 2nd Edition |publisher=[[Manning Publications]] |isbn=978-1617295027 |language=en}}
* [https://www.youtube.com/watch?v=lxYFOM3UJzo Elixir: The Documentary]
{{Programming languages}}
|