Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file! During the work on the low-level parts of the new Red lexer, the need arised for intra-function factorization abilities to keep the lexer code as DRY as possible. Subroutines were introduced to solve that. They act as the GOSUB directive from Basic language. They are defined as a separate block of code inside a function's body and are called like regular functions (but without any arguments). So they are much lighter and faster than real function calls and require just one slot of stack space to store the return address.

Features

  • An important aspect of Red is being self-contained
  • To define a subroutine, you need to declare a local variable with the subroutine
  • Several new extensions to the system path have been added
  • A simple low-level OS threads wrapper API has been added internally to the Red runtime
  • A set of atomic intrinsics were added to enable the implementation of lock-free and wait-free algorithms
  • Variables and arguments grouping

Project Samples

Project Activity

See All Activity >

License

BSD License, Boost Software License (BSL1.0)

Follow Red Programming Language

Red Programming Language Web Site

Other Useful Business Software
Get Avast Free Antivirus with 24/7 AI-powered online scam detection Icon
Get Avast Free Antivirus with 24/7 AI-powered online scam detection

Get protection for today’s online threats. Free.

Award-winning antivirus protection, as well as protection against online scams, dangerous Wi-Fi connections, hacked accounts, and ransomware. It includes Avast Assistant, your built-in AI partner, which gives you help with suspicious online messages, offers, and more.
Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Red Programming Language!

Additional Project Details

Registered

2021-12-01