encyclopegia.org

Euphoria (programming language)

Euphoria is a programming language created by Robert Craig of Rapid Deployment Software in Toronto, Ontario, Canada.[src] Initially developed (though not publicly released) on the Atari ST, the first commercial release was for MS-DOS as proprietary software.[src] In 2006, with the release of version 3, Euphoria became open-source software.[src] The openEuphoria Group continues to administer and develop the project.[src] In December 2010, the openEuphoria Group released version 4 of openEuphoria along with a new identity and mascot for the project.[src] OpenEuphoria is currently available for Windows, Linux, macOS and three flavors of *BSD.[src] Euphoria is a general-purpose high-level imperative-procedural interpreted language.[src] A translator generates C source code and the GNU compiler collection (GCC) and Open Watcom compilers are supported.[src] Alternatively, Euphoria programs may be bound with the interpreter to create stand-alone executables.[src] A number of graphical user interface (GUI) libraries are supported including Win32lib and wrappers for wxWidgets, GTK+ and IUP.[src] Euphoria has a simple built-in database and wrappers for a variety of other databases.[src]

Euphoria is a programming language created by Robert Craig of Rapid Deployment Software in Toronto, Ontario, Canada.[src] Initially developed (though not publicly released) on the Atari ST, the first commercial release was for MS-DOS as proprietary software.[src] In 2006, with the release of version 3, Euphoria became open-source software.[src] The openEuphoria Group continues to administer and develop the project.[src] In December 2010, the openEuphoria Group released version 4 of openEuphoria along with a new identity and mascot for the project.[src] OpenEuphoria is currently available for Windows, Linux, macOS and three flavors of *BSD.[src] Euphoria is a general-purpose high-level imperative-procedural interpreted language.[src] A translator generates C source code and the GNU compiler collection (GCC) and Open Watcom compilers are supported.[src] Alternatively, Euphoria programs may be bound with the interpreter to create stand-alone executables.[src] A number of graphical user interface (GUI) libraries are supported including Win32lib and wrappers for wxWidgets, GTK+ and IUP.[src] Euphoria has a simple built-in database and wrappers for a variety of other databases.[src] ==Overview== The Euphoria language is a general purpose procedural language that focuses on simplicity, legibility, rapid development and performance via several means.[src] Simplicity – It uses just four built-in data types (see below) and implements automatic garbage collection.[src] Legibility – The syntax favors simple English keywords over the use of punctuation to delineate constructs.[src] Rapid development – An interpreter encourages prototyping and incremental development.[src] Performance – An efficient reference-counting garbage collector correctly handles cyclic references.[src] ==History== Developed as a personal project to invent a programming language from scratch, Euphoria was created by Robert Craig on an Atari Mega-ST.[src] Many design ideas for the language came from Craig's Master's thesis in computer science at the University of Toronto.[src] Craig's thesis was heavily influenced by the work of John Backus on functional programming (FP) languages.[src] Craig ported his original Atari implementation to MS-DOS and Euphoria was first released, version 1.0, in July 1993 under a proprietary licence.[src] The original Atari implementation is described by Craig as "primitive" and has not been publicly released.[src] Euphoria continued to be developed and released by Craig via his company Rapid Deployment Software (RDS) and website rapideuphoria.com.[src] In October 2006 RDS released version 3 of Euphoria and announced that henceforth Euphoria would be freely distributed under an open-source software licence.[src] RDS continued to develop Euphoria, culminating with the release of version 3.1.1 in August, 2007.[src] Subsequently, RDS ceased unilateral development of Euphoria and the openEuphoria Group took over ongoing development.[src] The openEuphoria Group released version 4 in December, 2010 along with a new logo and mascot for the openEuphoria project.[src] Version 3.1.1 is the last version of Euphoria which supports MS-DOS.[src] Euphoria is an acronym for End-User Programming with Hierarchical Objects for Robust Interpreted Applications although there is some suspicion that this is a backronym.[src] The Euphoria interpreter was originally written in C.[src] With the release of version 2.5 in November 2004 the Euphoria interpreter was split into two parts: a front-end parser, and a back-end interpreter.[src] The front-end is now written in Euphoria (and used with the Euphoria-to-C translator and the Binder).[src] The main back-end and run time library are written in C.[src] ==Features== Euphoria was conceived and developed with the following design goals and features: Ease of learning and with consistent high-level constructs (more so than, for example, the BASIC language) Implementation of flat-form 32-bit memory to avoid complex memory management and size-addressing limits Debugging support and run-time error-handling Subscript and type checking Loose and strict variable typing Programming via objects as types (user-defined or otherwise) Interpreted, with automatic memory management and garbage collection Heterogeneous collection types (sequences) MS-DOS graphics library (language versions through 3.1.1) Debugger Integrated database system Low-level memory handling Straightforward wrapping of (or access to) C libraries ==Execution modes== Interpreter C translator (E2C) for standalone executables or dynamic linking Bytecode compiler and interpreter (shrouder ) The Binder binds the Euphoria source code to the interpreter to create an executable.[src] A read–eval–print loop (REPL) version is on the openEuphoria roadmap.[src] ==Data types== Euphoria has two basic data types: Atom : A number, implemented as a 31-bit signed integer or a 64-bit IEEE floating-point.[src] Euphoria dynamically changes between integer and floating point representation according to the current value.[src] Sequence : A vector (array) with zero or more elements.[src] Each element may be an atom or another sequence.[src] The number of elements in a sequence is not fixed (i.e., the size of the vector/array does not have to be declared).[src] The program may add or remove elements as needed during run-time.[src] Memory allocation-deallocation is automatically handled by reference counting.[src] Individual elements are referenced using an index value enclosed in square brackets.[src] The first element in a sequence has an index of one [1].[src] Elements inside embedded sequences are referenced by additional bracked index values, thus X[3][2] refers to the second element contained in the sequence that is the third element of X.[src] Each element of a sequence is an object type (see below).[src] Euphoria has two additional data types predefined: Integer : An atom, restricted to 31-bit signed integer values in the range to ( to ).[src] Integer data types are more efficient than the atom data types, but cannot contain the same range of values.[src] Characters are stored as integers, e.g., coding ASCII-'A' is exactly the same as coding 65.[src] Object : A generic datatype which may contain any of the above (i.e., atom, sequence or integer) and which may be changed to another type during run-time.[src] There is no character string data type.[src] Strings are represented by a sequence of integer values.[src] However, because literal strings are so commonly used in programming, Euphoria interprets double-quote enclosed characters as a sequence of integers.[src] Thus "ABC" is seen as if the coder had written: {'A', 'B', 'C'} which is the same as: {65, 66, 67} ==Hello, World!== ==Examples== Program comments start with a double hyphen -- and go through the end of line.[src] The following code looks for an old item in a group of items.[src] If found, it removes it by concatenating all the elements before it with all the elements after it.[src] Note that the first element in a sequence has the index one [1] and that $ refers to the length (i.e., total number of elements) of the sequence.[src] global function delete_item( object old, sequence group ) integer pos -- Code begins -- pos = find ( old, group ) if pos > 0 then group = group[1 ..[src] pos-1] & group[pos+1 ..[src] $] end if return group end function The following modification to the above example replaces an old item with a new item.[src] As the variables old and new have been defined as objects, they could be atoms or sequences.[src] Type checking is not needed as the function will work with any sequence of data of any type and needs no external libraries.[src] global function replace_item( object old, object new, sequence group ) integer pos -- Code begins -- pos = find ( old, group ) if pos > 0 then group[pos] = new end if return group end function Furthermore, no pointers are involved and subscripts are automatically checked.[src] Thus the function cannot access memory out-of-bounds.[src] There is no need to allocate or deallocate memory explicitly and no chance of a memory leak.[src] The line group = group[1 ..[src] pos-1] & group[pos+1 ..[src] $] shows some of the sequence handling facilities.[src] A sequence may contain a set of any types, and this can be sliced (to take a subset of the data in a sequence) and concatenated in expressions with no need for special functions.[src] ==Parameter passing== Arguments to routines are always passed by value; there is no pass-by-reference facility.[src] However, parameters are allowed to be modified locally (i.e., within the callee) which is implemented very efficiently as sequences have automatic copy-on-write semantics.[src] In other words, when you pass a sequence to a routine, initially only a reference to it is passed, but at the point the routine modifies this sequence parameter the sequence is copied and the routine updates only a copy of the original.[src] ==Comparable languages== Lua Phix Python REBOL Nim Ruby ==References== ==External links== Free downloads of Euphoria for the various platforms, packages, Windows IDE, Windows API libraries, a cross-platform GTK3 wrapper for Linux and Windows, graphics libraries (DOS, OpenGL, etc.).[src] OpenEuphoria RapidEuphoria openEuphoria Wiki openEuphoria Forum OpenEuphoria · GitHub Development repositories.[src] Using Euphoria[src]

85 sentences · 85 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Euphoria (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/euphoria-programming-language. Accessed 01 December 2026.

Chicago

"Euphoria (programming language)." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/euphoria-programming-language.

APA

encyclopegia.org. (2026). Euphoria (programming language). Retrieved December 1, 2026, from https://encyclopegia.org/wiki/euphoria-programming-language

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date1993Wikipedia
release date2010Wikipedia

Related articles

official language

stub · references available

pan-Slavic language

stub · references available

Hawaiʻi Sign Language

stub · references available

Taiwanese Sign Language

stub · references available

Category:Programming languages

stub · references available

International Mother Language Day

stub · references available

polysynthetic language

stub · references available

Category:Films by country or language

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1365394927 · 0.5 · snapshot enwiki-001365394927

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.