encyclopegia.org

Alice (programming language)

Alice ML is a general-purpose, high-level, multi-paradigm, functional programming language designed by the Programming Systems Laboratory at Saarland University, Saarbrücken, Germany.[src] It is a dialect of Standard ML, augmented with support for lazy evaluation, concurrency (multithreading and distributed computing via remote procedure calls) and constraint programming.[src]

Alice ML is a general-purpose, high-level, multi-paradigm, functional programming language designed by the Programming Systems Laboratory at Saarland University, Saarbrücken, Germany.[src] It is a dialect of Standard ML, augmented with support for lazy evaluation, concurrency (multithreading and distributed computing via remote procedure calls) and constraint programming.[src] ==Overview== Alice extends Standard ML in a number of ways that distinguish it from its predecessor.[src] Alice provides concurrency features as part of the base language through the use of a future type that represents a value being provided by an independent thread of execution.[src] A thread that uses a future value will block on an attempt to access the value until the thread performing it has completed the computation.[src] A related concept is also provided termed a promise, allowing a thread to provide a future value that it will compute to another thread.[src] Future and promise typed variables are used to implement data-flow synchronizing.[src] Like the Haskell functional language, Alice provides facilities to allow a lazy evaluation strategy in programs, unlike the traditional eager evaluation strategy of Standard ML.[src] While Haskell uses the lazy model by default, Alice uses an eager evaluation model by default, needing an explicit programming statement for a computation to evaluate lazily.[src] The Alice implementation from Saarland University uses the Simple Extensible Abstract Machine (SEAM) virtual machine.[src] It is free software, and features just-in-time compilation to bytecode and native code for the x86 architecture.[src] Early versions of Alice ran on the Mozart Programming System (Oz) virtual machine (VM), allowing interfacing between Alice and Oz code.[src] Alice's remote procedure calling depends on the virtual machine, because it may send code to be computed from one computer to another.[src] ==Example== Alice extends Standard ML with several primitives for lazy evaluation and concurrency.[src] For example, threads may be created using the spawn keyword.[src] Consider the naive algorithm for computing the Fibonacci numbers: fun fib 0 = 0 | fib 1 = 1 | fib n = fib(n-1) + fib(n-2); For large values of n , fib n will take a long time to compute.[src] This computation can be performed in a separate thread by val x = spawn fib n; The variable x is now bound to a so-called future.[src] When an operation requires the value of x , it blocks until the thread is done with the computation.[src] To exploit parallelism one could even define fib as follows: fun fib 0 = 0 | fib 1 = 1 | fib n = spawn fib(n-1) + fib(n-2); ==References==[src]

21 sentences · 21 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Alice (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/alice-programming-language. Accessed 26 November 2026.

Chicago

"Alice (programming language)." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/alice-programming-language.

APA

encyclopegia.org. (2026). Alice (programming language). Retrieved November 26, 2026, from https://encyclopegia.org/wiki/alice-programming-language

Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

official language

stub · references available

Alice

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

Alice Everett

stub · references available

International Mother Language Day

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

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

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