Samiksha Jaiswal (Editor)

Limbo (programming language)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Paradigm
  
Concurrent

OS
  
Inferno

Typing discipline
  
Strong

Designed by
  
Sean Dorward, Phil Winterbottom, Rob Pike

Developer
  
Bell Labs / Vita Nuova Holdings

First appeared
  
1995; 22 years ago (1995)

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.

Contents

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.bib

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.

    Examples

    Limbo uses Ada-style definitions as in:

    Books

    The 3rd edition of the Inferno operating system and Limbo programming language are described in the textbook Inferno Programming with Limbo 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, by Martin Atkins, Charles Forsyth, Rob Pike and Howard Trickey, was started, but never released.

    References

    Limbo (programming language) Wikipedia