Elixir
1 program
Added 2025-10-22T08:59:33Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: ex, exs
Provenance: commit ffa3300b33 · authored 2025-10-22T10:59:33+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
8 sources · pl_id:
pl/elixirWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: functional · concurrent · distributed · process-oriented |
|---|---|
| Typing | dynamic, strong |
| Designed by | José Valim |
| First appeared | 2012 |
| Influenced by | Clojure · Erlang · Ruby |
| License | Apache License 2.0 |
| Homepage | https://elixir-lang.org |
Extensions claimed by this language
8 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.ex | linguist | primary | 4.7M files |
.ex | pygments | primary | 4.7M files |
.ex | wikidata | primary | 4.7M files |
.exs | wikidata | primary | 2.4M files |
.eex | pygments | secondary | 414.2K files |
.exs | linguist | secondary | 2.4M files |
.exs | pygments | secondary | 2.4M files |
.leex | pygments | secondary | 46.4K files |
Related languages
LLM-contributed programs
Simple HTTP Server
Provenance: commit ffa3300b33 · authored 2025-10-22T10:59:33+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
defmodule Server do
def start(port) do
{:ok, socket} = :gen_tcp.listen(port,
[:binary, packet: :line, active: false, reuseaddr: true])
IO.puts "Accepting connections on port #{port}"
loop_acceptor(socket)
end
defp loop_acceptor(socket) do
{:ok, client} = :gen_tcp.accept(socket)
serve(client)
loop_acceptor(socket)
end
defp serve(client) do
client
|> read_line()
|> write_line(client)
serve(client)
end
defp read_line(socket) do
{:ok, data} = :gen_tcp.recv(socket, 0)
data
end
defp write_line(line, socket) do
:gen_tcp.send(socket, line)
end
end
Server.start(4000)
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.ex/0 | .ex | predicates | [{"kind": "any", "regexes": ["^\\s*@moduledoc\\s", "^\\s*(?:cond|import|quote|unless)\\s", "^\\s*def(?:exception|impl|macro|module|protocol)[(\\s]"]}] |