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

You Might Also Like
Achieve perfect load balancing with a flexible Open Source Load Balancer Icon
Achieve perfect load balancing with a flexible Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

Boost application security and continuity with SKUDONET ADC, our Open Source Load Balancer, that maximizes IT infrastructure flexibility. Additionally, save up to $470 K per incident with AI and SKUDONET solutions, further enhancing your organization’s risk management and cost-efficiency strategies.
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