Paradigm | Multi-paradigm: imperative, functional, symbolic |
---|---|
Designed by | Nenad Rakočević[1] |
Developer | Nenad Rakočević |
First appeared | 2011 |
Stable release | |
OS | Linux, Windows, OS X |
License | modified BSD and Boost |
Filename extensions | .red, .reds |
Website | www |
Influenced by | |
Rebol, Lisp, Scala, Lua |
Red is a programming language designed to overcome the limitations of the programming language Rebol.[3] Red was introduced in 2011 by Nenad Rakočević,[4] and is both an imperative and functional programming language. Its syntax and general usage overlaps that of the interpreted Rebol language.[5]
The implementation choices of Red intend to create a full stack programming language:[4][6] Red can be used for extremely high-level programming (DSLs and GUIs) as well as low-level programming (operating systems and device drivers). Key to the approach is that the language has two parts: Red/System and Red.[7]
if x > y [print "Hello"]
instead of if (x > y) {printf("Hello\n");}
.Red seeks to remain independent of any other toolchain; it does its own code generation.[3] It is therefore possible to cross-compile[6] Red programs from any platform it supports to any other, via a command-line switch. Both Red and Red/System are distributed as open-source software under the modified BSD license. The runtime library is distributed under the more permissive Boost Software License.
As of version 0.6.4 Red includes a garbage collector "the Simple GC".[9]
The main feature for 0.6.4 is what we call the Simple GC (Garbage Collector). A more advanced GC is planned for the future