Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Limbo (programming language)

From Wikipedia, the free encyclopedia
Programming language
For other uses, seeLimbo (disambiguation).
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Limbo" programming language – news ·newspapers ·books ·scholar ·JSTOR
(October 2013) (Learn how and when to remove this message)
Limbo
ParadigmConcurrent
Designed bySean Dorward, Phil Winterbottom,Rob Pike
DeveloperBell Labs /Vita Nuova Holdings
First appeared1995; 31 years ago (1995)
Typing disciplineStrong
OSInferno
LicenseGNU GPL v2, see NOTICE in limbo subfolder of the tarball
Websiteweb.archive.org/web/20250207231314/http://www.vitanuova.com/inferno/limbo.html
Majorimplementations
Dis virtual machine
Influenced by
C,Pascal,CSP,Alef,Newsqueak
Influenced
Stackless Python,Go,Rust

Limbo is aprogramming language for writing distributed systems and is the language used to writeapplications for theInferno operating system. It was designed atBell Labs bySean Dorward,Phil Winterbottom, andRob Pike.[1]

The Limbocompiler generatesarchitecture-independentobject code which is then interpreted by theDis 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 byHoare'scommunicating sequential processes (CSP), as implemented and amended in Pike's earlierNewsqueak language and Winterbottom'sAlef.

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 ofreference counting and areal-timegarbage-collector for cyclic data.[3]

Aspects of the design of Dis were inspired by theAT&T Hobbit microprocessor, as used in the originalBeBox.

Examples

[edit]

Limbo usesAda-style definitions as in:

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

Hello world

[edit]
implementCommand;include"sys.m";sys:Sys;include"draw.m";include"sh.m";init(nil:refDraw->Context,nil:listofstring){sys=loadSysSys->PATH;sys->print("Hello World!\n");}

Books

[edit]

The 3rd edition of the Inferno operating system and Limbo programming language are described in the textbookInferno Programming with LimboISBN 0-470-84352-7 (Chichester: John Wiley & Sons, 2003), byPhillip Stanley-Marbell. Another textbookThe 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. Archived fromthe original on February 7, 2025. RetrievedJanuary 26, 2021.
  2. ^"Dis Virtual Machine Specification". Vita Nuova. 2000. Archived from the original on 20 February 2025. Retrieved2 February 2015.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  3. ^Lorenz Huelsbergen and Phil Winterbottom (1998)."Very Concurrent Mark and Sweep Garbage Collection without Fine-Grain Synchronization"(PDF).1998 International Symposium on Memory Management.

External links

[edit]
Operating systems
Programming languages
Software
Publications
Other
International
National
Retrieved from "https://en.wikipedia.org/w/index.php?title=Limbo_(programming_language)&oldid=1322223636"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp