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/euphoria
LLM (this repo) · 1PldbLinguistPygmentsWikipediaRosettacodeWikidata · Q5362035

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · concurrent · distributed · process-oriented
Typingdynamic, strong
Designed byJosé Valim
First appeared2012
Influenced byClojure · Erlang · Ruby
LicenseApache License 2.0
Homepagehttps://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.
ExtensionSourceStrengthSWH
.elinguistprimary979.7K files
.expygmentsprimary4.7M files
.eexpygmentssecondary414.2K files
.exlinguistsecondary4.7M files
.exspygmentssecondary2.4M files
.leexpygmentssecondary46.4K files
.ewikipediaproposed979.7K files
.edbwikipediaproposed12.0K files
.exwikipediaproposed4.7M files
.exwwikipediaproposed6.4K files

Related languages

Elixir (0.14)Aria (0.09)Euler (0.09)ELENA (0.08)Euclid (0.08)

LLM-contributed programs

Simple HTTP Server

Provenance: commit 22081d1c2f · authored 2025-10-22T12:19:46+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.ex · license: BSD-2-Clause · added: 2025-10-22T10:19:46Z
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()

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.
RuleExtKindPredicates (truncated)
h/linguist/.e/2.epredicates[{"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.expredicates[{"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"]}]

Contribute — propose a file extension

Tell us where to find evidence about Euphoria (mapped to pl/euphoria). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Euphoria/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Eumel eurisko →