Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Language features  





2 Virtual machine  





3 Examples  



3.1  Hello world  







4 Books  





5 See also  





6 References  





7 External links  














Limbo (programming language)






العربية
Deutsch
Español
فارسی
Français


Italiano

Norsk bokmål
Polski
Português
Русский
Svenska
Українська

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Limbo
ParadigmConcurrent
Designed bySean Dorward, Phil Winterbottom, Rob Pike
DeveloperBell Labs / Vita Nuova Holdings
First appeared1995; 29 years ago (1995)
Typing disciplineStrong
OSInferno
LicenseGNU GPL v2, see NOTICE in limbo subfolder of the tarball
Websitewww.vitanuova.com/inferno/limbo.html
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 LabsbySean 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.

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[edit]

Limbo supports the following features:

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

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

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

See also[edit]

References[edit]

  1. ^ "Inferno Application Programming". vitanuova. vitanuova. Retrieved January 26, 2021.
  • ^ "Dis Virtual Machine Specification". Vita Nuova. 2000. Retrieved 2 February 2015.
  • ^ Lorenz Huelsbergen and Phil Winterbottomv (1998). "Very Concurrent Mark and Sweep Garbage Collection without Fine-Grain Synchronization" (PDF). 1998 International Symposium on Memory Management.
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Limbo_(programming_language)&oldid=1168499152"

    Categories: 
    C programming language family
    Concurrent programming languages
    Free compilers and interpreters
    Inferno (operating system)
    Programming languages created in 1995
    Virtual machines
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Articles needing additional references from October 2013
    All articles needing additional references
    Articles with GND identifiers
    Articles with J9U identifiers
    Articles with LCCN identifiers
     



    This page was last edited on 3 August 2023, at 03:14 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki