Reference articles on history, science, culture and more
Encyclopedia

Lightweight programming language

Programming language that is in some sense minimal

Lightweight programming languages are programming languages designed to have small memory footprint, are easy to implement (important when porting a language to different computer systems), and/or have minimalist syntax and features.

These programming languages have simple syntax and semantics, so one can learn them quickly and easily. Some lightweight languages (for example Lisp, Forth, and Tcl) are so simple to implement that they have many implementations (dialects).

01Compiled languages

BASIC

BASIC implementations like Tiny BASIC were designed to be lightweight so that they could run on the microcomputers of the 1980s, because of memory constraints.

Forth

Forth is a stack-based concatenative imperative programming language using reverse Polish notation.

02Toy languages

FALSE

FALSE is an esoteric programming language, with a complete implementation done in 1024 bytes.

Brainfuck

Brainfuck is an extremely minimalist esoteric programming language.

FlipJump

FlipJump is a minimalistic one-instruction set computer.

03Scripting languages

Io

Io is a prototype-based object-oriented scripting language.

Lisp

Lisp-like languages are very simple to implement, so there are many lightweight implementations of it.

There are some notable implementations:

Derivatives of Lisp:

Tcl

Tcl-like languages can be easily implemented because of its simple syntax. While Tcl itself is not lightweight, there are some lightweight implementations of languages with similar syntax.

04Embedded languages

ECMAScript

There are many embeddable implementation of ECMAScript like:

Derivatives of ECMAScript:

Lua

Lua is a small (C source is approx. 300 kB tarball, as of version 5.3.5), portable and embeddable scripting language (with LuaJIT as a JIT compiler improving speed). It can be embedded in applications such as computer games to provide runtime scripting capabilities.

Wren

Wren is a small, fast, object-oriented scripting language.

Watch videos about Lightweight programming languageExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Lightweight programming language, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.