encyclopegia.org

Hume (programming language)

Hume is a functionally based programming language developed at the University of St Andrews and Heriot-Watt University in Scotland since the year 2000.[src] The language name is both an acronym meaning 'Higher-order Unified Meta-Environment' and an honorific to the 18th-century philosopher David Hume.[src] It targets real-time computing embedded systems, aiming to produce a design that is both highly abstract, and yet allows precise extraction of time and space execution costs.[src] This allows guaranteeing the bounded time and space demands of executing programs.[src] Hume combines functional programming ideas with ideas from finite-state automata.[src] Automata are used to structure communicating programs into a series of "boxes", where each box maps inputs to outputs in a purely functional way using high-level pattern-matching.[src] It is structured as a series of levels, each of which exposes different machine properties.[src]

Hume is a functionally based programming language developed at the University of St Andrews and Heriot-Watt University in Scotland since the year 2000.[src] The language name is both an acronym meaning 'Higher-order Unified Meta-Environment' and an honorific to the 18th-century philosopher David Hume.[src] It targets real-time computing embedded systems, aiming to produce a design that is both highly abstract, and yet allows precise extraction of time and space execution costs.[src] This allows guaranteeing the bounded time and space demands of executing programs.[src] Hume combines functional programming ideas with ideas from finite-state automata.[src] Automata are used to structure communicating programs into a series of "boxes", where each box maps inputs to outputs in a purely functional way using high-level pattern-matching.[src] It is structured as a series of levels, each of which exposes different machine properties.[src] data Coins = Nickel | Dime | Fake; data Drinks = Coffee | Tea; data Buttons = BCoffee | BTea | BCancel; type Int = int 32 ; exception EFakeCoin :: (Int, string) ; show v = v as string ; box coffee in ( coin :: Coins, button :: Buttons, value :: Int ) -- input channels out ( drink_outp :: string, value’ :: Int , refund_outp :: string, display :: string) -- named outputs within 500KB (400B) -- max heap ( max stack) cost bounding handles EFakeCoin, TimeOut, HeapOverflow, StackOverflow match -- * wildcards for unfilled outputs, and unconsumed inputs ( my_coin, *, v) {- join-pattern equivalent: coin(my_coin) & value(v) -} -> let v’ = incrementCredit my_coin v in ( *, v’, *, show v’) -- time bounding (within x time-unit) raises TimeOut () | ( *, BCoffee, v) {- join-pattern equivalent: button(BCoffee) & value(v) -} -> (vend Coffee 10 v) within 30s | ( *, BTea, v) -> (vend Tea 5 v) within 30s | ( *, BCancel, v) -> let refund u = "Refund " ++ show u ++ "\n" in ( *, 0, refund v, *) handle EFakeCoin (v, msg) -> ( *, v , *, msg) | TimeOut () -> (*, *, *, "maybe content exhausted, call service!") | HeapOverflow () -> (*, *, *, "error: heap limit exceeded") | StackOverflow () -> (*, *, *, "error: stack limit exceeded") incrementCredit coin v = case coin of Nickel -> v + 5 Dime -> v + 10 Fake -> raise EFakeCoin (v, "coin rejected") ; vend drink cost v = if v >= cost then ( serve drink, v - cost, *, "your drink") else ( *, v, *, "money is short of " ++ show (cost - v)) ; serve drink = case drink of Coffee -> "Coffee\n" Tea -> "Tea\n" ; box control in (c :: char) out (coin :: Coins, button:: Buttons) match 'n' -> (Nickel, *) | 'd' -> (Dime, *) | 'f' -> (Fake, *) | 'c' -> (*, BCoffee) | 't' -> (*, BTea) | 'x' -> (*, BCancel) | _ -> (*, *) stream console_outp to "std_out" ; stream console_inp from "std_in" ; -- dataflow wire coffee -- inputs (channel origins) (control.coin, control.button, coffee.value’ initially 0) -- -- outputs destinations (console_outp, coffee.value, console_outp, console_outp) wire control (console_inp) (coffee.coin, coffee.button) ==References== ==Further reading==[src]

15 sentences · 15 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Hume (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hume-programming-language. Accessed 27 November 2026.

Chicago

"Hume (programming language)." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/hume-programming-language.

APA

encyclopegia.org. (2026). Hume (programming language). Retrieved November 27, 2026, from https://encyclopegia.org/wiki/hume-programming-language

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

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=1334974481 · 0.5 · snapshot enwiki-001334974481

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

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