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
Simplify IT and security with a single endpoint management platform Icon
Simplify IT and security with a single endpoint management platform

Automate the hardest parts of IT

NinjaOne automates the hardest parts of IT, delivering visibility, security, and control over all endpoints for more than 20,000 customers. The NinjaOne automated endpoint management platform is proven to increase productivity, reduce security risk, and lower costs for IT teams and managed service providers. The company seamlessly integrates with a wide range of IT and security technologies. NinjaOne is obsessed with customer success and provides free and unlimited onboarding, training, and support.
Learn More
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