Elixir (programming language): Difference between revisions

Content deleted Content added
m Fixed grammar
Tags: Mobile edit Mobile app edit iOS app edit
No edit summary
 
(12 intermediate revisions by 8 users not shown)
Line 4:
| 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>
Line 15:
| 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}}}}
Line 31 ⟶ 32:
Elixir is aimed at large-scale sites and apps. It uses features of [[Ruby (programming language)|Ruby]], Erlang, and [[Clojure]] to develop a high-concurrency and low-latency language. It was designed to handle large data volumes. Elixir is also used in telecommunications, e-commerce, and finance.<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 ==
Line 57 ⟶ 58:
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">
Line 72 ⟶ 73:
[2, 4, 6, 8, 10]
 
iex> %{values: 1..5} |> Map.get(:values) |> Enum.map(& &1 * 2) |> Enum.sum()
30
</syntaxhighlight>
Line 147 ⟶ 148:
{{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}}