Skip to content
Surf Wiki
Save to docs
technology/programming-languages

From Surf Wiki (app.surf) — the open knowledge base

Limbo (programming language)

Programming language


Programming language

FieldValue
nameLimbo
paradigmConcurrent
year
designerSean Dorward, Phil Winterbottom, Rob Pike
developerBell Labs / Vita Nuova Holdings
discontinued
ver layout
typingStrong
implementationsDis virtual machine
influenced_byC, Pascal, CSP, Alef, Newsqueak
influencedStackless Python, Go, Rust
operating_systemInferno
licenseGNU GPL v2, see NOTICE in limbo subfolder of the tarball
website

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.

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.

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.

Language features

Limbo supports the following features:

  • modular programming
  • concurrent programming
  • strong type checking at compile and run-time
  • interprocess communication over typed channels
  • automatic garbage collection
  • simple abstract data types

Virtual machine

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. It uses a hybrid of reference counting and a real-time garbage-collector for cyclic data.

Aspects of the design of Dis were inspired by the AT&T Hobbit microprocessor, as used in the original BeBox.

Examples

Limbo uses Ada-style definitions as in:

name := type value;
name0,name1 : type = value;
name2,name3 : type;
name2 = value;

Hello world

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

The 3rd edition of the Inferno operating system and Limbo programming language are described in the textbook Inferno Programming with Limbo (Chichester: John Wiley & Sons, 2003), by Phillip Stanley-Marbell. Another textbook The Inferno Programming Book: An Introduction to Programming for the Inferno Distributed System, by Martin Atkins, Charles Forsyth, Rob Pike and Howard Trickey, was started, but never released.

References

References

  1. "Inferno Application Programming". vitanuova.
  2. (2000). "Dis Virtual Machine Specification". Vita Nuova.
  3. Lorenz Huelsbergen and Phil Winterbottom. (1998). "Very Concurrent Mark and Sweep Garbage Collection without Fine-Grain Synchronization". 1998 International Symposium on Memory Management.
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Limbo (programming language) — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report