Euphoria
1 program
Added 2025-10-22T10:19:46Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: eu, ex, exw
Provenance: commit 22081d1c2f · authored 2025-10-22T12:19:46+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
7 sources · pl_id:
pl/euphoriaWikipedia 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
10 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 |
|---|---|---|---|
.e | linguist | primary | 1.1M files |
.ex | pygments | primary | 6.7M files |
.eex | pygments | secondary | 460.8K files |
.ex | linguist | secondary | 6.7M files |
.exs | pygments | secondary | 3.3M files |
.leex | pygments | secondary | 57.3K files |
.e | wikipedia | proposed | 1.1M files |
.edb | wikipedia | proposed | 15.3K files |
.ex | wikipedia | proposed | 6.7M files |
.exw | wikipedia | proposed | 7.0K files |
Related languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Simple HTTP Server
Provenance: commit 22081d1c2f · authored 2025-10-22T12:19:46+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
include std/net/http.e
include std/net/url.e
constant DEFAULT_PORT = 8080
constant DEFAULT_DOC_ROOT = "."
enum SERVE_STATIC, SERVE_EUPHORIA
function get_file_type(sequence path)
sequence ext = fileext(path)
switch ext do
case ".txt" then return "text/plain"
case ".html", ".htm" then return "text/html"
case ".jpg", ".jpeg" then return "image/jpeg"
case ".gif" then return "image/gif"
case ".png" then return "image/png"
case else return "application/octet-stream"
end switch
end function
procedure main()
atom server = create(DEFAULT_PORT)
puts(1, "Server started on port " & sprint(DEFAULT_PORT) & "\n")
while true do
object client = accept(server)
if atom(client) then continue end if
sequence request = receive(client)
sequence headers = parse_headers(request)
sequence path = headers["path"]
sequence full_path = DEFAULT_DOC_ROOT & path
if file_exists(full_path) then
sequence content_type = get_file_type(full_path)
sequence content = read_file(full_path)
send_response(client, 200, "OK", content_type, content)
else
send_response(client, 404, "Not Found", "text/plain", "404 - File not found")
end if
close(client)
end while
end procedure
main()
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/.e/2 | .e | predicates | [{"kind": "any", "regexes": ["^\\s*namespace\\s", "^\\s*(?:public\\s+)?include\\s", "^\\s*(?:(?:public|export|global)\\s+)?(?:atom|constant|enum|function|integer|object|procedure|sequence|type)\\s"]}] |
h/linguist/.ex/1 | .ex | predicates | [{"kind": "any", "regexes": ["^\\s*namespace\\s", "^\\s*(?:public\\s+)?include\\s", "^\\s*(?:(?:public|export|global)\\s+)?(?:atom|constant|enum|function|integer|object|procedure|sequence|type)\\s"]}] |