Limbo (programming language)
| Limbo | |
|---|---|
| Paradigm | Concurrent |
| Designed by | Sean Dorward, Phil Winterbottom, Rob Pike |
| Developer | Historic: Bell Labs, Vita Nuova Holdings Current: Terzarima Systems, Inferno64 Project |
| First appeared | 1995 |
| Typing discipline | Strong |
| OS | Inferno |
| License | GNU GPL v2, see NOTICE in limbo subfolder of the tarball |
| Website | web |
| Major implementations | |
| Dis virtual machine | |
| Influenced by | |
| C, Pascal, CSP, Alef, Newsqueak | |
| Influenced | |
| Stackless Python, Go, Rust | |
Limbo is a programming language for writing distributed systems and is the language used to write applications for the Inferno operating system. It was designed at Bell Labs by Sean Dorward, Phil Winterbottom, and Rob Pike.[1]
The Limbo compiler generates architecture-independent object code which is then interpreted by the Dis virtual machine or compiled just before runtime to improve performance. Therefore all Limbo applications are completely portable across all Inferno platforms.[2][3]
Limbo's approach to concurrency was inspired by Hoare's communicating sequential processes (CSP), as implemented and amended in Pike's earlier Newsqueak language and Winterbottom's Alef.[1]
Language features
[edit]Limbo[2] supports the following features:
- modular programming
- concurrent computing
- strong type checking at compile and run-time
- interprocess communication over typed channels
- automatic garbage collection
- simple abstract data types
Virtual machine
[edit]The Dis virtual machine that executes Limbo code is a CISC-like VM, with instructions for arithmetic, control flow, data motion, process creation, synchronizing and communicating between processes, loading modules of code, and support for higher-level data-types: strings, arrays, lists, and communication channels.[4] It uses a hybrid of reference counting and a real-time garbage-collector for cyclic data.[5]
Aspects of the design of Dis were inspired by the AT&T Hobbit microprocessor, as used in the prototype BeBox.[3] A possible production of the formal logical specification for the Dis Virtual machine[6] has been discussed by Charles Forsyth of Terzarima Systems.[7] This is possible due to the regular structure and size of the virtual Machine compared to similar virtual machines.[6]
Further developments of the Dis virtual machine
[edit]The Inferno64[8] project has extended the Dis virtual machine to 64-bits for application development on 64-bit architectures and platforms. [9] The RiceVM project was started in 2026[10] that has made a implementation of the Dis virtual machine and Limbo interpreter in Rust which supports Windows 11, macOS, and Linux. [11]
Examples
[edit]Limbo uses Ada-style definitions as in:
name := type value;
name0,name1 : type = value;
name2,name3 : type;
name2 = value;
Hello world
[edit]implement Command;
include "sys.m";
sys: Sys;
include "draw.m";
include "sh.m";
init(nil: ref Draw->Context, nil: list of string)
{
sys = load Sys Sys->PATH;
sys->print("Hello World!\n");
}
Books
[edit]The 3rd edition of the Inferno operating system and Limbo programming language are described in the textbook Inferno Programming with Limbo[12] ISBN 0-470-84352-7 (Chichester: John Wiley & Sons, 2003), by Phillip Stanley-Marbell.
Another textbook The Inferno Programming Book: An Introduction to Programming for the Inferno Distributed System[13] was started by Martin Atkins, Rob Pike, Howard Trickey and Charles Forsyth[14] but never released.
See also
[edit]- The Inferno operating system
- Alef, the predecessor of Limbo
- Plan 9 from Bell Labs, operating system
- Go, similar language from Google
- AT&T Hobbit, a processor architecture which inspired the Dis VM
References
[edit]- 1 2 Kernighan, Brian W. (1997-07-12). "A Descent into Limbo". www.gbppr.net. Lucent Technologies. Archived from the original on 2026-03-05. Retrieved 2026-08-10.
- 1 2 Ritchie, Dennis M. "The Limbo Programming Language". doc.cat-v.org. Vita Nuova. Retrieved 2026-08-10.
- 1 2 Winterbottom, Phil; Pike, Rob (1997-02-27). "The design of the Inferno virtual machine". 9p.io. Proceedings, IEEE COMPCON 97: San Jose, California, February 23-26, 1997. ISBN 978-0818678042. Retrieved 2026-08-10.
{{cite web}}: CS1 maint: periodical has ISBN (link) CS1 maint: url-status (link) - ↑ "Dis Virtual Machine Specification". Lucent Technologies, Vita Nuova. 2003. Retrieved 10 August 2026.
{{cite web}}: CS1 maint: url-status (link) - ↑ Lorenz Huelsbergen and Phil Winterbottom (1998). "Very Concurrent Mark and Sweep Garbage Collection without Fine-Grain Synchronization" (PDF). 1998 International Symposium on Memory Management.
- 1 2 "Formal Specification for Dis VM?". groups.google.com. Retrieved 2026-08-10.
- ↑ "Charles Forsyth (Terzarima Systems)". terzarima.net. Archived from the original on 2026-05-20. Retrieved 2026-08-10.
- ↑ "Inferno64 - Distributed Compute Grid". inferno64.org. Retrieved 2026-08-10.
- ↑ caerwynj. "inferno64/limbo at main · caerwynj/inferno64". GitHub. Retrieved 2026-08-10.
- ↑ "A Dis virtual machine and Limbo compiler in Rust". www.reddit.com. Retrieved 2026-08-15.
- ↑ "RiceVM Documentation". Github. Retrieved 2026-08-15.
- ↑ Stanley-Marbell, Charles (2003). Inferno programming with Limbo (1st ed.). Wiley. pp. xxix. ISBN 978-0470843529.
- ↑ Atkins, Martin; Pike, Rob; Trickey, Howard (2005-06-01). The Inferno Programming Book: An Introduction to Programming for the Inferno Distributed System. Hoboken, NJ, USA: John Wiley & Sons, Inc. ISBN 978-0-470-84971-2.
- ↑ "The Inferno Programming Book: An Introduction to Programming for the Inferno Distributed System - Atkins, Martin; Forsyth, Charles; Pike, Rob; Trickey, Howard: 9780470849712 - AbeBooks". www.abebooks.co.uk. Retrieved 2026-08-10.
External links
[edit]- Vita Nuova page on Limbo
- A Descent into Limbo by Brian Kernighan
- The Limbo Programming Language by Dennis M. Ritchie and Addendum by Vita Nuova.
- Inferno Programming with Limbo by Phillip Stanley-Marbell
- Threaded programming in the Bell Labs CSP style
- Historic Inferno 3rd Edition Dis source code, retrieved 2026-08-15
{{citation}}: CS1 maint: url-status (link) - The Current Inferno 4th Edition Dis source code as maintained by Charles Forsyth
- The 64-bit source code of the forked Inferno Dis virtual machine as used by the Inferno64 project
- A implementation of Limbo written in Rust as used by the RiceVM project
- The design of the Inferno virtual machine, Vita nuova, archived from the original on 2025-02-11, retrieved 2025-04-28.
- "Dis VM design", Inferno (4th ed.), Cat V.
- "Dis VM specification", Inferno (4th ed.), Cat V.