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

Boost Software License (BSL1.0), BSD License

Follow Red Programming Language

Red Programming Language Web Site

Other Useful Business Software
Resolve Support Tickets 2x Faster​ with ServoDesk Icon
Resolve Support Tickets 2x Faster​ with ServoDesk

Full access to Enterprise features. No credit card required.

What if You Could Automate 90% of Your Repetitive Tasks in Under 30 Days? At ServoDesk, we help businesses like yours automate operations with AI, allowing you to cut service times in half and increase productivity by 25% - without hiring more staff.
Try ServoDesk for free
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